DoesNotExist at /blog/1/

I have reached to the point where I created the blog_detail view and I updated my urls.py accordingly. But when I enter the url 127.0.0.1:8000/blog/1 I get

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/blog/1/

Django Version: 1.5.2 Python Version: 2.7.5 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'south', 'blog') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback: File "/home/voger/blog-venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 115. response = callback(request, *callback_args, **callback_kwargs) File "/home/voger/PycharmProjects/microblog/blog/views.py" in blog_detail 17. post = Post.objects.get(pk=pk, published=True) File "/home/voger/blog-venv/lib/python2.7/site-packages/django/db/models/manager.py" in get 143. return self.get_query_set().get(*args, **kwargs) File "/home/voger/blog-venv/lib/python2.7/site-packages/django/db/models/query.py" in get 404. self.model._meta.object_name)

Exception Type: DoesNotExist at /blog/1/ Exception Value: Post matching query does not exist.

Both the function and the urls.py line are copied and pasted and I also included that function in the includes line

Sorry You must be a logged in, registered user to answer a question.