dcramer/django-sentry — Issue #250: 'module' object has no attribute 'ROOT_URLCONF'
Author: kkott00
Created: 2011-10-19 08:03:46+00:00
State: open

I tried to start standalone sentry and got following error:
sentry start --config=/etc/sentry.conf.py
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
(7876) wsgi starting up on http://0.0.0.0:9000/
Traceback (most recent call last):
File "/c/projects/envs/ub/lib/python2.7/site-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/c/projects/envs/ub/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 273, in __call__
response = self.get_response(request)
File "/c/projects/envs/ub/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
urlconf = settings.ROOT_URLCONF
File "/c/projects/envs/ub/lib/python2.7/site-packages/django/utils/functional.py", line 277, in __getattr__
return getattr(self._wrapped, name)
File "/c/projects/envs/ub/lib/python2.7/site-packages/django/conf/__init__.py", line 158, in __getattr__
return getattr(self.default_settings, name)
AttributeError: 'module' object has no attribute 'ROOT_URLCONF'

My config is following:
cat /etc/sentry.conf.py
#!/usr/bin/env python
# filename: /etc/sentry.conf.py

DATABASES = {

'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'sentry', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'OPTIONS': {
'read_default_file': '/etc/mysql/my.cnf',
}
},
}

SENTRY_LOG_FILE = '/var/log/sentry.log'
SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000
SENTRY_KEY = 'key'

Django Version:	1.3