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
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
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
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
>
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',
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
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
>
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
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 = (
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',
10 matches
Mail list logo