Re: AttributeError when trying to access the Admin application

2009-01-04 Thread mamco
you probably need to create an admin.py file in your application directory. from: http://docs.djangoproject.com/en/dev/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin something like (...project/app/admin.py): from mysite.polls.models import Poll from django.contrib import admin admi

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
Thanks it works now. I got a page to manager Users, Groups and Sites My purpose was to test Admin pages for my models. Any ideas how to do that? Forgive me again, I'm new to Django and I'm a little lost. Thanks in advance. On Jan 4, 4:39 pm, Eric Abrahamsen wrote: > On Jan 4, 2009, at 8:14 PM, H

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
On Jan 4, 2009, at 8:14 PM, HB wrote: > > Well, sorry but where to add those lines? In your settings.py file. There might not be a MIDDLEWARE_CLASSES value at all at the moment (though I can't imagine where it went), so make sure there's something like this in settings: MIDDLEWARE_CLASSES

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
Well, sorry but where to add those lines? On Jan 4, 2:11 pm, Eric Abrahamsen wrote: > On Jan 4, 2009, at 8:00 PM, HB wrote: > > > > > > > Here is the full traceback: > > +++ > > Environment: > > > Request Method: GET > > Request URL:http://localhost:8000/admin/ > > Django Version: 1.0.2 final >

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
On Jan 4, 2009, at 8:00 PM, HB wrote: > > Here is the full traceback: > +++ > Environment: > > Request Method: GET > Request URL: http://localhost:8000/admin/ > Django Version: 1.0.2 final > Python Version: 2.5.2 > Installed Applications: > ['django.contrib.auth', > 'django.contrib.contenttypes',

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
Here is the full traceback: +++ Environment: Request Method: GET Request URL: http://localhost:8000/admin/ Django Version: 1.0.2 final Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'djang

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
On Jan 4, 2009, at 7:19 PM, HB wrote: > > I don't have middleware classes. > I just created some model classes and tried to create Admin > application for them. > Maybe I have to comment some of INSTALLED_APPS that Django uncomment > them by default. > Suspects are auth, contenttypes, sessions >

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread HB
I don't have middleware classes. I just created some model classes and tried to create Admin application for them. Maybe I have to comment some of INSTALLED_APPS that Django uncomment them by default. Suspects are auth, contenttypes, sessions Right? On Jan 4, 1:06 pm, Eric Abrahamsen wrote: > On

Re: AttributeError when trying to access the Admin application

2009-01-04 Thread Eric Abrahamsen
On Jan 4, 2009, at 4:58 PM, HB wrote: > > Hey, > I'm trying to create Admin application for my Django project, here are > some snippets: > +++ > from django.contrib import admin > admin.autodiscover() > > urlpatterns = patterns('', > (r'^admin/(.*)', admin.site.root), > ) > > INSTALLED_APPS = (

AttributeError when trying to access the Admin application

2009-01-04 Thread HB
Hey, I'm trying to create Admin application for my Django project, here are some snippets: +++ from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^admin/(.*)', admin.site.root), ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes',