Example #1
0
 url(r'^login/$',
     TemplateView.as_view(template_name="sys/login.html"),
     name='login-view'),
 url(r'^register/$',
     TemplateView.as_view(template_name="sys/register.html"),
     name='register-view'),
 url(r'^forgetpassword/$',
     TemplateView.as_view(template_name="sys/forgetpassword.html"),
     name='forgetpassword-view'),
 url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
     TemplateView.as_view(template_name="sys/resetpassword.html"),
     name='resetpassword-view'),
 url(r'^aboutme/$', AboutMeView.as_view(), name='aboutme-view'),
 url(r'^media/article/(?P<path>.*)', 'django.views.static.serve',
     {'document_root': settings.MEDIA_ROOT + '/article'}),
 url(r'^article/(?P<pk>\d+)/$', ArticleView.as_view(), name='article-view'),
 url(r'^tag/(?P<tag_name>.+)/$', TagsView.as_view(), name='tag-view'),
 url(r'^all/$', AllView.as_view(), name='all-view'),
 url(r'^comment/(?P<slug>\w+)/$',
     PostCommentView.as_view(),
     name='postcomment-view'),
 url(r'^search/$', SearchView.as_view(), name='search-view'),
 url(r'^category/(?P<pk>\w+)/$',
     CaregoryView.as_view(),
     name='category-view'),
 url(r'^datearticle/(?P<year>\d+)/(?P<month>\d+)/$',
     DateArticleView.as_view(),
     name='datearticle-view'),
 url(r'^msgbook/$', MsgBookView.as_view(), name='msgbook-view'),
 url(r'^photo/$', PhotoView.as_view(), name='photo-view'),
 url(r'^photolist/(?P<pk>\d+)/$',
Example #2
0
from django.urls import path, re_path

from blog.views import (
    ArticlesView,
    DashboardView,
    AddarticleView,
    ArticleView,
    UpdateView,
    DeleteView,
    CommentView,
    TagView,
)

app_name = 'blog'
urlpatterns = [
    re_path(r'^$', ArticlesView.as_view(), name='articles'),
    re_path(r'^(?P<id>\d+)/$', TagView.as_view(), name='tag'),
    re_path(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
    re_path(r'^addarticle/$', AddarticleView.as_view(), name='addarticle'),
    re_path(r'^article/(?P<id>\d+)/$', ArticleView.as_view(), name='article'),
    re_path(r'^update/(?P<id>\d+)/$', UpdateView.as_view(), name='update'),
    re_path(r'^delete/(?P<id>\d+)/$', DeleteView.as_view(), name='delete'),
    re_path(r'^comment/(?P<id>\d+)/$', CommentView.as_view(), name='comment'),
]
        PostIdView,
        function_based_view,
    )

from orders.views import (
        OrderView,
        UserOrderView,
    )

from profiles.views import (
        ProfileView,
)

urlpatterns = [
    url(r'^about/$', function_based_view),
    url(r'^article/(?P<slug>[\w-]+)/$', ArticleView.as_view()),
    url(r'^blog/(?P<year>\d{4})/$', YearArchiveView.as_view()),
    url(r'^blog/(?P<year>\d{4})/(?P<month>\d{2})/$', YearArchiveView.as_view()),
    url(r"^order/(?P<order>\d+)/$", OrderView.as_view()),
    url(r"^order/(?P<username>[\w.@+-]+)/(?P<order>\d+)/$", UserOrderView.as_view()),
    url(r'^profile/(?P<username>[\w.@+-]+)/$', ProfileView.as_view()),
]


"""
Django 1.5-1.8 Pattern Syntax
"""
from blog.views import (

        ArticleView,
        YearArchiveView,
Example #4
0
from django.conf.urls import url
from blog.views import (IndexView, ArticleView, AllView, SearchView,
                        ColumnView, UserView, NewsView, TagView, CategoryView)
from django.views.generic import TemplateView, DetailView
from blog.models import News

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index-view'),
    url(r'^article/(?P<slug>[\s\S]*).html$',
        ArticleView.as_view(),
        name='article-detail-view'),
    url(r'^all/$', AllView.as_view(), name='all-view'),
    url(r'^search/$', SearchView.as_view()),
    url(r'^login/$',
        TemplateView.as_view(template_name="blog/login.html"),
        name='login-view'),
    url(r'^register/$',
        TemplateView.as_view(template_name="blog/register.html"),
        name='register-view'),
    url(r'^forgetpassword/$',
        TemplateView.as_view(template_name="blog/forgetpassword.html"),
        name='forgetpassword-view'),
    url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
        TemplateView.as_view(template_name="blog/resetpassword.html"),
        name='resetpassword-view'),
    url(r'^column/(?P<column>[\s\S]*)/$',
        ColumnView.as_view(),
        name='column-detail-view'),
    url(r'^user/(?P<slug>[\s\S]*)$', UserView.as_view(), name='user-view'),
    url(r'^news/$', NewsView.as_view(), name='news-view'),
    url(r'^news/(?P<pk>[\s\S]*)$',
Example #5
0
from django.conf.urls import url
from blog.views import ArticleView
from django.contrib.auth.decorators import login_required

from catalog.views import *

urlpatterns = [
    url(r'^quick_view/(?P<id>[0-9]+)$',Quick_View.as_view(),name='quick'),
    url(r'^search/',search,name="search"),
    url(r'^pricelist/$',PriceList.as_view(),name="pricelist"),
    url(r'^brands/$',BrandsView.as_view(),name="brands"),
    url(r'^category/(?P<id>[0-9]+)',CategoryView.as_view(),name="category"),
    url(r'^product/(?P<id>[0-9]+)',ProductView,name="product"),
    url(r'^article/(?P<id>[0-9]+)',ArticleView.as_view(),name="article"),
    url(r'^feedback',FeedbackView.as_view(),name="feedback"),
    url(r'^rating/(?P<id>[0-9]+)/(?P<value>[1-5])',rating)
]
Example #6
0
__author__ = 'oldpan'
__date__ = '2017/8/11 9:37'

from django.conf.urls import url
from blog.views import BlogView, ArticleView, ArchivesView, CategoryView, TagView

app_name = 'blog'

urlpatterns = [
    url(r'^$', BlogView.as_view(), name='blog_page'),
    url(r'^post/(?P<pk>[0-9]+)/$', ArticleView.as_view(), name='article_page'),
    url(r'^archives/(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/$',
        ArchivesView.as_view(),
        name='archives_page'),
    url(r'^category/(?P<pk>[0-9]+)/$',
        CategoryView.as_view(),
        name='category_page'),
    url(r'^tag/(?P<pk>[0-9]+)/$', TagView.as_view(), name='tag_page'),
]
Example #7
0
from django.conf.urls import url

from blog.views import ArticleView, CommentsView, Labelview

urlpatterns = [
    url(r'^Article/', ArticleView.as_view(), name='Article'),
    url(r'^Comments/', CommentsView.as_view(), name='Comments'),
    url(r'^Label/', Labelview.as_view(), name='Label'),
]
Example #8
0
from django.conf import settings

from django.conf.urls.static import static

from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', 'personal.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r"^$", IndexView.as_view(), name="index"),
    url(r"^index.*$", IndexView.as_view(), name="index"),
    url(r"^about/", AboutView.as_view(), name="about"),
    url(r"^project/((?P<slug>[-\w]+))/(?P<id>\d+)/$", ProjectView.as_view(), name="project"),
    url(r"^projects/$", ProjectsView.as_view(), name="projects"),
    url(r"^article/(?P<id>\d+)/$", ArticleView.as_view(), name="article"),
    url(r"^article/(?P<slug>[-\w]+)/(?P<id>\d+)/$", ArticleView.as_view(), name="article"),
    url(r"^articles/$", ArticlesView.as_view(), name="articles"),
    url(r"^articles/(?P<slug>[-\w]+)/(?P<id>\d+)/$", ArticlesView.as_view(), name="articles"),
    url(r"^resources/$", ResourcesView.as_view(), name="resources"),
    url(r"^code_snippets/$", CodeSnippetsView.as_view(), name="code_snippets"),
    url(r"^publications/$", PublicationsView.as_view(), name="publications"),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^grappelli/", include("grappelli.urls")),  # grappelli URLS
    url(r"^media/(?P<path>.*)$", "django.views.static.serve", {"document_root": settings.MEDIA_ROOT}),
    # url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Example #9
0
#coding=utf-8
from django.conf.urls import url
from blog.views import IndexView,ArticleView,UserView,AllView,CategoryView,TagView,SearchView
from django.views.generic import TemplateView,DetailView

urlpatterns = [
    url(r'^$',IndexView.as_view()),
    url(r'^article/(?P<pk>\d+).html$',ArticleView.as_view()),
    #url(r'^user/(?P<slug>\w+)$',UserView.as_view()),
    #url(r'^register/$',TemplateView.as_view(template_name="blog/register.html")),
    #url(r'^login/$',TemplateView.as_view(template_name="blog/login.html")),
    #url(r'^forgetpassword/$',TemplateView.as_view(template_name="blog/forgetpassword.html")),
    #url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)$',TemplateView.as_view(template_name="blog/resetpassword.html")),
    url(r'^all/$',AllView.as_view()),
    url(r'^category/(?P<id>\d+)/$',CategoryView.as_view()),
    url(r'^tag/(?P<id>\d+)/$',TagView.as_view()),
    url(r'^search/$',SearchView.as_view()),
]
Example #10
0
from django.urls import path
from blog.views import ArticleView, NewArticleView, ArticleDetailView

urlpatterns = [
    path('', ArticleView.as_view(), name='all'),
    path('new/', NewArticleView.as_view(), name='new'),
    path('<int:id>/', ArticleDetailView.as_view(), name='detail_url'),
]
Example #11
0
from django.urls import path

from blog.views import ArticleView, ArticleDetailView, ArticleApprove, ArticleEdited

urlpatterns = [
    path("article/", ArticleView.as_view(), name="article_listing"),
    path("article/<int:article_id>/",
         ArticleDetailView.as_view(),
         name="article_detail"),
    path("article-approval/", ArticleApprove.as_view(),
         name="article_approve"),
    path("articles-edited/", ArticleEdited.as_view(), name="article_edited"),
]
Example #12
0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#@Author:zino
from django.conf.urls import url
from blog.views import (IndexView, ArticleView, AllView, SearchView,
                        ColumnView, UserView, NewsView, TagView, CategoryView)
from django.views.generic import TemplateView, DetailView
from blog.views import *

urlpatterns = [
        url(r'^$', IndexView.as_view(), name='index-view'),
        url(r'^article/(?P<slug>\w+).html$',
            ArticleView.as_view(), name='article-detail-view'),
        url(r'^all/$', AllView.as_view(), name='all-view'),
        url(r'^search/$', SearchView.as_view()),
        url(r'^login/$',
            TemplateView.as_view(template_name="blog/login.html"),
            name='login-view'),
        url(r'^register/$',
            TemplateView.as_view(template_name="blog/register.html"),
            name='register-view'),
        url(r'^forgetpassword/$',
            TemplateView.as_view(template_name="blog/forgetpassword.html"),
            name='forgetpassword-view'),
        url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
            TemplateView.as_view(template_name="blog/resetpassword.html"),
            name='resetpassword-view'),
        url(r'^column/(?P<column>\w+)/$',
            ColumnView.as_view(), name='column-detail-view'),
        url(r'^user/(?P<slug>\w+)$', UserView.as_view(), name='user-view'),
        url(r'^news/$', NewsView.as_view(), name='news-view'),
Example #13
0
from django.conf.urls import url
from blog.views import IndexView,ArticleView,CommentView,ZanView,google_yanzheng
from django.views.generic import TemplateView

urlpatterns = [
		url(r'^$',IndexView.as_view(),name='index-view'),
        url(r'^blog/(?P<pk>\d+).html$',ArticleView.as_view(),name='article-detail-view'),
        url(r'^comment/(?P<pk>\d+)',CommentView.as_view()),
        url(r'^zan',ZanView.as_view()),
        url(r'^change-password$',TemplateView.as_view(template_name="blog/change_passwd.html"),name="change-posswd-view"),
        url(r'^googlef5c50adcb3c8f8e0.html$',google_yanzheng),
]
Example #14
0
ArticlesCommentView, StoriesCommentView

from nonhumanuser import settings

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^admin/', admin.site.urls),
    url(r'^blog/', include('blog.urls')),
    url(r'^stories/$', StoriesView.as_view(), name="stories"),
    url(r'^stories/story_archive/$', StoryArchiveView.as_view(), name="story-archive"),
    url(r'^stories/(?P<slug>[\w-]+)/$', StoryView.as_view(), name="story"),
    url(r'^stories/(?P<slug>[\w-]+)/comment/$', StoriesCommentView.as_view(), 
        name='story comment'),
    url(r'^articles/$', ArticlesView.as_view(), name="articles"),
    url(r'^articles/article_archive/$', ArticleArchiveView.as_view(), name="article-archive"),
    url(r'^articles/(?P<slug>[\w-]+)/$', ArticleView.as_view(), name="article"),
    url(r'^articles/(?P<slug>[\w-]+)/comment/$', ArticlesCommentView.as_view(), 
        name='article comment'),
    url(r'^media/library/', include('library.urls')),
    url(r'^library/', include('library.urls')),
    url(r'^media/actual_play/', include('actual_play.urls')),
    url(r'^actual_play/', include('actual_play.urls')),
    url(r'^members/', include('django.contrib.auth.urls')),
    url(r'^markdown/', include('django_markdown.urls')),
    url(r'^accounts/', include('registration.backends.hmac.urls')),
    url(r'^accounts/profile/(?P<slug>[\-\w]+)/$', ProfileView.as_view(), 
        name='update_user'),
    url(r'^search/(?P<q>.*)$', SearchView.as_view(), name='search'),
]

if settings.DEBUG:
Example #15
0
File: urls.py Project: levylll/NGB
from django.conf.urls import url
from blog.views import IndexView,ArticleView,AllView,SearchView,ColumnView,UserView,NewsView,TagView,CategoryView
from django.views.generic import TemplateView,DetailView
from blog.models import News

urlpatterns = [
        url(r'^$',IndexView.as_view()),
        url(r'^article/(?P<slug>\w+).html$',ArticleView.as_view()),
        url(r'^all/$',AllView.as_view()),
        url(r'^search/$',SearchView.as_view()),
        url(r'^login/$',TemplateView.as_view(template_name="blog/login.html")),
        url(r'^register/$',TemplateView.as_view(template_name="blog/register.html")),
        url(r'^forgetpassword/$',TemplateView.as_view(template_name="blog/forgetpassword.html")),
        url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',TemplateView.as_view(template_name="blog/resetpassword.html")),
        url(r'^column/(?P<column>\w+)$',ColumnView.as_view()),
        url(r'^user/(?P<slug>\w+)$',UserView.as_view()),
        url(r'^news/$',NewsView.as_view()),
        url(r'^news/(?P<pk>\w+)$',DetailView.as_view(model=News)),
        url(r'^tag/(?P<tag>\w+)/$',TagView.as_view()),
        url(r'^category/(?P<category>\w+)/$',CategoryView.as_view()),
]
Example #16
0
from django.urls import path
from blog.views import HomeView, ArticleView, PostArticleView, DeleteArticleView, SearchArticleView

