Re: 404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
On 11 Jun., 15:30, Karen Tracey wrote: > Yes, you've got your admin registrations in your models.py file. models.py > won't necessarily be loaded early in a production environment with > DEBUG=False, so these registration calls are not running before you start > using admin. Move admin registrati

Re: 404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Karen Tracey
On Fri, Jun 11, 2010 at 4:49 AM, Jan Meier wrote: > And my model my_app/models.py looks as follows: > > from django.db import models > from django.contrib import admin > > class Blubb(models.Model): >x = models.IntegerField() > > admin.site.register(Blubb) > > Any ideas what could be wron

404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
Hi, I am serving my django project with mod_python and ran into a problem regarding the admin interface (django.contrib.admin). If DEBUG = False is set in settings.py the admin interface generates 404 error messages when clicking on any of my models, for example to add a new entry. The django ship