from django.conf.urls import patterns, include, url
from django.contrib import admin
from demo.views import Notifications

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', Notifications.as_view(), name='home'),
    url(r'^admin/', include(admin.site.urls)),
)
예제 #2
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from demo.views import Notifications

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', Notifications.as_view(), name='home'),
    url(r'^admin/', include(admin.site.urls)),
)
예제 #3
0
from django.urls import path, include
from django.contrib import admin
from demo.views import Notifications, user_login, logout_view

admin.autodiscover()

# urlpatterns = patterns('',
#     url(r'^admin/', include(admin.site.urls)),
# )
urlpatterns = [
	path('login/',user_login, name='hi'),
	path('logout/',logout_view,name='logout'),
	path('', Notifications.as_view(), name='home'),
	path('admin/', admin.site.urls)
]