Sunday, October 30, 2011

Re: I can't activate the admin site

Hey lucas, its due to some indentation problem in coding as python strongly relies

Cheers, sent from my nokia mobile

------Original message------
From: Juan Kepler <lucasgagneten@gmail.com>
To: "Django users" <django-users@googlegroups.com>
Date: Sunday, October 30, 2011 6:42:03 PM GMT-0700
Subject: 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.


--
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