direct_to_template -> TemplateView
This commit is contained in:
parent
84bd8f8971
commit
b495eddc61
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
from django.conf.urls import patterns, url
|
from django.conf.urls import patterns, url
|
||||||
from django.views.generic.simple import direct_to_template
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = patterns("symposion.sponsorship.views",
|
urlpatterns = patterns("symposion.sponsorship.views",
|
||||||
url(r"^$", direct_to_template, {"template": "sponsorship/list.html"}, name="sponsor_list"),
|
url(r"^$", TemplateView.as_view(template_name="sponsorship/list.html"), name="sponsor_list"),
|
||||||
url(r"^apply/$", "sponsor_apply", name="sponsor_apply"),
|
url(r"^apply/$", "sponsor_apply", name="sponsor_apply"),
|
||||||
url(r"^add/$", "sponsor_add", name="sponsor_add"),
|
url(r"^add/$", "sponsor_add", name="sponsor_add"),
|
||||||
url(r"^(?P<pk>\d+)/$", "sponsor_detail", name="sponsor_detail"),
|
url(r"^(?P<pk>\d+)/$", "sponsor_detail", name="sponsor_detail"),
|
||||||
|
|
Loading…
Reference in a new issue