Пример #1
0
from django.conf.urls import url
from core.views import IndexPage, TestOne, TestTwo

urlpatterns = [
    url(r'^$', IndexPage.as_view(), name="index"),
    url(r'^test1/$', TestOne.as_view(), name="test_one"),
    url(r'^test2/$', TestTwo.as_view(), name="test_two")
]
Пример #2
0
from django.conf.urls import patterns, url

from core.views import IndexPage

urlpatterns = patterns(
    u'core.views',
    url(r'^$', IndexPage.as_view(), name=u'core_index'),
)
Пример #3
0
from django.conf.urls import patterns, url

from core.views import IndexPage

urlpatterns = patterns(
    u'core.views',
    url(r'^$', IndexPage.as_view(), name=u'core_index'),

)