Hey I am a begginer too and i went tru the same tutorial and trust me i had so many errors and i just struggled tru.. now indentation errors are quite common. what u need to do is, go to u models.py, admin.py, views.py or any other .py file for which ever the code is written, and plz try using python editor to write instead of other text editors. they help u indent the code pretty well. and then give python manage.py shell after syncdb n validate. I am sure u ll get tru. indent your functions properly. all the best.
Regards, kalyani Ram On Feb 22, 4:41 am, Django_for_SB <sami.balb...@gmail.com> wrote: > Django Gurus, > > I'm an absolute beginner using Python in Django. I'm currently going > through the tutorial, part 1, on the djangoproject.com main > website:https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep trying > to complete part 1 of the tutorial, step by step, meaning, I'll go > through the tutorial part 1, progress up to a certain point, then > close my shell command and shut-down my computer. Then, when I get > back to opening up the project in which I initially began working on, > namely, "mysite" (as the tutorial instructs us to name), my shell > commands aren't valid anymore. > > Example: > > manage.py shell -----> This > initially works if I start the project from scratch > > manage.py shell -----> This won't > work if I leave my project, then go back to continue to > > work on it later > > This is the error I keep getting: > > Traceback(most recent call last): > > IndentationError: unexpected Indent > > I'm not quite sure what's going on. Any assistance would be more than > appreciated. What am I missing here? Thank you. > > Best, > > SB -- 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.