On Thu, Dec 13, 2012 at 8:24 AM, florian <florian.ira...@gmail.com> wrote: > Hi, > > for my project, i hav a mobile_manage.py and a manage.py. Each has its > specific settings, but has also lots of sommon settings.
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. > > Thus, i've created a common_settings.py and included it in the specific > settings (settings.py and mobile_settings.py). Howerver, it doesn't work. > > There's no error message when i start the server (either with runserver or > using fcgi/nginx), but when i try to access the homepage i gent an > "ImproperlyConfigured" error, telling me that django.contrib.contenttypes is > not in my INSTALLED_APPS. It is in my INSTALLED_APPS and the debugging after > this error (the settings displayed in the "Request Information" part) show > that it is really defined correctly. Use manage.py to open a django shell. Import settings as django would ("from django.conf import settings"). Is contenttypes in settings.INSTALLED_APPS? Cheers Tom -- 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.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.