Hi Karen

I imagine that it was only the # that should get deletet, the space is
thera by default.

Thanks fore the tip, it solved my problem.

// Micke

On 4 Feb, 16:19, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, Feb 4, 2009 at 10:09 AM, MickeSommar <micke.som...@gmail.com> wrote:
> > [snip lots of detail except what turns out to be relevant so it was good to
> > include it all]
>
> > 11.2 Edeting the urls.py file.
>
> > Uncomment lines:
>
> > from django.conf.urls.defaults import *
>
> > # Uncomment the next two lines to enable the admin:
> >  from django.contrib import admin
> >  admin.autodiscover()
>
> It looks like you have uncommented these lines by changing the # to a
> space.  You need, rather, to just delete the #.  Putting a space there will
> lead to...
>
> > 12. Start the server, surf tohttp://192.168.1.157/admin/, get error:
>
> > Environment:
>
> > [snip]
> > Exception Type: IndentationError at /admin/
> > Exception Value: unexpected indent (urls.py, line 4)
>
> an IndentationError.  Whitespace is significant in Python.  You cannot
> arbitrarily indent (even by just one space) blocks of code. You also need to
> be careful about not mixing tabs and spaces.  Best not to use tabs at all,
> stick with spaces for indenting code.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to