On 15/02/2012 5:41pm, Mike Dewhirst wrote:
invalid syntax (admin.py, line 1)
Your original error indicated there is an admin.py but with an error on
line 1 or a missing admin.py which you have confirmed.
That is the problem.
To get your models to appear in the admin app you need an admin.py in
each app directory. That is, each app listed in INSTALLED_APPS which
also has a models.py.
Inside each admin.py you need to import the models you want to see in
the admin and then do admin.site.register
If you are not even getting to the admin login prompt there is something
else wrong. Even so I think it will be related to admin.py somewhere.
Mike
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.