url(r'^admin/filebrowser/', include(site.urls)), url(r'^grappelli/', include('grappelli.urls')), # grappelli URLS url(r'^admin/', include(admin.site.urls)), url(r'^feed/$', ArticleFeed()), url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), # url(r'^$', 'signups.views.connect', name='connect'), #url(r'^$', ArticleFeatured.as_view(), name='article_detail'), url(r'^$', IssueFeatured.as_view(), name='issue_detail'), url(r'^articles/$', ArticleList.as_view(), name='article_list'), url(r'^issues/$', IssueList.as_view(), name='issue_master_list'), url(r'^issues/(?P<slug>[-\w]+)/$', IssueDetail.as_view(), name='issue_detail'), url(r'^preview/$', login_required(ArticlePreviewList.as_view()), name='article_preview_list'), url(r'^subscribe/$', 'signups.views.connect', name='connect'), url(r'^issue-four/$', RedirectView.as_view(url='/issues/4/')), url(r'^issue-five/$', RedirectView.as_view(url='/issues/5/')), url(r'^issue-6/$', RedirectView.as_view(url='/issues/6/')), url(r'^issue-7/$', RedirectView.as_view(url='/issues/7/')), url(r'^instagram/', include('insta.urls')), url(r'^video/', include('video.urls')), url(r'^(?P<slug>[-\w]+)/$', ArticleDetail.as_view(), name='article_detail'), url(r'^signups/success/$', 'signups.views.success', name='success'), url(r'^signups/messages.html$', TemplateView.as_view(template_name='signups/messages.html')), url(r'^subscribers/get/$', 'subscribers.views.get_subscriber', name='subscribe'), ) urlpatterns += staticfiles_urlpatterns() handler404 = 'post.views.custom404'
from django.conf.urls import patterns, url from articles.views import ArticleList, ArticleListByTag, ArticleDetail, \ ArticleCreate, ArticleUpdate, ArticleDelete from articles.views import ArticlesRedirectView, ArticleTagList, ArticleTagCreate, ArticleTagUpdate, ArticleTagDelete, \ get_article_comment, create_article_comment, update_article_comment, delete_article_comment urlpatterns = patterns( '', url(r'^$', ArticlesRedirectView.as_view()), url(r'^bytag/(?P<slug>[-\w]+)/$', ArticleListByTag.as_view()), url(r'^detail/(?P<pk>\d+)/$', ArticleDetail.as_view()), url(r'^create/$', ArticleCreate.as_view()), url(r'^update/(?P<pk>\d+)/$', ArticleUpdate.as_view()), url(r'^delete/(?P<pk>\d+)/$', ArticleDelete.as_view()), url(r'^tag/$', ArticleTagList.as_view()), url(r'^tag/create/', ArticleTagCreate.as_view()), url(r'^tag/update/(?P<pk>\d+)/$', ArticleTagUpdate.as_view()), url(r'^tag/delete/(?P<pk>\d+)/$', ArticleTagDelete.as_view()), url(r'^comments/create/', create_article_comment), url(r'^comments/detail/(?P<pk>\d+)/$', get_article_comment), url(r'^comments/update/(?P<pk>\d+)/$', update_article_comment), url(r'^comments/delete/(?P<pk>\d+)/$', delete_article_comment), )
from django.urls import path from articles.views import ArticleList, ArticleDetail urlpatterns = [ path('articles/', ArticleList.as_view(), name='articles-list'), path('articles/<int:pk>/', ArticleDetail.as_view(), name='articles-detail'), ]
), url( name="blog_add_image", regex=r'^(?P<destination_slug>[-\w]+)/(?P<entry_slug>[-\w]+)/add-images/$', view='articles.views.add_image' ), url( name="blog_edit_entry", regex=r'^(?P<blog_slug>[-\w]+)/edit-entry/(?P<pk>\d+)/$', view=EditBlogEntry.as_view() ), url( name="blog_list", regex=r'^$', view=ListView.as_view( queryset=Destination.blogs.all(), template_name='blogs/blog_list.html' ) ), url( name="blog_detail", regex=r'^(?P<destination_slug>[-\w]+)/$', view=ArticleList.as_view(), ), url( name="blog_entry_detail", regex=r'^(?P<destination_slug>[-\w]+)/(?P<slug>[-\w]+)/$', view=ArticleDetail.as_view(), ), )
from django.conf.urls import url from articles.views import ArticleList, ArticleDetail, LikeArticle from articles.views import CommentCreate urlpatterns = [ url(r'^$', ArticleList.as_view(), name='main_page'), url(r'^page=(?P<page>[0-9]+)/$', ArticleList.as_view()), url(r'^add_comment/(?P<pk>\d+)/$', CommentCreate.as_view(), name='add_comment'), url(r'^(?P<pk>\d+)/$', ArticleDetail.as_view(), name='article'), url(r'^like/(?P<pk>\d+)/$', LikeArticle.as_view(), name='like'), ]
urlpatterns = patterns( '', url(name='add_entry_thanks', regex=r'^entry/thank-you/$', view=TemplateView.as_view(template_name='blogs/thank-you.html')), url(name="blog_add_entry", regex=r'^(?P<destination_slug>[-\w]+)/add-entry/$', view=CreateBlogEntry.as_view()), url(name="blog_add_image", regex= r'^(?P<destination_slug>[-\w]+)/(?P<entry_slug>[-\w]+)/add-images/$', view='articles.views.add_image'), url(name="blog_edit_entry", regex=r'^(?P<blog_slug>[-\w]+)/edit-entry/(?P<pk>\d+)/$', view=EditBlogEntry.as_view()), url(name="blog_list", regex=r'^$', view=ListView.as_view(queryset=Destination.blogs.all(), template_name='blogs/blog_list.html')), url( name="blog_detail", regex=r'^(?P<destination_slug>[-\w]+)/$', view=ArticleList.as_view(), ), url( name="blog_entry_detail", regex=r'^(?P<destination_slug>[-\w]+)/(?P<slug>[-\w]+)/$', view=ArticleDetail.as_view(), ), )
"""vktargetBackend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include from articles.views import ArticleDetail, ArticlesList urlpatterns = [ path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls')), path('article/<int:pk>', ArticleDetail.as_view()), path('articles/', ArticlesList.as_view()), path('martor/', include('martor.urls')), ]
# REGISTRATION URLS url(r'^accounts/register/$', 'accounts.views.register_user'), url(r'^accounts/register_success/$', 'accounts.views.registration_success'), # PROFILE URLs url(r'^accounts/profile/(?P<slug>[\w]+)/$', UserProfileDetailView.as_view(), name="profile"), # SOCIAL_AUTH URLS url(r'', include('social_auth.urls')), url(r'^accounts/$', include('registration.urls')), url(r'^messages/$', include('postman.urls')), url(r'^messages/write/$', 'write', name='postman_write'), url(r'^doctors/all$', DoctorList.as_view(), name='doctor-list'), url(r'^doctors/get/(?P<slug>[\w-]+)', DoctorDetail.as_view(), name='doctor-detail'), url(r'^doctors/update/(?P<slug>[\w-]+)', DoctorUpdate.as_view(), name='doctor-update'), url(r'^doctors/create', DoctorCreate.as_view(), name='doctor-create'), url(r'^doctors/delete/(?P<slug>[\w-]+)', DoctorDelete.as_view(), name='doctor-delete'), url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')), url(r'^news$', ArticleList.as_view()), url(r'^/news/(?P<pk>\d+)/$', ArticleDetail.as_view()), ) if settings.DEBUG: # media files (images, etc.) urlpatterns += patterns('', (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}))
from articles.views import ( ArticlesRedirectView, ArticleTagList, ArticleTagCreate, ArticleTagUpdate, ArticleTagDelete, get_article_comment, create_article_comment, update_article_comment, delete_article_comment, ) urlpatterns = patterns( "", url(r"^$", ArticlesRedirectView.as_view()), url(r"^bytag/(?P<slug>[-\w]+)/$", ArticleListByTag.as_view()), url(r"^detail/(?P<pk>\d+)/$", ArticleDetail.as_view()), url(r"^create/$", ArticleCreate.as_view()), url(r"^update/(?P<pk>\d+)/$", ArticleUpdate.as_view()), url(r"^delete/(?P<pk>\d+)/$", ArticleDelete.as_view()), url(r"^tag/$", ArticleTagList.as_view()), url(r"^tag/create/", ArticleTagCreate.as_view()), url(r"^tag/update/(?P<pk>\d+)/$", ArticleTagUpdate.as_view()), url(r"^tag/delete/(?P<pk>\d+)/$", ArticleTagDelete.as_view()), url(r"^comments/create/", create_article_comment), url(r"^comments/detail/(?P<pk>\d+)/$", get_article_comment), url(r"^comments/update/(?P<pk>\d+)/$", update_article_comment), url(r"^comments/delete/(?P<pk>\d+)/$", delete_article_comment), )
from django.contrib.auth.decorators import login_required from django.urls import path from articles.views import ArticleList, ArticleUpdate, ArticleDetail, ArticleDelete, ArticleCreate, CommentCreate urlpatterns = [ path('', ArticleList.as_view(), name='article_list'), path('new/', login_required(ArticleCreate.as_view()), name='article_new'), path('<int:pk>/edit/', login_required(ArticleUpdate.as_view()), name='article_edit'), path('<int:pk>/', ArticleDetail.as_view(), name='article_detail'), path('<int:pk>/comment/', login_required(CommentCreate.as_view()), name='comment_new'), path('<int:pk>/delete/', login_required(ArticleDelete.as_view()), name='article_delete'), ]
from articles.views import ArticleList, ArticleDetail from django.conf.urls import url urlpatterns = [ url(r'^$', ArticleList.as_view(), name='article_index'), url(r'^(?P<slug>[a-z0-9_-]+)/$', ArticleDetail.as_view(), name='article_detail') ]
from django.conf.urls import url from articles.views import PostArticleView, ArticleDetail, TagView, ArticleListAPIView, ArticleDetailAPIView urlpatterns = [ url(r'^post/$', PostArticleView.as_view(), name='post_article'), url(r'^(?P<pk>\d+)/$', ArticleDetail.as_view(), name='article_detail'), url(r'^(?P<tag>\w+)/$', TagView.as_view(), name='tag_list'), url(r'^api/list/$', ArticleListAPIView.as_view(), name='api_list'), url(r'^api/(?P<pk>\d+)/$', ArticleDetailAPIView.as_view(), name='api_detail'), ]
from django.conf.urls import url from articles.views import ArticleList, ArticleDetail urlpatterns = [ url(r'^articles/$', ArticleList.as_view(), name='article-list'), url(r'^article/(?P<pk>[0-9]+)/$', ArticleDetail.as_view(), name='article-detail'), ]
from django.conf.urls import patterns, include, url from articles.views import ArticleDetail, ArticleList urlpatterns = patterns( '', url(r'^(?P<pk>\d+)/$', ArticleDetail.as_view(), name='article-by-pk'), url(r'^(?P<slug>[-\w]+)/$', ArticleDetail.as_view(), name='read-article'), url(r'^$', ArticleList.as_view(), name='list-articles'), )