Monday, July 29, 2013

installing RemoteUserMiddleware causes errors

I keep getting 504 gateway timeout errors on http://code.djangoproject.com/ so I can't look through the tickets for this.

There are some threads on this list that seem like they might be related; but I can't tell because they link to code.djangoproject.com which I can't get to.


Before I make the change `python manage.py test` works; I after I make the change, the test command fails with these errors: 
https://gist.github.com/tingletech/6106397#file-2-errors-txt

Any ideas what I'm doing wrong?

This test below is django 1.5.1; but I noticed the issue on a django 1.5.0 site


diff --git a/blah/settings.py b/blah/settings.py
index b3f2aec..0701641 100644
--- a/blah/settings.py
+++ b/blah/settings.py
@@ -97,11 +97,16 @@ MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.auth.middleware.RemoteUserMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
+AUTHENTICATION_BACKENDS = (
+ 'django.contrib.auth.backends.RemoteUserBackend',
+)
+
ROOT_URLCONF = 'blah.urls'
# Python dotted path to the WSGI application used by Django's runserver.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment