Hi,

I'm running into an issue (I think) with the SVN development version of 
Django. I followed  
these<http://docs.djangoproject.com/en/dev/topics/install/#installing-development-version>
 instructions 
to install the Django development version, running Ubuntu 10.10, Apache 
2.2.16, and libapache2-mod-wsgi 3.2-2 (as output by dpkg -l | grep wsgi).

As I'm going through the tutorial, everything worked fine until I reached 
the admin page in part 2. Initially, testing using

python manage.py runserver

would show the styles, while testing using Apache would not. I resolved that 
by adding:

Alias /static/admin/ 
/home/wayne/programming/build/django-trunk/django/contrib/admin/media/

To my apache conf. However, when I logged into the admin interface after 
registering polls, all I saw were: [image: 
http://docs.djangoproject.com/en/dev/_images/admin02t.png]<http://docs.djangoproject.com/en/dev/_images/admin02t.png>
.

After reloading the page a few times, the Polls page showed up. However, 
when I clicked on it I was presented with a 404 error. After going back in 
and reloading a few times, it finally worked. I went on to adding the 
Choices part, and during this time the Polls and Choices would only 
intermittently appear in the Admin list. And randomly when I would do an 
action, I would be met with something of this nature:

Page not found (404)
Request Method: GET 
Request URL:    http://localhost/admin/polls/choice/add/
Using the URLconf defined in waynesdomain.urls, Django tried these URL 
patterns, in this order:
^admin/ ^$ [name='index']
^admin/ ^logout/$ [name='logout']
^admin/ ^password_change/$ [name='password_change']
^admin/ ^password_change/done/$ [name='password_change_done']
^admin/ ^jsi18n/$ [name='jsi18n']
^admin/ ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$
^admin/ ^(?P<app_label>\w+)/$ [name='app_list']
^admin/ ^auth/user/
^admin/ ^sites/site/
^admin/ ^auth/group/
^admin/ ^polls/poll/
The current URL, admin/polls/choice/add/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings
file. Change that to False, and Django will display a standard 404 page.

This type of error is intermittent - Sometimes I can add choices perfectly 
fine, other times it won't let me add anything, at least when using Apache. 
If I use the Django testing server, I haven't had a single problem.

I'm not sure if this is an issue with my paths, but I don't think it's an 
Apache or mod_wsgi error, as using the version of Django in the Ubuntu 
repositories worked just fine.

The only real clue I have is that the errors seem to coincide with this 
message in /var/log/apache2/error.log:

[Sat May 21 19:53:52 2011] [error] Exception 
KeyError?<http://code.djangoproject.com/wiki/KeyError>
: KeyError? <http://code.djangoproject.com/wiki/KeyError>(-1216001392,) in 
<module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored

Any clues?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to