from django.conf.urls import include, url from django.contrib import admin from links.views import LinkListView from links.views import UserProfileDetailView from django.contrib.auth.decorators import login_required as auth from links.views import UserProfileEditView from links.views import LinkCreateView from links.views import LinkDetailView from links.views import LinkUpdateView from links.views import LinkDeleteView from links.views import VoteFormView urlpatterns = [ url(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root': 'static'}), url(r'^admin/', include(admin.site.urls)), url(r'^$', LinkListView.as_view(), name='home'), url(r'^login/$', 'django.contrib.auth.views.login', { 'template_name': 'login.html'}, name="login"), url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name="logout"), url(r'^accounts/', include('registration.backends.simple.urls')), url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"), url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"), url(r'^link/create/$', auth(LinkCreateView.as_view()),name='link_create'), url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'), url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'), url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'), url(r'^comments/', include('django_comments.urls')), url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"), ]
urlpatterns = [ url(r'^$', redirect_root), url(r'^admin/', include(admin.site.urls)), url(r'^comments/', include('django_comments.urls')), url(r'^home/$', LinkListView.as_view(), name='home'), url(r'^pages/', include('django.contrib.flatpages.urls')), url(r'^contact/', include(contact_urls)), url(r'^login/$', "django.contrib.auth.views.login", {"template_name": "login.html"}, name="login"), url(r'^logout/$', "django.contrib.auth.views.logout_then_login", name="logout"), url(r'^accounts/', include("registration.backends.simple.urls")), url(r"^users/(?P<slug>\w+)/$", UserProfileDetailView.as_view(), name="profile"), url(r"edit_profile/$", auth(UserProfileEditView.as_view()), name="edit_profile"), url(r"^link/create/$", auth(LinkCreateView.as_view()), name="link_create"), url(r"^link/(?P<pk>\d+)$", LinkDetailView.as_view(), name="link_detail"), url(r"^link/update/(?P<pk>\d+)$", auth(LinkUpdateView.as_view()), name="link_update"), url(r"^link/delete/(?P<pk>\d+)$", auth(LinkDeleteView.as_view()), name="link_delete"), url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"), ]
dbindexer.autodiscover() urlpatterns = patterns('', ('^_ah/warmup$', 'djangoappengine.views.warmup'), url(r'^$', LinkListView.as_view(), name='home'), url(r'^newest/$', LinkNewestView.as_view(), name='newest'), url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"), url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name="logout"), url(r'^accounts/', include('registration.backends.simple.urls')), url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"), url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"), url(r'^link/create/$', auth(LinkCreateView.as_view()), name='link_create'), url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'), url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'), url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'), url(r'^comments/', include('django.contrib.comments.urls')), url(r'^vote/$', VoteFormView.as_view(), name="vote"), url(r'^rerank/$', rerank.as_view()), url(r'^derank/$', derank.as_view()), url(r'^fetchRss/$', fetchRss.as_view()), url(r'^fetchRs2/$', fetchRs2.as_view()), url(r'^api/$', api.as_view()), # (r'^blog/', include('blog.urls')), # (r'^', TemplateView.as_view(template_name="home.html")), # #url(r'^$', TemplateView.as_view("home.html")), # ('^$', 'django.views.generic.simple.direct_to_template', {'template': 'home.html'}), ('^admin/', include(admin.site.urls)), )
from django.conf.urls import patterns, include, url from links.views import LinkListView, LinkCreateView, LinkDetailView, LinkDeleteView, LinkUpdateView from links.views import VoteFormView from django.contrib import admin from django.contrib.auth.decorators import login_required as auth admin.autodiscover() urlpatterns = patterns('', url(r'^$', LinkListView.as_view(), name='home'), url(r'^link/create/$', auth(LinkCreateView.as_view()), name='link_create'), url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'), url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'), url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'), url(r'^vote/$', auth(VoteFormView.as_view()), name='vote'), url(r'^admin/', include(admin.site.urls)), url(r'^accounts/', include('allauth.urls')), url(r'^users/', include('profiles.urls')), url(r'^comments/', include('django.contrib.comments.urls')), )
'django.contrib.auth.views.logout_then_login', name="logout"), url(r'^accounts/', include('registration.backends.simple.urls')), url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"), url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"), url(r'^link/create/$', auth(LinkCreateView.as_view()), name='link_create'), url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'), url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'), url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'), url(r'^comments/', include('django.contrib.comments.urls')), url(r'^vote/$', VoteFormView.as_view(), name="vote"), url(r'^rerank/$', rerank.as_view()), url(r'^derank/$', derank.as_view()), url(r'^fetchRss/$', fetchRss.as_view()), url(r'^fetchRs2/$', fetchRs2.as_view()), url(r'^api/$', api.as_view()), # (r'^blog/', include('blog.urls')), # (r'^', TemplateView.as_view(template_name="home.html")), # #url(r'^$', TemplateView.as_view("home.html")), # ('^$', 'django.views.generic.simple.direct_to_template', {'template': 'home.html'}), ('^admin/', include(admin.site.urls)), )