Yes, this is with devserver.sh. I just tried a completely clean copy, to make sure it's not my settings, and I still get the exception. settings_local.py is exactly the same as the template except I changed it to sqlite3 instead of mysql.
Here's the latest I tried: Review Board r1038, djblets r11659, Django r6782, Python 2.4.3
Any ideas?
Josh
On Nov 29, 2007 10:03 PM, Christian Hammond <chi...@chipx86.com> wrote:This is with devserver.sh? I just synced to 6718 and I'm having no problems there either. Also tried the latest revision and it's working too.
Christian--On Nov 29, 2007 6:22 PM, Josh Stone < cuv...@gmail.com> wrote:When I run Review Board (r1032) with Django r6718 or later, I see this exception in the browser:Error while importing URLconf 'reviewboard.urls ': 'Settings' object has no attribute 'BUILTIN_AUTH'
What's weird is that the debug output dumps the settings down below, and BUILTIN_AUTH looks fine. So I stepped into reviewboard.urls with the debugger, and found that the 'settings' object was missing everything from settings.py and settings_local.py, even though they all show up in the exception dump!
Django r6717 works fine, but r6718 breaks (gotta love git-bisect). However, if I pass "--settings= reviewboard.settings" to manage.py, everything works fine.
Has anyone else seen this? I would guess that it's a Django bug, not RB's, but hopefully someone more familiar with Django innards can take a look...
Thanks,
Josh
Try to reduce the problem to something a bit simpler, since there's a
large package involved here (that I, and probably a lot of other people
on this list, know nothing about).
Does just creating a simple Django project from scratch work for you
(e.g. the tutorial application)?
What operating system are you running on (there could well be Windows
vs. Mac vs. Linux vs. OS/2 differences)? What exceptions do you get?
Just the standard "can't find settings" exception, or something else?
Malcolm
r6718 was a patch I wrote. Without the patch you only get app-defined
commands if you use manage.py. With django-admin.py, you don't get
app-defined commands, even if you specify a --settings=path module.
I just tried the steps you mentioned and everything works fine, both
in Python 2.4 and 2.5:
tobryan1@200-TC-TOBRYAN1:~/Desktop/mysite$ python2.4
Python 2.4.4 (#2, Oct 4 2007, 22:02:31)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
tobryan1@200-TC-TOBRYAN1:~/Desktop/mysite$ python2.4 manage.py runserver
Validating models...
0 errors found
Django version 0.97-pre-SVN-6718, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
42
[09/Dec/2007 09:11:40] "GET / HTTP/1.1" 404 2053
tobryan1@200-TC-TOBRYAN1:~/Desktop/mysite$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
tobryan1@200-TC-TOBRYAN1:~/Desktop/mysite$ python manage.py runserver
Validating models...
0 errors found
Django version 0.97-pre-SVN-6718, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
42
[09/Dec/2007 09:12:17] "GET / HTTP/1.1" 404 2053
Can you provide any other debugging information that might help me
narrow down the problem?
Adrian, what errors were you seeing that caused the revert?
Todd
(Sorry it took me so long to get to this--teaching has been a bear recently.)
> attribute 'FOOBAR'". But if I add "--settings= mysite.settings" to the
What does your PYTHONPATH environment variable have in it?
Do you possibly have the current directory listed before the path to
Django? Because if you try to
from django.conf import settings
before your settings module has been identified, weird things might
happen. (I don't know what exactly...I'm grasping at straws at the
moment.)
Thanks,
Todd
Hmm. What you said about not having Django installed in site-packages
makes me think...
What does your PYTHONPATH environment variable have in it?
Do you possibly have the current directory listed before the path to
Django? Because if you try tobefore your settings module has been identified, weird things might
from django.conf import settings
happen. (I don't know what exactly...I'm grasping at straws at the
moment.)