title: Django urls help - not able to access view
body: <p>Let me start by saying I'm new to Django and I realize this seems simple (and I'm hoping it is).</p>
  
  <p>I'm following a tutorial that is taking me through the basic set up of a simple Django site, and I've found myself stuck at a point where I'm simply calling on a new view the tutorial just had me add. (for those interested, the tutorial is here <a href="https://overiq.com/django/1.10/views-and-urlconfs-in-django/" rel="nofollow noreferrer">https://overiq.com/django/1.10/views-and-urlconfs-in-django/</a>)</p>
  
  <p>So, I've got my server up and running, and I'm trying to access </p>
  
  <blockquote>
    <p><a href="http://127.0.0.1:8000/blog/time/" rel="nofollow noreferrer">http://127.0.0.1:8000/blog/time/</a></p>
  </blockquote>
  
  <p>When I try to access that view, I get the error:</p>
  
  <blockquote>
    <p>Using the URLconf defined in mysite.urls, Django tried these URL
    patterns, in this order:</p>
  
  <pre><code>^blog ^time/$ [name='todays_time']
  ^blog ^$ [name='blog_index']
  ^admin/
  </code></pre>
    
    <p>The current path, blog/time/, didn't match any of these.</p>
  </blockquote>
  
  <p>Here is the layout of my Django project:</p>
  
  <p><a href="https://i.stack.imgur.com/5DcHz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5DcHz.png" alt="Django project layout"></a></p>
  
  <p>My <strong>mysite</strong>'s <strong>urls.py</strong> file looks like this:</p>
  
  <pre><code>from django.conf.urls import url, include
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^blog/', include('blog.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>My <strong>blog</strong> package's <strong>urls.py</strong> file looks like this:</p>
  
  <pre><code>from django.conf.urls import url
  from blog import views
  
  urlpatterns = [
      url(r'^time/$', views.today_is, name='todays_time'),
      url(r'^$', views.index, name='blog_index'),
  ]
  </code></pre>
  
  <p>my <strong>blog</strong> package's <strong>views.py</strong> looks like this:</p>
  
  <pre><code>from django.http import HttpResponse
  import datetime
  
  def index(request):
      return HttpResponse("Hello Django!!!")
  
  def today_is(request):
      now = datetime.datetime.now()
      html = '''
              &lt;html&gt;
                  &lt;body&gt;
                      Current date and time: {0}
                  &lt;/body&gt;
              &lt;/html&gt;
              '''.format(now)
      return HttpResponse(html)
  </code></pre>
  
  <p>I can successfully go to </p>
  
  <blockquote>
    <p><a href="http://127.0.0.1:8000/blog" rel="nofollow noreferrer">http://127.0.0.1:8000/blog</a></p>
  </blockquote>
  
  <p>and see the response from index() as "Hello Django!!!" in my browser. So with that I was expecting </p>
  
  <blockquote>
    <p><a href="http://127.0.0.1:8000/blog/time/" rel="nofollow noreferrer">http://127.0.0.1:8000/blog/time/</a></p>
  </blockquote>
  
  <p>to work just fine, but it doesn't, and attempting to view that is what yields the error I shared above.</p>
  
  <p>Can anyone point me in the right direction here? I'd appreciate it! Thanks, everyone!</p>
  
  <p>NOTE: I can provide more details, screen grabs, or code snippets as needed, just let me know what I might be missing here!</p>