title: AttributeError: module 'blog.views' has no attribute 'post_detail'
body: <p>File <strong>urls.py</strong></p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^$', views.post_list, name='post_list'),
      url(r'^post/(?P&lt;pk&gt;\d+)/$', views.post_detail, name='post_detail'),
  ]
  </code></pre>
  
  <p>File <strong>views.py</strong></p>
  
  <pre><code>from django.utils import timezone
  from django.shortcuts import render, get_object_or_404
  from .models import Post
  from . import urls
  
  def post_list(request):
      posts = Post.objects.filter(
          published_date__lte=timezone.now()).order_by('published_date')
      return render(request, 'blog/post_list.html', {'posts': posts})
  
  def post_detail(request, pk):
      post = get_object_or_404(Post, pk=pk)
      return render(request, 'blog/post_detail.html', {'post': post})
  </code></pre>
  
  <p>Even though <code>post_detail</code> attribute has been included, still I get the error that it's not included. Can someone please help?<br>
  Edit:
  As people suggested,tried removing the from . import urls line but still getting the same error.
  Also attaching my html file if that helps:</p>
  
  <pre><code>{% extends 'blog/base.html' %}
  {% block content %}
                      {% for post in posts %}
                          &lt;div class="post"&gt;
                              &lt;div class="date"&gt;
                                  &lt;p&gt;published: {{ post.published_date }}&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;h1&gt;&lt;a href="{% url 'post_detail' pk=post.pk %}"&gt;{{ post.title }}&lt;/a&gt;&lt;/h1&gt;
                              &lt;p&gt;{{ post.text|linebreaksbr }}&lt;/p&gt;
                          &lt;/div&gt;
                      {% endfor %}
  {% endblock %}
  </code></pre>