Kaynağa Gözat

Linking urls, writing basic template

David Leonard 10 yıl önce
ebeveyn
işleme
34d02aaa3f

+ 1 - 0
hackathon_starter/hackathon/templates/hackathon/index.html

@@ -0,0 +1 @@
+<h1> Hello! </h1>

+ 8 - 0
hackathon_starter/hackathon/urls.py

@@ -0,0 +1,8 @@
+from django.conf.urls import patterns, url
+
+from hackathon import views
+
+urlpatterns = patterns('',
+    url(r'^$', views.index, name='index'),
+    url(r'^test/$', views.test, name='test'),
+)