Django book

2008-11-27 Thread Dan
I discovered Django when the 0.96 book appeared in the programming section of reddit and I think it's too bad it is not getting updated for the 1.0 version. I know that the information in the book is redundant with the official documentation (which kicks ass) but I like the way it is structured an

Re: Model similar to a spreadsheet

2008-12-01 Thread Dan
I don't understand what you are trying to do. Would you mind describing the real life problem under it rather than how you try to solve it? It would help understand what you need. On Mon, Dec 1, 2008 at 2:10 PM, Stefan <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm new to Django and have some prob

Re: Adjusting PYTHONPATH for reusable django apps

2008-12-02 Thread Dan
I prefer to to just put the apps in the project's folder and put *that* folder on the PYTHONPATH then move it elsewhere only when I find out I actually need it elsewhere. To make it more portable, I find out where my project is in my filesystem at runtime so if I move it around, it's no problem. S

Re: Adjusting PYTHONPATH for reusable django apps

2008-12-02 Thread Dan
That would work but I put them right at the root of my project, not in an app folder so I just add 'blog' to my INSTALLED_APPS. Every distributable app I saw is meant to be put somewhere directly in the PYTHONPATH and not in a subpackage so I follow that rule. If you put them inside an folder name

Re: Quick question about switching to newforms-admin branch....

2008-07-15 Thread Dan
Should I start with the nfa branch or with trunk and update the code when it is merged? Is there risks of breakage in nfa? Other issues? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Quick question about switching to newforms-admin branch....

2008-07-16 Thread Dan
I'm starting the project in two weeks, hopefully, it will be merge then. I cross my fingers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goo

Countdown to 1.0 alpha

2008-07-17 Thread Dan
I was wondering when the 1.0alpha was due so I went to Trac and found this page: http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&milestone=1.0+alpha There is only 10 tickets left before alpha is complete. I don't know for you, but I'm going to check this page every

Re: Countdown to 1.0 alpha

2008-07-17 Thread Dan
> > The tickets don't tell the *entire* story, but yes, we're very close! > > Jacob > That's awesome! Can we have many big-ass parties? If there's one near Montreal, I'm in! We could set up a wiki page for that when the final release will be closer. --~--~-~--~~~---~-

Re: NEED HELP BADLY

2008-07-17 Thread Dan
On Thu, Jul 17, 2008 at 10:53 PM, Joshua Jonah <[EMAIL PROTECTED]> wrote: > Is this the best way to organize the files in Django? > > Not important, it's personal taste. > Although, it is most of the time preferable to use regex group in your URLs rather than GET. It looks much nicer. --~--~---

Re: Changing the value of the primary key

2008-07-18 Thread Dan
Django sets this for you if your database supports it (ie: you are using postgres or mysql with innodb tables). If you are using mysql, check that tables aren't MyISAM. If you want to do this inside Django, more complex because if you change an object's primary key, Django concludes that you want t

Re: Changing the value of the primary key

2008-07-18 Thread Dan
> > > Are you saying that Django adds the "ON UPDATE CASCADE" to the database > definition? I've never noticed it doing this (unless you're using a > patch that I submitted that does this for Foreign Keys where tell it to > do so). > > Or, are you saying that Django emulates this behavior? I don't

Re: Using multiple databases

2008-07-18 Thread Dan
> Most ideally we would like to have it so that the application uses DB1 > (defined in the settings.py file) as the main database, but when it's > down to users, uses DB2.user as the users table. > Currently we are thinking of using raw sql, but that would only be a > last resort preferably. And at

Re: Multiple languages in Admin

2008-07-21 Thread Dan
On Mon, Jul 21, 2008 at 2:20 AM, Chris Ovenden <[EMAIL PROTECTED]> wrote: > > Hi All! > > My first post here, though I've been using Django for about 6 months. > > I am building a site that will appear in three different languages > (maybe more, later), which means that every text field has to hav

Re: Boosting your productivity when debugging Django apps

2008-08-22 Thread Dan
On Fri, Aug 22, 2008 at 2:20 PM, Delta20 <[EMAIL PROTECTED]>wrote: > > This question is aimed at those of you who, like me, come from a Java > and C++ background and are used to being able to debug things with a > debugger - setting breakpoints, stepping through code, evaluating > expressions, etc

