I did. When admin.autodiscover() was uncommented out,
It gives the syntax error when my admin.py was only as such: from r2.models import Keyword from django.contrib import admin admin.site.register(Keyword) Best Regards, Stanwin Siow On Feb 15, 2012, at 5:20 PM, Ervin Hegedüs wrote: > hello, > > On Wed, Feb 15, 2012 at 04:48:18PM +0800, Stanwin Siow wrote: >> ok i figured where that error was coming from. >> >> It was from the method: admin.autodiscover() >> >> What does this method do? > > in Django doc: > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/ > > "Above we used admin.autodiscover() to automatically load the > INSTALLED_APPS admin.py modules." > > Did you import the required modules? > > > > a. > > -- > 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. > -- 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.