565: Error while importing URLconf 'reviewboard.urls': 'module' object has no attribute 'site'

t**@alsop-fa******** (Google Code) (Is this you? Claim this profile.)
Aug. 27, 2008
What's the URL of the page containing the problem?

http://repo.dev.local:8000/reviewboard/

What steps will reproduce the problem?
1. I used 'svn update' to get latest version of reviewboard
2. I restarted apache
3. I tried to logon

What is the expected output? What do you see instead?

I expect to see the normal reivewboard initial screen with dashboard

Instead, I see an error in my browser:

ImproperlyConfigured at /reviewboard/
Error while importing URLconf 'reviewboard.urls': 'module' object has no
attribute 'site'
Request Method: 	GET
Request URL: 	http://repo.dev.local:8000/reviewboard/
Exception Type: 	ImproperlyConfigured
Exception Value: 	Error while importing URLconf 'reviewboard.urls':
'module' object has no attribute 'site'
Exception Location: 
/usr/lib/python2.4/site-packages/django/core/urlresolvers.py in
_get_urlconf_module, line 255
Python Executable: 	/usr/bin/python
Python Version: 	2.4.3
Python Path: 	['/usr/lib/python2.4/site-packages/django',
'/opt/reviewboard', '/opt/reviewboard/djblets',
'/usr/lib64/python2.4/site-packages/simplejson-1.8.1-py2.4-linux-x86_64.egg',
'/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg',
'/usr/lib/python2.4/site-packages/Genshi-0.4.4-py2.4.egg',
'/usr/lib/python2.4/site-packages/Trac-0.12dev_r7072-py2.4.egg',
'/usr/lib64/python24.zip', '/usr/lib64/python2.4',
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',
'/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages',
'/usr/lib64/python2.4/site-packages/Numeric',
'/usr/lib64/python2.4/site-packages/PIL',
'/usr/lib64/python2.4/site-packages/gtk-2.0',
'/usr/lib/python2.4/site-packages']
Server time: 	Mon, 28 Jul 2008 16:09:54 -0700

What operating system are you using? What browser?

Linux Server, Firefox browser

Please provide any additional information below.

You will notice from my URL that I have reviewboard installed ina sub
directory. This has been working for many months, but something must have
changed in recent revision so now I cannot access reviewboard :-(
#1 t**@alsop-fa******** (Google Code) (Is this you? Claim this profile.)
I just updated django to latest revision and this problem does not occur anymore.
Previously I was told not to use latest django because of an issue, so looks like
that issue is resolved as I am able to use latest version of django and latest
version of reviewboard ...
chipx86
#2 chipx86
Excellent.
  • +Fixed