List Info

Thread: Django Admin




Django Admin
user name
2006-03-01 16:26:33
I've been using Django mostly just playing around and
trying to get the
hang of things before I try anything serious. I'm using
Apache and
FCGI, along with the magic-removal branch.

Last night or the night before, I ran 'svn update' to get
the latest
version. Now when I try to access the built-in admin site, I
get the
following error:

AttributeError at /admin/
'WSGIRequest' object has no attribute '_user_source'

/home/timster/django_src/django/core/handlers/wsgi.py in
_get_user
124. self._user = self._user_source.get_user(self)

To the best of my knowledge, the admin site worked perfectly
before
updating.

I see there's a ticket for this, but it's closed, and I
don't quite
understand the solution.

http://code
.djangoproject.com/ticket/1415

Any help is greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Django Admin
user name
2006-03-01 18:28:34
On 03/01/06 17:26, timster wrote:
> I've been using Django mostly just playing around and
trying to get the
> hang of things before I try anything serious. I'm
using Apache and
> FCGI, along with the magic-removal branch.
> 
> Last night or the night before, I ran 'svn update' to
get the latest
> version. Now when I try to access the built-in admin
site, I get the
> following error:
> 
> AttributeError at /admin/
> 'WSGIRequest' object has no attribute
'_user_source'
> 
> /home/timster/django_src/django/core/handlers/wsgi.py
in _get_user
> 124. self._user = self._user_source.get_user(self)
> 
> To the best of my knowledge, the admin site worked
perfectly before
> updating.
> 
> I see there's a ticket for this, but it's closed, and
I don't quite
> understand the solution.
> 
> http://code
.djangoproject.com/ticket/1415
> 
> Any help is greatly appreciated.
> 

You have to add the new RequestUserMiddleware to your 
settings.MIDDLEWARE_CLASSES.

e.g.

MIDDLEWARE_CLASSES = (
    
"django.middleware.common.CommonMiddleware",
    
"django.contrib.auth.middleware.RequestUserMiddleware
",
    
"django.contrib.sessions.middleware.SessionMiddleware
",
     "django.middleware.doc.XViewMiddleware",
)

I'm not sure if the order matters, but the above works for
me.

cheers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Django Admin
user name
2006-03-02 04:54:26
On 3/1/06, timster <timster121gmail.com> wrote:
> I've been using Django mostly just playing around and
trying to get the
> hang of things before I try anything serious. I'm
using Apache and
> FCGI, along with the magic-removal branch.
>
> Last night or the night before, I ran 'svn update' to
get the latest
> version. Now when I try to access the built-in admin
site, I get the
> following error:

See Steven Armstrong's e-mail for the correct solution with
regard to
magic-removal, but I'd *highly* suggest sticking with
Django's stable
trunk, or the latest released version (0.91) if you're
starting with
Django. The magic-removal branch remains for core developers
only at
this point.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )