Hi all, I'm having problems using Review Board with recent Django revisions, and I'm hoping that this list can help. Please see below for the previous discussion, but the gist is that with Django r6718 (and later), I'm getting exceptions when urls.py tries to access site settings. I did some debugging, and it seems that urls.py is only getting the default settings, so all of the custom settings are missing from the object.
1. If I run "./manage.py runserver 0.0.0.0:8080", I get exceptions. 2. If I run "env DJANGO_SETTINGS_MODULE=reviewboard.settings ./manage.py runserver 0.0.0.0:8080", I get exceptions. 3. If I run "./manage.py runserver --settings=reviewboard.settings 0.0.0.0:8080", it works fine! Everything works fine though with Django r6717, so something in that change must have broken this. It's not a big change, but I'm at a loss as to what the problem is. The Review Board developers are not able to reproduce this, but they're using Python 2.5 and mine is Python 2.4. Any ideas? Thanks, Josh ---------- Forwarded message ---------- From: Christian Hammond <[EMAIL PROTECTED]> Date: Nov 30, 2007 3:05 PM Subject: Re: Break with Django SVN r6718 To: [EMAIL PROTECTED] That's very strange... I don't have any ideas. It's working perfectly fine here. There must be some subtlety that we're missing. I am using Python 2.5, though. Maybe there's some bug they introduced with 2.4. Christian On Nov 30, 2007 2:57 PM, Josh Stone <[EMAIL PROTECTED]> wrote: > 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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 > > > > > > > > > > > > > > > -- > > Christian Hammond - [EMAIL PROTECTED] > > VMware, Inc. > > > > > > > -- Christian Hammond - [EMAIL PROTECTED] VMware, Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---