Le 14 mars 2010 à 12:27, James Bennett a écrit :

> On Fri, Mar 12, 2010 at 4:39 PM, aditya <bluemangrou...@gmail.com> wrote:
> 
>> Currently, Django uses "example.com" for both the domain and the
>> name.  The only way to change that is to wade into the actual
>> database.
> 2. If it turns out there's a real problem, provide a solution which
> doesn't involve one-time settings and which, preferably, leverages
> existing and proven features of Django rather than trying to add new
> ones just for this case.

Just my 2 cents, the "Django way" to deal with one-time settings is to ask 
directly the user (see admin user's creation) during the syncdb call. But, most 
of the time, I end up adding fixtures for the admin and launch syncdb with the 
--noinput option. Faster.

That's a bit off-topic but this can lead to security issues given that your 
default fixtures will load whatever the environment. How do you handle this: 
fixtures by environment? Maybe we should reconsider the 
<appname>/sql/<modelname>.<backend>.sql pattern to add an environment info?

Regards,
David

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to