On 15/02/2012 7:48pm, Stanwin Siow wrote:
ok i figured where that error was coming from.
It was from the method: admin.autodiscover()
Well done!!! :)
What does this method do?
http://www.google.com.au/webhp?rlz=1C1GPEA_en___AU313&sourceid=chrome-instant&ix=sea&ie=UTF-8&ion=1#hl=en&rlz=1C1GPEA_en___AU313&output=search&sclient=psy-ab&q=admin.autodiscover()&pbx=1&oq=&aq=&aqi=&aql=&gs_sm=&gs_upl=&fp=eb2d694fa5cee7bd&ix=sea&ion=1&ix=sea&ion=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=eb2d694fa5cee7bd&biw=745&bih=910&ix=sea&ion=1
Mike
Best Regards,
Stanwin Siow
On Feb 15, 2012, at 3:12 PM, Mike Dewhirst wrote:
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 [email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.