Django Party in Montreal?

2008-08-27 Thread Dan
Are there other people in the Montreal area that would like to celebrate the 1.0 release? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googleg

Re: Django Party in Montreal?

2008-08-27 Thread Dan
Nice. Any other people? Do you have any preference about where we should go? On Wed, Aug 27, 2008 at 9:26 AM, didier rano <[EMAIL PROTECTED]> wrote: > One more ! > > 2008/8/27, Dan <[EMAIL PROTECTED]>: >> >> Are there other people in the Montreal area that w

Re: Restricting views

2008-09-11 Thread Dan
> Yeah, ... a super user could have all permissions that are defined > in a project for example. Wait a moment -- that's already true today! > (See the User has_perm method) He will have all permissions that will exist in the future too. --~--~-~--~~~---~--~~ You

Getting user outside of view

2009-01-20 Thread Dan
Hello, I am trying to make an application that can log events (changes to the database) from other django applications. To do this i am currently using the post_save hook and post_delete hook to get any inserts, updates or deletes however i am unable to get the user that caused them. Is there a

AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Dan
AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2 ---get this error when accessing any part of site - MOD_PYTHON ERROR ProcessId: 2637 Interpreter:'TS1.

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Dan
Thanks, that seems to be what was wrong. At least now I get a database error. Still trying to figure it out. Not related I am sure. Removed quoted references and the error went away. On Mar 2, 10:58 am, Karen Tracey wrote: > On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote: > > > At

Help with Singletons

2009-03-02 Thread Dan
or readings that could be suggested would be greatly appreciated. Thanks, Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googleg

Django will not match r^sip/conf string in urls.py on Apache2 / modpython

2009-03-04 Thread Dan
Url pattern below r^sip/conf and sip/createfile work for development server but Apache comes up with a 404 error. Note that the error is shown as Apache error not Django parsing error. So, is it Apache not using the Python interpreter or something with Django? Note that changing the name to statio

Re: Django will not match r^sip/conf string in urls.py on Apache2 / modpython

2009-03-04 Thread Dan
Looks like I had a sip directory under my templates so was confusing Apache I guess. Anyway, fixed now so thanks. Renamed it as noted above. On Mar 4, 9:10 am, Rajesh Dhawan wrote: > Rajesh D wrote: > > On Mar 4, 9:58 am, Dan wrote: > > > Url pattern below r^sip/conf and s

one to one foreign keys unique across tables, IP Address Pool used by multiple tables

2009-03-18 Thread Dan
* want to share a pool of IP Addresses which are unique for both model Plc and model Station. Want to use Admin for adding Plc's and Stations. As is, if I try to use an IP address used within model PLC for another PLC it fails validation as expected. If I try to use an IP address assigned to a

Dynamic app_label

2009-03-19 Thread Dan
dle this for me. Example: /project /core /models __init__.py blog.py -- __init__.py: -- from blog import * for model in locals.values(): if inspect.isclass(model) and issubclass(model, models.Model): model._meta.app_label = '

model design problem

2009-12-07 Thread Dan
a nice DRY way to get the kind of structured composition that I want? Side question: Is there another python ORM that could address my need better? Thanks, Dan. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Test fixtures

2010-04-15 Thread Dan
Hi, I'm pretty new to Django, and I'm trying to create a few simple tests for my project. I've created a very basic fixture and I'm trying to just load it and see that the data is there. Nothing big. I've read the documentation here: http://docs.djangoproject.com/en/dev/topics/testing/ but I must b

Re: Test fixtures

2010-04-15 Thread Dan
ot something working now. Thanks for your help. On Apr 15, 4:07 pm, Karen Tracey wrote: > On Thu, Apr 15, 2010 at 3:32 PM, Dan wrote: > > Hi, > > I'm pretty new to Django, and I'm trying to create a few simple tests > > for my project. I've created a very basic

Re: Test fixtures

