Finished up to 3.6, First unit test and url mapping, dummy view
parent
ff9370e0ca
commit
1827d492d6
|
@ -1,3 +1,5 @@
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
home_page = None
|
# Create your views here
|
||||||
|
def home_page():
|
||||||
|
pass
|
|
@ -14,8 +14,8 @@ Including another URLconf
|
||||||
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
||||||
"""
|
"""
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
from django.contrib import admin
|
from lists import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^admin/', admin.site.urls),
|
url(r'^$', views.home_page, name='home'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue