Changes between Initial Version and Version 1 of Ticket #29169


Ignore:
Timestamp:
Feb 28, 2018, 6:27:26 AM (7 years ago)
Author:
Tim Graham
Comment:

Please see TicketClosingReasons/UseSupportChannels for ways to get help. If you confirm a bug in Django, then please open a ticket with details.

I will say that there's no need to call django.setup() in your settings.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29169

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #29169 – Description

    initial v1  
    11I am upgrading from django 1.8.4 to 1.9.13. I installed django 1.9.3 and added to my settings
    22
    3 **import django
    4 django.setup ()**
     3{{
     4import django
     5django.setup()
     6}}}
    57
    68My application no longer works, it displays the following error:
    7 
     9{{{
    810Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f9c9655b158>
    911Traceback (most recent call last):
     
    5052    "INSTALLED_APPS." % (module, name)
    5153RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
    52 
     54}}}
    5355----
    5456
    5557I can not even run migrations ...
    5658In my settings I have:
    57 
     59{{{
    5860(...)
    5961
     
    8385
    8486(...)
    85 
    86 
     87}}}
    8788----
    8889
Back to Top