Changes between Initial Version and Version 1 of Ticket #29114


Ignore:
Timestamp:
Feb 5, 2018, 12:59:38 PM (7 years ago)
Author:
Ramiro Morales
Comment:

Please provide more details on what steps you've performed before reaching this point. like:

  • How have you installed Django
  • Have you installed it in such a way that django-admin.py got copied to /usr/local/bin or is it a remnant from another installation?
  • Des your Django project already have some apps added to INSTALLED_APPS or is it a recently created one?
  • Was this Django project working before?

The traceback seems to have been cut but there are traces of a 'traitlets' Django application. Is it an app of yours or a third party one? Can you try the manage.py commands you posted but after removing that app from the Django project? Or maybe create a new project and try the commands there so you can detect if the problem is actually caused by Django and not by broken/out of date apps.

Please reopen if you can provide such information.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29114 – Description

    initial v1  
    11Please make `manage.py shell` work out of the box:
    2 
     2{{{
    33> django-admin shell
    44django.core.exceptions.ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
    5 
     5}}}
     6{{{
    67> manage.py shell
    78django.core.exceptions.ImproperlyConfigured: Requested setting USE_I18N ...
    8 
     9}}}
    910After 20 minutes I found the 'solution' to the this problem, but the second issue is unresolved:
    10 
     11{{{
    1112django-admin shell --settings=poll.settings
    1213TypeError: catch_config_error() missing 1 required positional argument
    13 
     14}}}
    1415full log:
    15 ```
     16{{{
    1617django-admin shell --settings=poll.settings
    1718Traceback (most recent call last):
     
    4041  File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 291, in Application
    4142    def initialize(self, argv=None):
    42 ```
     43}}}
Back to Top