Sunday, October 30, 2011

I can't activate the admin site

I've done what the "Writing your first Django app, part 1" said. It
works.

But in the part 2:
*I add "django.contrib.admin" to my INSTALLED_APPS setting.
*I run python manage.py syncdb.
And I have this error:
"File "...Python26\lib\site-packages\django\contrib\admin\sites.py",
line 250
return self.get_urls(), self.app_name, self.name
IndentationError: unexpected indent"

I have the latest version of Django installed, and I'm using PyCharm
as IDE

What can I do?
Thanks!

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment