larken

勤奋的人生才有价值

导航

Part 1 - Getting Started(1-3)

#urls.py
from django.conf.urls import url
from django.contrib import admin
from boards import views
urlpatterns = [
    url(r'^$', views.home, name='home'),
    url(r'^admin/', admin.site.urls),
]

#views.py
from django.http import HttpResponse
def home(request):
    return HttpResponse('Hello, World!')

 

posted on 2018-09-06 19:00  larken  阅读(114)  评论(0编辑  收藏  举报