title: Django : Page Not found
body: <p>Im foraying into the world of django and following the tutorial from <a href="http://www.tangowithdjango.com/book17/chapters/setup.html#testing-your-setup" rel="nofollow">Tango with Django</a>. However I keep getting a 404 page not found error when I try creating the basic <code>view</code>.</p>
  
  <p>I used the <code>django-admin.py</code> command and created a folder named <code>Project</code>. Which in turn has a folder the the same name( ill call it subProject here to avoid confusion) and the <code>manage.py</code> file. The subProject has the files</p>
  
  <pre><code>1.init.py
  2.settings.py
  3.urls.py
  4.wsgi.py
  </code></pre>
  
  <p>I then created an app folder in Project called <code>rango</code>. Rango has the <code>init.py, views,py, tests.py models.py and views.py</code> files.</p>
  
  <p>i only edited the <code>views</code> and the <code>urls</code> file. they are as follows:</p>
  
  <p><code>/rango/views.py</code></p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  def index(request):
       return HttpResponse("Hello World")
  </code></pre>
  
  <p><code>/rango.urls.py</code></p>
  
  <pre><code>from django.conf.urls import patterns, url
  from rango import views
  
  urlpatterns = patterns('',
          url(r'^$', views.index, name='index'))
  </code></pre>
  
  <p>I then edited the <code>urls.py</code> in subProject</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'project.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      url(r'^rango/', include('rango.urls')),
  )
  </code></pre>
  
  <p>I added the add in the setting file. However when i do <code>python manage.py runserver</code> and go to the project URL it says</p>
  
  <pre><code>Page not found (404)
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/
  Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
  ^admin/
  ^rango/
  The current URL, , didn't match any of these.
  You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
  </code></pre>
  
  <p>Ive followed the tutorial as it is. What exactly is the problem?</p>