# Virtual environment
djangogirls
+
+# Django static files
+/static
+.DS_Store
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Neil's blog</title>
+</head>
+<body>
+
+<div>
+ <h1><a href="">Django Girls Blog</a></h1>
+</div>
+<div>
+ <p>published: 14.06.2014, 12:14</p>
+ <h2><a href="">My first post</a></h2>
+ <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut rmentum mass a justo sit amet risus.</p>
+</div>
+<div>
+ <p>published: 14.06.2014, 12:14</p>
+ <h2><a href="">My second post</a></h2>
+ <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut f.</p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+from django.conf.urls import url
+from . import views
+
+urlpatterns = [
+ url(r'^$', views.post_list, name='post_list'),
+]
\ No newline at end of file
from django.shortcuts import render
-# Create your views here.
+def post_list(request):
+ return render(request, 'blog/post_list.html', {})
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
-from django.conf.urls import url
+from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
+ url('', include('blog.urls')),
]