app_name = 'blog'
urlpatterns = [
    path('', HomeView.as_view(), name='home'),
    path('article/<int:pk>/', ArticleView.as_view(), name='article'),
    path('post/', PostArticleView.as_view(), name='post'),
    path('delete/<int:pk>', DeleteArticleView.as_view(), name='delete'),
    path('search/', SearchArticleView.as_view(), name='search'),
    # path('search/<str>', SearchResultView.as_view(), name='search_result'),
]
Example #17
0
from blog.views import (
    IndexView,
    ArticleView,
    AllView,
    SearchView,
    ColumnView,
    UserView,
    NewsView,
    TagView,
    CategoryView,
)
from django.views.generic import TemplateView, DetailView
from blog.models import News

urlpatterns = [
    url(r"^$", IndexView.as_view()),
    url(r"^article/(?P<slug>\w+).html$", ArticleView.as_view()),
    url(r"^all/$", AllView.as_view()),
    url(r"^search/$", SearchView.as_view()),
    #        url(r'^login/$',TemplateView.as_view(template_name="blog/login.html")),
    #        url(r'^register/$',TemplateView.as_view(template_name="blog/register.html")),
    #        url(r'^forgetpassword/$',TemplateView.as_view(template_name="blog/forgetpassword.html")),
    #        url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',TemplateView.as_view(template_name="blog/resetpassword.html")),
    url(r"^column/(?P<column>\w+)$", ColumnView.as_view()),
    url(r"^user/(?P<slug>\w+)$", UserView.as_view()),
    url(r"^about/$", NewsView.as_view()),
    url(r"^news/(?P<pk>\w+)$", DetailView.as_view(model=News)),
    url(r"^tag/(?P<tag>\w+)/$", TagView.as_view()),
    url(r"^category/(?P<category>\w+)/$", CategoryView.as_view()),
]
Example #18
0
File: urls.py Project: jqlts1/blog
from django.conf.urls import url
from blog.views import (IndexView, ArticleView, AllView, SearchView,
                        ColumnView, UserView, NewsView, TagView, CategoryView)