2010-04-15 Thread Dan
OK, just as I suspected, I was doing something silly. I was subclassing TestCase from unittest instead of django.test. I fixed that, and all is well now. Thanks again for the help. On Apr 15, 5:11 pm, Dan wrote: > Thanks. Actually, that was the first thing I tried. I think I saw some >

Best OS - VPS environment

2010-08-16 Thread Dan
I have been using CentOS 5 to run Django sites with Apache + Mod WSGI mostly in VPS environments. I want to upgrade to a new OS as CentOS runs an old version of python and it seems that it's not so easy to upgrade it. What do people recommend? -- You received this message because you are subscr

Object ID is not assigned after calling save() on a new object

2010-08-24 Thread Dan
Hi, I have some troubles with my Django model: whenever I create a new object the ID (primary key) is not being assigned to it after calling obj.save(). I am on RHEL with Python 2.4.3 and Django 1.2.1 (with MySQL backend). I've uploaded a code snippet which clearly shows the problem: http://past

Re: Object ID is not assigned after calling save() on a new object

2010-08-24 Thread Dan
Hi, On 24 Aug., 14:10, Karen Tracey wrote: > If you want automatic assignment, you need to make > it an AutoField with primary_key=True. thanks a lot, that fixed it! Regards, Daniel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-29 Thread Dan
d need to be imported by "import lib.models.ModelFileName". If you do not know what I am talking about, this is what I mean: http://www.nomadjourney.com/2009/11/splitting-up-django-models/ Any other ideas? Regards, Dan -- You received this message because you are subscribed to the Goo

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-30 Thread Dan
pp_label for my models beforehand. Thanks for the advice! Regards, Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send

Parent / Child Categories and QuerySet filters

2007-07-08 Thread Dan
g Q objects to filter through Item.objects.all() list in the meantime. Thanks, Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

ModelForm Dynamic Filter

2008-04-10 Thread Dan
)) class Meta: model = ProductMember exclude = ('product') How do I go about getting the 'userprofile' varible in to this class? Or is there some better other way to do this? Thanks in advance Dan --~--~-~--~~~---~--~~ You r

Re: ModelForm Dynamic Filter

2008-04-10 Thread Dan
(AddMemberForm, self).__init__(*args, **kwargs) self.fields['member'].queryset = Member.objects.filter(userprofile=obj) class Meta: model = ProductMember exclude = ('product') On Apr 11, 12:29 am, Dan <[EMAIL PROTECTED]> wrote: > Hi > >

Re: Annoying little bug that just won't stop -- new forms admin

2008-04-11 Thread Dan
I Just had a problem with this and it came down to the PIL component on my server not having jpeg support, maybe try installing libjpeg and rebuilding and installing PIL. On Feb 15, 6:59 am, Michael Newman <[EMAIL PROTECTED]> wrote: > As I continue to test this, it appears that inlineimagefield

Question about sessions in the DB

2008-04-21 Thread Dan
seems like I need to reference the session_key variable before I can use it. Can anybody explain why? Thanks a bunch, Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Question about one-to-many model query

2008-05-22 Thread Dan
Hello! I'm new to Django, so please forgive my newbness :) The following is my model: class City(models.Model): name = models.CharField(maxlength=100) class Person(models.Model) name = models.CharField(maxlength=100) city = models.ForeignKey(City) class Book(models.Model) name

Adding suggest / accept functionality to models

2008-06-17 Thread Dan
There is a functionality which I am interested in and I wonder what is the cleanest and most foward compatible way of doing things. I want models to sprout a suggest() method which would work like save() but keep the data in some structure elsewhere that do not modify the original data. Any regul

Re: Implementing a new idea

2008-06-17 Thread Dan
Did you take a look at Django Signals? You can intercept pre-save and post-save objects with them. You can use that to grab the data you want and fill your ProjectModification object. I don't know if there is a way you could tell if it was done in the admin or not though... --~--~-~--~---

Re: insert row into ManyToManyField

2008-06-18 Thread Dan
You'll have to do something like this: Country(models.Model): name = models.CharField(max_length = 100) boders = models.ManyToManyField('self') Meta: verbose_name_plural = "countries" BorderLength(models.Model): countryA = models.ForeignKey(Country) countryB = models

Re: Adding suggest / accept functionality to models

