Forums

AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'

I keep on getting this error, even though my root_urlconf is set to myproject.urls and the urls.py module is in the same directory with settings.py. my system path is set to /home/user/directory and settins path is project.settings. Here is the error log, in case someone can see something I missed:

2013-07-23 12:42:36,364 :AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
2013-07-23 12:47:41,730 :Traceback (most recent call last):
2013-07-23 12:47:41,730 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
2013-07-23 12:47:41,734 :    response = self.get_response(request)
2013-07-23 12:47:41,734 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
2013-07-23 12:47:41,736 :    urlconf = settings.ROOT_URLCONF
2013-07-23 12:47:41,736 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/utils/functional.py", line 185, in inner
2013-07-23 12:47:41,737 :    return func(self._wrapped, *args)
2013-07-23 12:47:41,737 :AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
2013-07-23 12:47:42,180 :Traceback (most recent call last):
2013-07-23 12:47:42,180 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
2013-07-23 12:47:42,181 :    response = self.get_response(request)
2013-07-23 12:47:42,181 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
2013-07-23 12:47:42,181 :    urlconf = settings.ROOT_URLCONF
2013-07-23 12:47:42,182 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/utils/functional.py", line 185, in inner
2013-07-23 12:47:42,182 :    return func(self._wrapped, *args)
2013-07-23 12:47:42,182 :AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
2013-07-23 12:48:07,503 :Traceback (most recent call last):
2013-07-23 12:48:07,504 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
2013-07-23 12:48:07,504 :    self.load_middleware()
2013-07-23 12:48:07,505 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 39, in load_middleware
2013-07-23 12:48:07,506 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2013-07-23 12:48:07,506 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
2013-07-23 12:48:07,507 :    self._setup()
2013-07-23 12:48:07,507 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
2013-07-23 12:48:07,507 :    self._wrapped = Settings(settings_module)
2013-07-23 12:48:07,507 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
2013-07-23 12:48:07,509 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2013-07-23 12:48:07,509 :ImportError: Could not import settings 'django_sis.settings' (Is it on sys.path?): No module named settings_local
2013-07-23 12:48:07,993 :Traceback (most recent call last):
2013-07-23 12:48:07,993 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
2013-07-23 12:48:07,994 :    response = self.get_response(request)
2013-07-23 12:48:07,994 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
2013-07-23 12:48:07,995 :    urlconf = settings.ROOT_URLCONF
2013-07-23 12:48:07,995 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/utils/functional.py", line 185, in inner
2013-07-23 12:48:07,995 :    return func(self._wrapped, *args)
2013-07-23 12:48:07,995 :AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
2013-07-23 12:48:09,849 :Traceback (most recent call last):
2013-07-23 12:48:09,850 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
2013-07-23 12:48:09,850 :    response = self.get_response(request)
2013-07-23 12:48:09,851 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
2013-07-23 12:48:09,851 :    urlconf = settings.ROOT_URLCONF
2013-07-23 12:48:09,852 :  File "/home/euqlid/.local/lib/python2.7/site-packages/django/utils/functional.py", line 185, in inner
2013-07-23 12:48:09,852 :    return func(self._wrapped, *args)
2013-07-23 12:48:09,852 :AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'

Thanks.

[Edited by admin -- formatted for stacktrace legibility]

@euqlid -- would you mind if I took a look at your code? I think it'll be hard to debug without doing that.