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(r'^$', 'post.views.home', name='home'), # url(r'^post/', include('post.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: 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'),
from articles.views import ArticleList, ArticleDetail from django.conf.urls import patterns, url #urlpatterns = Article.get_urls() urlpatterns = patterns('', 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 ArticleList urlpatterns = [ url(r'^$', ArticleList.as_view(), name='faq_index'), ]
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'), ]
from django.conf.urls import url from django.urls import path from articles.views import ArticleList urlpatterns = [ path('', ArticleList.as_view()), ] print('artcls/url triggered =================================')
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(), ), )
), 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(), ), )
# 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 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 django.conf.urls import url from django.urls import include from rest_framework.routers import DefaultRouter from articles.views import ArticleList, ArticleCreate, ArticleDetails, ArticleViewSet, ArticlesByTag, ArticlesByCategory router = DefaultRouter(trailing_slash=False) router.register(r'', ArticleViewSet) app_name = 'articles' urlpatterns = [ # url(r'^articles2$', include(router.urls)), url(r'^articles/', include(router.urls)), url(r'^articles2/?$', ArticleList.as_view(), name='article_list'), url(r'^articles/new$', ArticleCreate.as_view(), name='article_create'), url(r'^articles/(?P<slug>([a-z0-9-])+)$', ArticleDetails.as_view(), name='article_details'), url(r'^articles/by_id/(?P<pk>([a-z0-9-])+)$', ArticleDetails.as_view(), name='article_details_by_id'), url(r'^articles/by_tag/(?P<tag_name>([a-z0-9-])+)$', ArticlesByTag.as_view(), name='articles_by_tag'), url(r'^articles/by_category/(?P<category_name>([a-z0-9-])+)$', ArticlesByCategory.as_view(), name='articles_by_category'), ]
from django.conf.urls import include, url from django.contrib import admin from articles.views import ArticleList from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', ArticleList.as_view(), name='home'), url(r'^articles/', include('articles.urls')), url(r'^symposia/', include('symposia.urls')), url(r'^announcements/', include('announcements.urls')), ] # Need this for the file uploader plugin. urlpatterns += [ url(r'^ckeditor/', include('ckeditor_uploader.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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'), )