Skip to content

Instantly share code, notes, and snippets.

@xiantail
Last active December 31, 2015 08:00
Show Gist options
  • Save xiantail/08e8a1d56c0852f9c626 to your computer and use it in GitHub Desktop.
Save xiantail/08e8a1d56c0852f9c626 to your computer and use it in GitHub Desktop.
TDD with Python / Chapter 3 Final
"""superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Add an import: from blog import urls as blog_urls
2. Import the include() function: from django.conf.urls import url, include
3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url
from django.contrib import admin
urlpatterns = [
# url(r'^admin/', admin.site.urls),
url(r'^$', 'lists.views.home_page', name='home'),
]
from django.shortcuts import render
# Create your views here.
def home_page():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment