Re: dbsettings, and user configurable app settings

2010-03-03 Thread Jared Forsyth
I think there are some settings which are for the developer, and some which are appropriate for an admin user, who is not necessarily the developer, to have access to. In addition, there are some settings which should be modifiable without necessitating a server restart. There is value in having

Re: dbsettings, and user configurable app settings

2010-03-03 Thread orokusaki
I don't think that settings are for users. They are for the developer. The type of settings you are looking for really should be set up as part of your application. Users can't choose a DB password or your server's time zone, or which apps are installed. If you're creating an SAAS you'd be better

Re: Cache, Session and Auth Middleware and Vary: Cookie

2010-03-03 Thread Tamas Szabo
Hi Tom, If the view is login required, then you must send 'Vary: cookie', > there is no option. Consider what would happen if you did not vary on > the cookie: > > Logged in user accesses the page via a caching proxy > Returned page is cacheable, no Vary header > Proxy stores page in cache > Not

[GSOC] Template Compilation

2010-03-03 Thread Alex Gaynor
Django Template Compilation === About Me I'm a sophomore computer science student at Rensselaer Polytechnic Institute. I'm a frequent contributor to Django (including last year's successful multiple database GSoC project) and other related projects; I'm also a

Re: Abstract models and their managers

2010-03-03 Thread Stephen McDonald
Hi Russel, Thanks for your feedback. That's a really interesting position to learn about with regard to multiple inheritance as I use it all the time across basic abstract models without any issues. The approach I was thinking of is very simplistic and possibly naive. It appears as though I just

Re: 2 small tickets

2010-03-03 Thread Karen Tracey
On Wed, Mar 3, 2010 at 12:33 PM, Jared Forsyth wrote: > As a general "best practices" question: When I update a ticket w/ a test > case and better patch, do I uncheck 'needs better patch' and 'needs > testcases'? Or do I leave that to the person who originally checked

Re: "ImportError: No module named django" with MacPorts

2010-03-03 Thread Karen Tracey
PLEASE direct questions about using Django to the django-users list. Usage questions are not on-topic for the django-developers list. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Allowing models to influence QuerySet.update

2010-03-03 Thread Dennis Kaarsemaker
I know that queryset.update does not call .save() for each instance and I know why. I even agree with it :) However, I'd like to have a bit more control over what update() does, e.g. for auditing purposes. I know that I can simply write a few lines of code near every update() call to do what I

Re: 2 small tickets

2010-03-03 Thread Jared Forsyth
As a general "best practices" question: When I update a ticket w/ a test case and better patch, do I uncheck 'needs better patch' and 'needs testcases'? Or do I leave that to the person who originally checked them? thanks, Jared On Wed, Mar 3, 2010 at 1:08 AM, Russell Keith-Magee

"ImportError: No module named django" with MacPorts

2010-03-03 Thread Tones
Hi -- I'm attempting to run Django on OSX 10.6. I've installed Python2.5 and Py25-Django (Django v1.1) via MacPorts. But I am receiving the famed "ImportError: No module named django" error. Django is installed in this directory: /opt/local/lib/python2.5/site-packages/django/ To check my

Re: dbsettings, and user configurable app settings

2010-03-03 Thread jedie
For PyLucid i have made http://code.google.com/p/django-dbpreferences/ """ A django app defines a form with initial values. The form cleaned data dict would be stored serialized into the database. The app can easy get the current preference dict and the user can easy edit the values in the django

Re: No module named project_name.settings

2010-03-03 Thread Karen Tracey
Please ask questions about using Django on django-users. This list is for discussion of the development of Django itself. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: No module named project_name.settings

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 5:39 PM, gintare wrote: > Hello, > > 1) Test.py  complains about missing module > ImportError: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE is undefin > ed. Django-developers is for discussing the development of

No module named project_name.settings

2010-03-03 Thread gintare
Hello, 1) Test.py complains about missing module ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefin ed. I added lines to python-support.pth file in /usr/lib/python2.5/site- packages : /opt/pages/referenc /opt/pages/referenc/Aref

Re: Abstract models and their managers

2010-03-03 Thread Russell Keith-Magee
On Mon, Mar 1, 2010 at 12:40 PM, Stephen McDonald wrote: > Hi there, > > I'm just getting an understanding around how managers from abstract > models are applied to a subclass model and it appears as though if a > model inherits from two abstract models that each define a

Re: Can't search 1.1 documentation on djangoproject.com

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 5:09 AM, Dougal Matthews wrote: > If you head to http://docs.djangoproject.com/en/1.1/ and type in 'settings' > (for example) into the search on the right you'll notice that all the > results link to docs.djangoproject.com/en/dev/ rather than /en/1.1/. >

Re: Cache, Session and Auth Middleware and Vary: Cookie

2010-03-03 Thread Tom Evans
On Wed, Mar 3, 2010 at 9:50 AM, Tamas Szabo wrote: > Hi, > > I've just enabled caching for a Django application and it works great, but > there is a small problem. > > As you know, Session middleware adds a Vary: Cookie header to the response > and it is smart enough to do that

Cache, Session and Auth Middleware and Vary: Cookie

2010-03-03 Thread Tamas Szabo
Hi, I've just enabled caching for a Django application and it works great, but there is a small problem. As you know, Session middleware adds a Vary: Cookie header to the response and it is smart enough to do that only if the session has been accessed. This is all good, but the problem is that

Re: 2 small tickets

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 3:41 PM, Jared Forsyth wrote: > I found some bugs, wrote come patches, submitted some tickets. =) Is that > all that's needed? > The two patches I wrote are very small, one is only one char diff... > I guess I just want to know > a) have I done all

Re: Eclipse stack trace integration

2010-03-03 Thread Thierry
Hey Russ Well it would be a nice addition to the Exception screen. On 3 mrt, 00:30, Russell Keith-Magee wrote: > On Tue, Mar 2, 2010 at 10:00 PM, Thierry > wrote: > > Any idea how to make the file names in the stack trace clickable to >