On Aug 15, 11:22 am, salai <[email protected]> wrote:
> Dear Léon,
>
> Thankyou.
>
> hmm.. It is strange.! ( indentation error)!
>
>  But, after restarting the server, my Polls APP is not in admin area
>  loaded. It always happened, when I got an error message.
>
>  many thanks in advance,
>
>  regards,
>  koko

This is because there's also an indentation problem with the final
line:
admin.site.register(Poll, PollAdmin)

This must not be indented at all, ie it must be right up against the
left-hand margin, because it should be outside of the admin class.

You really need to read an introduction to Python so you can
understand why indentation is important. Have a look at
http://wiki.python.org/moin/BeginnersGuide/Programmers for a list of
tutorial both for novice programmers and those who have programmed in
other languages.

--
DR.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to