Saturday, March 24, 2012

Keep getting 404 error

I'm a total newbie to django and just started the book. I created a
project and I'm now trying to create my first page, but I keep getting
an error page that says:

Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in redlab.urls, Django tried these URL
patterns, in this order:
^hello/$
The current URL, , didn't match any of these.


Here's what's in my urls.py file:

from django.conf.urls.defaults import*
from redlab.views import hello

urlpatterns = patterns('', ('^hello/$', hello),)

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
# Examples:
# url(r'^$', 'redlab.views.home', name='home'),
# url(r'^redlab/', include('redlab.foo.urls')),

# Uncomment the admin/doc line below to enable admin
documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),


please advise. thnx.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate