On Fri, Apr 19, 2013 at 4:17 PM, Alex Lee <alexlee0...@gmail.com> wrote:
> Hi guys, I just started the second tutorial! I'm trying to connect to the
> admin site, but when I go to http://127.0.0.1:8000/admin after I runserver,
> I get the same "Welcome to django!" screen that I get if I would just
> connect to http://127.0.0.1:8000/. The tutorial says that the admin site is
> activated by default, but I can't access it. Is there something I'm doing
> wrong, or is there some way I can force the admin site up?

If you get exactly the same page for '/admin/' as you do for '/',
check that your urls.py is specified correctly. It will stop at the
first match, if the first view listed matches any string, you will
always get that view.

Eg, if you accidentally changed the regexp from "^$" to "^", then
every url will match that regexp.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to