Job Search Engine
828 浏览 5 years, 8 months
2.13 用户注册
版权声明: 转载请注明出处 http://www.codingsoho.com/用户注册
参考下面文章
registration这个app,它的URL有独立的文件,主URL通过include将它包含进来,同样,我们也可以用这种方法来处理job_entry app, 这样处理的方法干净整洁
jse.urls.py
urlpatterns = [
url(r'^accounts/', include('registration.backends.default.urls')),
]
job_entry.urls
from django.conf.urls import url, include
from job_entry.views import JobEntryListView, JobEntryDetailView
urlpatterns = [
url(r'^jobentry/$', JobEntryListView.as_view(), name='job_entry_list'),
url(r'^jobentry/(?P<pk>\d+)/$', JobEntryDetailView.as_view(), name='job_entry_detail'),
]
顺便在这一节,将footer模板添加进去了。