📜  django 链接主页 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:08.169000             🧑  作者: Mango

代码示例1
---urls.py:---
from django.conf.urls.defaults import *

urlpatterns = patterns('myproject.views',
    url(r'^$', 'index', name='index'), #name is important
)

---Templates:---