from django.views.generic import TemplateView, DetailView
from blog.models import News
from django.conf.urls import include, url
from DjangoUeditor import urls as DjangoUeditor_urls
from django.conf import settings

urlpatterns = [
        url(r'^$', IndexView.as_view(), name='index-view'),
        url(r'^(?P<url>\w+)/(?P<pk>\w+).html$',
            ArticleView.as_view(), name='article-detail-view'),
        url(r'^ueditor/', include(DjangoUeditor_urls)),

        url(r'^all/$', AllView.as_view(), name='all-view'),
        url(r'^search/$', SearchView.as_view()),
        url(r'^login/$',
            TemplateView.as_view(template_name="blog/login.html"),
            name='login-view'),
        url(r'^register/$',
            TemplateView.as_view(template_name="blog/register.html"),
            name='register-view'),
        url(r'^forgetpassword/$',
            TemplateView.as_view(template_name="blog/forgetpassword.html"),
            name='forgetpassword-view'),
        url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
            TemplateView.as_view(template_name="blog/resetpassword.html"),
            name='resetpassword-view'),
        url(r'^column/(?P<column>\w+)/$',
            ColumnView.as_view(), name='column-detail-view'),
Example #19
0
from django.conf.urls import url
from blog.views import IndexView, ArticleView, AboutView, AllView, DownView, SearchView, ColumnView, UserView, TagView, CategoryView
from django.views.generic import TemplateView, DetailView

