Skip to content

Instantly share code, notes, and snippets.

@imirzadeh
Created September 2, 2014 08:18
Show Gist options
  • Save imirzadeh/1eaf0e19e3c15a6fce09 to your computer and use it in GitHub Desktop.
Save imirzadeh/1eaf0e19e3c15a6fce09 to your computer and use it in GitHub Desktop.
issues
Environment:
Request Method: GET
Request URL: http://localhost:8000/admin
Django Version: 1.6.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'mptt',
'django_jalali',
'django_extensions',
'jsonfield',
'security',
'rooms',
'common')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
88. response = middleware_method(request)
File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py" in process_request
71. if (not urlresolvers.is_valid_path(request.path_info, urlconf) and
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in is_valid_path
596. resolve(path, urlconf)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
476. return get_resolver(urlconf).resolve(path)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
337. for pattern in self.url_patterns:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in url_patterns
365. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in urlconf_module
360. self._urlconf_module = import_module(self.urlconf_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
40. __import__(name)
File "/home/iman/Desktop/mosafer/Hotel/urls.py" in <module>
4. admin.autodiscover()
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py" in autodiscover
29. import_module('%s.admin' % app)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
40. __import__(name)
File "/usr/local/lib/python2.7/dist-packages/django_jalali/admin/__init__.py" in <module>
3. import django_jalali.admin.widgets
File "/usr/local/lib/python2.7/dist-packages/django_jalali/admin/widgets.py" in <module>
7. import settings
Exception Type: ImportError at /admin
Exception Value: No module named settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment