Bug 1046119
| Summary: | [abrt] python-django14: __init__.py:40:_setup:ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jacek Wielemborek <d33tah> | ||||||
| Component: | python-django14 | Assignee: | Matthias Runge <mrunge> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 19 | CC: | mrunge | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/6b4793f0292ad9798d78ecf02a79e708f0ec17b7 | ||||||||
| Whiteboard: | abrt_hash:37af2bba1275c16b3969107a040504f3280f909f | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-01-02 05:58:55 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 840926 [details]
File: backtrace
Created attachment 840927 [details]
File: environ
Thank you for the report. You're right. Abrt catches all unusual aborts and suggests to submit a bug report. |
Description of problem: Was trying to runserver in a directory with no settings.py. Probably my fault, but abrt suggested that I report it. Version-Release number of selected component: python-django14-1.4.8-1.fc19 Additional info: reporter: libreport-2.1.10 cmdline: /usr/bin/python /usr/bin/django-admin runserver hello executable: /usr/bin/django-admin kernel: 3.9.6-200.fc18.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: __init__.py:40:_setup:ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Traceback (most recent call last): File "/usr/bin/django-admin", line 5, in <module> management.execute_from_command_line() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 8, in <module> from django.core.servers.basehttp import AdminMediaHandler, run, WSGIServerException, get_internal_wsgi_application File "/usr/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 26, in <module> from django.views import static File "/usr/lib/python2.7/site-packages/django/views/static.py", line 95, in <module> template_translatable = ugettext_noop(u"Index of %(directory)s") File "/usr/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 75, in gettext_noop return _trans.gettext_noop(message) File "/usr/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 48, in __getattr__ if settings.USE_I18N: File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner self._setup() File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 40, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Local variables in innermost frame: self: <django.conf.LazySettings object at 0x7fc122716850>