from django.conf.urls import patterns, include, url from django.contrib import admin from twitter.views import UserTweetListView, LoginView admin.autodiscover() urlpatterns = patterns( 'twitter.views', # Examples: url(r'^$', UserTweetListView.as_view(), name='index'), url(r'^page(?P<page>\d+)$', UserTweetListView.as_view(), name='index'), url(r'^proc/$', 'process', name='process'), url(r'^signin/$', LoginView.as_view(), name='sign_in'), url(r'^signout/$', 'sign_out', name='sign_out'), url(r'^q/$', 'q', name='q'), url(r'^admin/', include(admin.site.urls)), url(r'^analytics/', include('analytics.urls', namespace='analytics')), )
from django.urls import path from twitter.views import HomeView, LoginView, logout_view, MessagesView, AccountView, TweetInfoView, RegisterView urlpatterns = [ path('', HomeView.as_view(), name='home'), path('login/', LoginView.as_view(), name='login'), path('logout/', logout_view, name='logout'), path('register/', RegisterView.as_view(), name='register'), path('messages/', MessagesView.as_view(), name='messages'), path('account/', AccountView.as_view(), name='account'), path('tweet/<int:tweet_id>', TweetInfoView.as_view(), name='tweet_info'), ]
from django.conf.urls import patterns, include, url from django.contrib import admin from twitter.views import UserTweetListView, LoginView admin.autodiscover() urlpatterns = patterns( "twitter.views", # Examples: url(r"^$", UserTweetListView.as_view(), name="index"), url(r"^page(?P<page>\d+)$", UserTweetListView.as_view(), name="index"), url(r"^proc/$", "process", name="process"), url(r"^signin/$", LoginView.as_view(), name="sign_in"), url(r"^signout/$", "sign_out", name="sign_out"), url(r"^q/$", "q", name="q"), url(r"^admin/", include(admin.site.urls)), url(r"^analytics/", include("analytics.urls", namespace="analytics")), )
from django.conf.urls import url, patterns from twitter.views import LoginView urlpatterns = patterns('twitter.views', url(r'^$', 'home', name='home'), url(r'login/$', LoginView.as_view(), name='login'), url(r'logout/$', 'log_out', name='logout'), url(r'settings/$', 'settings', name='settings'), url(r'registration/$', 'registration', name='registration'), )