Hi,

On Thursday, December 13, 2012 1:02:10 PM UTC+1, Tom Evans wrote:
>
> Er, why have two versions of manage.py? One of the arguments manage.py 
> takes is the name of your settings module. 
>
> Put all your common settings into 'settings_default.py'. 
>
> Add your mobile settings as 'settings_mobile.py' and default as 
> 'settings_default.py'. 
>
> In each of them, start the file with 'from settings_default import *'. 
> Add any overrides or other settings after that. 
>
> Run your server with "python manage.py --settings=settings_mobile" (or 
> "--settings=project.settings_mobile", depending on how your project is 
> structured. 
>
> With mod_wsgi, set the appropriate DJANGO_SETTINGS_MODULE environment 
> variable. 
>

it's exactly what i've done, except that i've two different manage.py 
instead of using --settings option
I'll try with the option instead of different manage.py
 

> Use manage.py to open a django shell. Import settings as django would 
> ("from django.conf import settings"). Is contenttypes in 
> settings.INSTALLED_APPS? 



i'll try this with my current setup and with the --settings stuff

thanks for your answer

Florian 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1slx3tgakSwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to