2008-06-18 Thread Dan
On Tue, Jun 17, 2008 at 5:22 PM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Dan wrote: >> There is a functionality which I am interested in and I wonder what is >> the cleanest and most foward compatible way of doing things. >> >> I want models to sprout a su

Re: From ASP to Django

2008-06-19 Thread Dan
Microsoft ditched classic ASP. "It's unsupported" usually carries some weigth as an argument with bosses. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

User Templates

2008-06-22 Thread Dan
I am looking for a way to enable users to make template to control the presentation of reports that they would require. I am looking for the most flexible to them and most secure to me way to do this. I want to be careful since the data serve would come from my domain and thus be vulnerable to ori

Re: Django and Adobe Spry

2008-06-23 Thread Dan
There's also ExtJS that has great client-side validation: http://extjs.com/deploy/dev/examples/form/dynamic.html Ext has a a few built-in validations (must not be empty, must be a valid e-mail, must be in a range, etc.) but if what you need isn't there, you just create a function that returns a b

Re: Will Django be upgraded to Python 3.0 after the 1.0 release?

2008-06-25 Thread Dan
The right way to transition according to Guido is to port to 2.6, run with warnings on, cover everything with unit tests, check if everything works right, run 2to3 to convert, see if everything is still alright, fix problems in 2.6, rerun 2to3, etc... Since Django supports Python from 2.3, they'l

Re: User Templates

2008-06-25 Thread Dan
Bump! Does anyone have any pointers? On Sun, Jun 22, 2008 at 5:13 PM, Dan <[EMAIL PROTECTED]> wrote: > I am looking for a way to enable users to make template to control the > presentation of reports that they would require. I am looking for the > most flexible to them and most s

The Lost Fingers

2008-06-26 Thread Dan
This isn't related to Django the framework but Django the musician, I figure you'd find it interesting anyway. I saw in the newspaper this morning that a group from Quebec called The Lost Fingers released an album called Lost in the 80's where they play well known songs in Django Reinhardt style.

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-06-26 Thread Dan
> Hi folks, > > I'm trying to champion Django trunk/1.0 as part of a small project in > a mid-sized city newspaper office. There is some worry about choosing > a framework which does not currently have a stable release. Django has a stable release (0.96), it will have an *API-stable* release when

How to create a nested list in a view?

2007-09-30 Thread Dan
I would create a nested list in the view to pass to this template tag. I am a first time user of Python and Django, any help with this would be greatly appreciated, thanks in advance. -Dan --~--~-~--~~~---~--~~ You received this message because you are subs

Re: How to create a nested list in a view?

2007-10-01 Thread Dan
for station in line.station_set.all %} {{station.name}} {% endfor %} {% endfor %} {% endfor %} On Oct 1, 4:38 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 1, 3:28 am, Dan <[EMAIL PROTECTED]> wrote: > > > > > Hello All > > > I seem to be h

Advanced search issues

2007-10-09 Thread Dan
seems to work but just for one custom criteria at a time. Could someone please recommend a good way to solve this issue so i can produce a queryset with all these search criteria, thanks. -Dan --~--~-~--~~~---~--~~ You received this message because you are s

Advanced search issues

2007-10-09 Thread Dan
seems to work but just for one custom criteria at a time. Could someone please recommend a good way to solve this issue so i can produce a queryset with all these search criteria, thanks. -Dan --~--~-~--~~~---~--~~ You received this message because you are s

i18n with custom tags

2007-10-28 Thread Dan
e a basic custom tag just to pass the value back and it just displays _("Page not found") any ideas? Thanks -Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: i18n with custom tags

2007-10-29 Thread Dan
Ok thanks I will try that out! -Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this g

GeoDjango Distances

2007-11-21 Thread Dan
n distance? object.filter(point__dwithin=(point,distance)) Cheers -Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroup

Nested Foreign Key relationships in Admin?

2006-12-16 Thread Dan
odel3" rows. Is there a techinique available to handle this? Strictly speaking, I don't necessarily need the nested view to appear on the same page, as a link to the "Model3" view would suffice. I'm just getting my feet wet with Django, an

Re: Aggregate on part of a date field?

