On Fri, Dec 14, 2012 at 8:39 AM, florian <florian.ira...@gmail.com> wrote:

>
>
> On Friday, December 14, 2012 11:17:07 AM UTC+1, ke1g wrote:
>>
>>
>> How are you combining INSTALLED_APPS from the two files?  Note that
>> simply "setting" it to what you want to add in the file that includes the
>> other *replaces* the value you have imported from the other.  Be sure to
>> use += instead of = .
>>
>
> INSTALLED_APPS = COMMON_INSTALLED_APPS + SPECIFIC_INSTALLED_APPS
>
> in each specific settings file
>

This should work fine.  The only caveat is that in some corner cases the
order of things in INSTALLED_APPS matters.


>
>> Also, if you run "python manage.py shell" you can "from django.conf
>> import settings" and poke around at the values that you are actually
>> setting, which may give a clue.
>>
>
>
> From the shell, INSTALLED_APPS value is as expected
>

So "django.contrib.contenttypes", the app it's complaining about, is there,
and spelled correctly?  What happens when you try to import it directly
from the shell?


>
>
>> Finally, you can put "import pdb; pdb.set_trace()" at/near the top of one
>> or the other file and single step your way along to explore how execution
>> differs from your plan.
>>
>
> I'll try this
>
> thanks
>
>
> Bill

-- 
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.

Reply via email to