urlpatterns = [
    url(r'^$', IndexView.as_view()),
    url(r'^article/(?P<slug>\w+).html$', ArticleView.as_view()),
    url(r'^all/$', AllView.as_view()),
    url(r'^search/$', SearchView.as_view()),
    url(r'^login/$', TemplateView.as_view(template_name="blog/login.html")),
    url(r'^register/$',
        TemplateView.as_view(template_name="blog/register.html")),
    url(r'^forgetpassword/$',
        TemplateView.as_view(template_name="blog/forgetpassword.html")),
    url(r'^resetpassword/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
        TemplateView.as_view(template_name="blog/resetpassword.html")),
    url(r'^column/(?P<column>\w+)$', ColumnView.as_view()),
    url(r'^user/(?P<slug>\w+)$', UserView.as_view()),
    url(r'^tag/(?P<tag>\w+)/$', TagView.as_view()),
    url(r'^category/(?P<category>\w+)/$', CategoryView.as_view()),
    url(r'^about/$', AboutView.as_view()),
    url(r'^down/$', DownView.as_view()),
]
Example #20
0
from django.urls import path

from blog.views import (ArticleView, ArticlePost, GetOrUpdateOneArticle)

app_name = 'blog'

urlpatterns = [
    path('articles/', ArticleView.as_view()),
    path('articles/create/', ArticlePost.as_view()),
    path('article/<int:pk>/', GetOrUpdateOneArticle.as_view()),
]