2013-04-21 Thread dan
Please do not license your code with GPL. On Thursday, September 9, 2010 12:38:19 AM UTC+2, sebastien piquemal wrote: > > I created a library to address this kind of problems : > http://code.google.com/p/django-cube/ > > It bases the aggregation on a multidimensional view of your data (a > cube

Dynamic Fields and Saving data per user

2010-12-13 Thread Dan
I am trying to make an app where each user will have like a mailing list for which they should be-able to create custom fields for any data they may want to hold and be able to save multiple rows of that data. I was thinking to use a model to hold the fields definitions and a key value system to h

forms.ChoiceField get displayed value

2011-01-20 Thread Dan
#x27;Property1' ? Thanks -Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.co

testing foo_set existence for each object in a queryset

2011-02-19 Thread Dan
Hi, Long time lurker - first time poster - hopefully future answerer... Basically what I want to do can be done with: result = [w for w in MyModel.objects.all() if w.foo_set.filter(endtime__gt = datetime.datetime.now()).exists()] Is there anyway to do this using the queryset api? Hopefully it'

Re: testing foo_set existence for each object in a queryset

2011-02-20 Thread Dan
Thanks Shawn That's helpful. I was actually looking at the manager documentation today thinking perhaps that was what I needed - but couldn't quite wrap my head around it. But knowing that it indeed is the way to go will no doubt provide the motivation I need. (I have problems learning anything

Re: testing foo_set existence for each object in a queryset

2011-02-20 Thread Dan
;s the same as "SELECT DISTINCT" in sql - so is perhaps not very efficient... That should provide a bit of a motivation boost at least. Thanks for the help. On Feb 20, 5:00 pm, Lior Sion wrote: > Dan, > > If I understand your question correctly, you are struggling with >

Backwards migrations on a single app (Django 1.7)

2014-10-05 Thread Dan
I am trying to migrate backwards on 1 app using: ./manage.py migrate app_name 0001 But it it is migrating all apps back to 0001 Am using django 1.7 am i doing something wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Django Project Website inaccesible

2014-10-27 Thread Dan
ng to fix it? -- Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email

Re: Django Project Website inaccesible

2014-10-27 Thread Dan
Thanks for all the replies. I have no problems connecting to anything else, only the Django Project site. At least I know now it's on my end. -- Dan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Autoreloader looping Django 2.2

2019-04-25 Thread Dan
I'm using Django 2.2 on a new project and suddenly the autoreloader is looping when I change a file DEBUG: /urls.py. is_changed: False, is_new: True /urls.py previous mtime: None, current mtime: 1556221457.0 /urls.py notified as changed. Signal results: [(, None)]. /urls.py changed, relo

Re: Autoreloader looping Django 2.2

2019-04-26 Thread Dan
Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox guest, I'm not sure that has something to do with it? On Thursday, April 25, 2019 at 10:06:59 PM UTC+2, Dan wrote: > > I'm using Django 2.2 on a new project and suddenly the autoreloader is > looping w

Re: Autoreloader looping Django 2.2

2019-05-01 Thread Dan
Hi Ramiro Thanks for answering. Tried stable 2.2.1 and it looks like it is working ok now. The folder is a virtualbox shared folder, shared from an osx host. Thanks for your help! On Tuesday, April 30, 2019 at 12:33:58 AM UTC+2, Ramiro Morales wrote: > > Hi Dan, > > On Fri, Apr 26

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-19 Thread Dan
I'm Interested. My WhatsApp number is +2205192833. On Sunday, February 18, 2024 at 10:48:48 AM UTC-6 Jorge Bueno wrote: > The project: > > I am working on an exciting project that I think you may be interested in. > It is an online marketplace, similar to the US farmers and livestock > markets,

Re: Newb testing question

2008-11-04 Thread Dan Fairs
alid). This should invoke your clean_ method. Cheers, Dan -- Dan Fairs <[EMAIL PROTECTED]> | http://www.fezconsulting.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: TextMate Django autocomplete

2008-08-22 Thread Dan Lazewatsky
There's a django bundle for textmate (http://macromates.com/svn/Bundles/trunk/Bundles/Python%20Django.tmbundle/). I don't use textmate's autocomplete stuff very much, but there's some in there. eka wrote: > Hi all, > How can I make my TextMate to autocomplete django? > I have django on my site

Re: xml web templating with python

2008-09-05 Thread Dan Fairs
template tags. http://www.djangoproject.com/documentation/templates/ Cheers, Dan -- Dan Fairs <[EMAIL PROTECTED]> | http://www.stereoplex.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: What do you use as a build tool (like Ant or make)

2008-09-10 Thread Dan Fairs
> I haven't used any of them with Django, but for managing Zope, Plone > and Grok based web apps, zc.buildout is the current preferred tool. I use zc.buildout to manage my Django builds. Blog post coming soon (when the project's finished!) Cheers, Dan -- Dan Fairs <[EMAIL

The User mess

2008-09-11 Thread Dan Ellis
First of all, congratulations to the team on reaching 1.0. It looks like a lot of good features landed in time. One thing that I still find messy, though, is the whole user/profile thing. Having separate models for users and profiles has a number of drawbacks: * extra DB hits * having to tra

Re: Anti-spam suggestions (strange case)

2008-09-24 Thread Dan M
> My problem is that for some reason spammers have latched onto this > form, creating a lot of grief when our circulation people are trying > to send out the requests. > > Nearly all of the spammers follow a pattern, giving random strings for > their address, city and email, like this: > City:

ManyToMany performance

2008-10-01 Thread Dan W.
at they've read. For example: ReaderBooks Read -- -- Claire SmithGreat Expectations Jane Eyre Wuthering Heights Dan Smith Great Expectations

Re: Branching proj/myapp into branch/0.1/myapp breaks

2008-10-08 Thread Dan Ellis
On Oct 8, 11:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > They won't. Django is Python first and foremost. So modules must have > legal names. So what about all those Django apps with hyphens in their names? --~--~-~--~~~---~--~~ You received this messa

Re: Streaming Video

2008-10-13 Thread Dan Ellis
There isn't really anything Django-specific here, although there might be helper apps. But take a look at FlowPlayer, which is a free, customisable Flash video player (I think it plays both FLV and H.264). For converting videos, ffmpeg is the thing, and a quick Google suggests there are at least a

django_extensions and AutoSlugField

2009-01-19 Thread Dan Jewett
models/fields/__init__.py" in __cmp__ 102. return cmp(self.creation_counter, other.creation_counter) Exception Type: AttributeError at /admin/fc/album/1/ Exception Value: 'str' object has no attribute 'creation_counter' Local vars: other 'id' self Thanks for any sugges

Re: django_extensions and AutoSlugField

2009-01-19 Thread Dan Jewett
On Jan 19, 11:03 am, Dan Jewett wrote: > Maybe I'm just implementing this incorrectly, but if anyone is using > this extension maybe you could shed some light on this error. > > When I try to add or save my Model I get: > AttributeError: 'str' object has

Re: newbie problem -- import django fails

2009-03-02 Thread Dan Mallinger
, you could try adding the file to environment variables. Specifically, you would add: C:\Python26\Lib\site-package\django\bin\django-admin.py You can try this link for an explanation of how to edit the environment variables: http://www.computerhope.com/issues/ch000549.htm Cheers, Dan On Mon,

Python Web dev with Django Chapter 7 is killing my desire to lean Django

2009-03-10 Thread Tokyo Dan
Executing the url "http://127.0.0.1:8000/admin"; gives me a Template error with the problem area being: {% url django-admindocs-docroot as docsroot %} (the actual error dump is at the bottom of this explanation.) /Volumes/Data1/Caster/gallery/items/urls.py causes the problem: (See it below) The p

Re: Python Web dev with Django Chapter 7 is killing my desire to lean Django

2009-03-10 Thread Tokyo Dan
Karen, you made me feel real stupid. BUT I LOVE YOU! I read that over and over and couldn't see it. Also I didn't know what the heck "group name" meant. Thanks a million. Dan On Mar 11, 2:10 pm, Karen Tracey wrote: > On Wed, Mar 11, 2009 at 12:46 AM, Tokyo Dan wrote:

Re: Dynamic app_label

2009-03-20 Thread Dan Mallinger
Thanks Malcolm. I'll try and look into this when I have a little time. It would be nice to be able to contribute Cheers, Dan On Thu, Mar 19, 2009 at 6:38 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Thu, 2009-03-19 at 12:53 -0700, Dan wrote: > > Hi

Multiple ModelAdmins for a single Model

2009-03-21 Thread Dan Ward
an AlreadyRegistered exception, plus I can't see that way how I'd filter data to a specific 'page_type' in the Model. Any help would be greatly appreciated. Thanks, Dan Ward. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Multiple ModelAdmins for a single Model

2009-03-22 Thread Dan Ward
Hi, First of all thanks for the replies. I won't be able to try anything until tomorrow, however it has given some food for thought. Malcom, the three admin entries is what I'm looking for. Essentially, I'm aiming to have the admin home page display the pages block as so: Pages (admin group) --

Re: Dynamic app_label

2009-03-23 Thread Dan Mallinger
'project.app.foo'. Why is it that the project is only sometimes included in the module name? I've seen this issue generally in Python, and I think there's something major about the language I'm missing right now and would love to have it clarified. Thanks, Dan On Fri, Mar 2

Re: Multiple ModelAdmins for a single Model

2009-03-24 Thread Dan Ward
To follow up, I can see how I can achieve different forms, however I can't figure out how to provide three separate links in the admin index page. Any suggestions? On Mar 22, 11:22 am, Dan Ward wrote: > Hi, > > First of all thanks for the replies. I won't be able to t

Re: Multiple ModelAdmins for a single Model

2009-03-24 Thread Dan Ward
should only show only relevant 'Video' fields. This should also be the case for 'Message' and 'Website' pages (the other two pgtype values). I really don't want to start going down the route of model redesign to have separate tables. Especially as the database is alr

Yet another schema managing idea

2009-06-25 Thread Dan Radez
I have been looking for a way to apply and manage my model changes to my db schema. This came out of a brainstorm yesterday afternoon. Just wanted to pass the idea through the community to see where it fits, if anywhere, upstream. The general idea is to save sqlall output from manage.py. You t

Re: import a variable form views to forms

2009-06-29 Thread Dan Radez
On 06/29/2009 10:48 AM, ariest wrote: > Sorry, this is the actual code: > > views.py > > def parent(request): > user = request.user > key = user.get_profile().link > p = Parent.objects.get(pk = key) > children = p.children.all() > if request.method == 'POST': > fo

Model for Video Mashup

2009-06-29 Thread Dan G.
I want to create a web application that access videos from many different websites such as YouTube, Google Video, etc. The app should be able to store all the necessary information that would later allow the site to access a particular video. For instance, if the user inputs the URL http://www.you

Re: Recommendations for a Django development book?

2009-07-21 Thread Dan Harris
: http://docs.djangoproject.com/en/dev/ Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this g

Re: Don't understand ModelForm

2009-07-21 Thread Dan Harris
n here, they didn't submit the form, or they did and there were errors, so render it back return render_to_response('my_template.html', {'form': form}) This is how I do it, If you have any further questions I can try to help

Re: Don't understand ModelForm

2009-07-21 Thread Dan Harris
What do you mean by having the ID "in" the form? I don't quite understand what you are trying to do. On Jul 21, 4:15 pm, mettwoch wrote: > Ok, I come back to what I wrote before. If the partner already exists > it has an id (primary-key or whatever). If it doesn't exist it has no > id. I'd just

Re: Don't understand ModelForm

2009-07-21 Thread Dan Harris
Oh I gotcha now. Django model forms by default do not represent auto fields (ID's) because it wouldn't make much sense for a user to be able to edit the PK in a form. Having said that, I do understand why you need to be able to see the PK. I shown in my example, I personally prefer to represent

Re: Pass template tags through TextField?

2009-07-22 Thread Dan Harris
s html return HttpResponse(t.render(c)) For more info refer to: http://docs.djangoproject.com/en/dev/ref/request-response/ Cheers, Dan On Jul 22, 12:49 pm, Ogre wrote: > I have a model where I need to be able to insert template tags into a > TextField in the admin as part of the conte

  1   2   3   4   5   >