from django.views.generic import ListView from models import Post from views import PostDetailView from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', ListView.as_view(queryset=Post.objects.all(), context_object_name="posts_list"), name="home"), url( r'^post/(?P<slug>[a-zA-Z0-9-]+)/$', PostDetailView.as_view(queryset=Post.objects.all(), context_object_name="post"), name="post", ), # Examples: # url(r'^$', 'blog.views.home', name='home'), # url(r'^blog/', include('blog.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'^adminforposts/', include(admin.site.urls)), ) from django.conf import settings
from django.conf.urls.defaults import patterns, include, url from django.views.generic import ListView from models import Post from views import PostDetailView from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', ListView.as_view( queryset=Post.objects.all(), context_object_name="posts_list"), name="home" ), url(r'^post/(?P<slug>[a-zA-Z0-9-]+)/$', PostDetailView.as_view( queryset=Post.objects.all(), context_object_name="post"), name="post", ), # Examples: # url(r'^$', 'blog.views.home', name='home'), # url(r'^blog/', include('blog.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'^adminforposts/', include(admin.site.urls)), ) # urlpatterns += patterns('', # (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
from django.conf.urls import patterns, include, url from models import Post from views import PostListView, PostArchiveView, PostDetailView, BlogFeed urlpatterns = patterns( 'pigeon.views', url(r'^$', PostListView.as_view()), url(r'^rss/$', BlogFeed()), url(r'^(?P<date_slug>[0-9_-]+)/$', PostArchiveView.as_view()), url(r'^(?P<slug>[A-Za-z0-9_-]+)/$', PostDetailView.as_view(model=Post, ), name='post_view'), )
from django.conf.urls import include, url from django.contrib import admin from views import IndexListView from views import PostDetailView from views import TagPostListView from views import CategoryPostListView from views import TagsListView from views import ArchivesListView from views import BlogMarkDownSrcView urlpatterns = [ # Examples: url(r'^$', IndexListView.as_view(), name='home'), url(r'^post/(?P<slug>.*)$', PostDetailView.as_view(), name='post'), url(r'^tag/(?P<item_name>.*)$', TagPostListView.as_view(), name='tag'), url(r'^category/(?P<item_name>.*)$', CategoryPostListView.as_view(), name='category'), url(r'^tags', TagsListView.as_view(), name='tags'), url(r'^archives', ArchivesListView.as_view(), name='archives'), url(r'^src/post/(?P<slug>.*).md$', BlogMarkDownSrcView) #url(r'^blog/', include('markbook.urls')), #url(r'^admin/', include(admin.site.urls)), ]
# -*- coding: utf-8 -*- from django.conf.urls import url from views import HomeView, PostDetailView, BlogsListView, BlogDetailView, CreatePostView urlpatterns = [ # Posts URLs url(r'^$', HomeView.as_view(), name='blogs_home'), url(r'^blogs/$', BlogsListView.as_view(), name='blogs_list'), url(r'^blogs/(?P<username>[\w-]+)$', BlogDetailView.as_view(), name='blog_detail'), url(r'^blogs/(?P<username>[\w-]+)/(?P<pk>[0-9]+)$', PostDetailView.as_view(), name='post_detail'), url(r'^new-post/$', CreatePostView.as_view(), name='create_post') ]
# -*- coding: utf-8 -*- from django.conf.urls.defaults import * from django.views.generic.simple import redirect_to, direct_to_template from views import (AddPostView, UpdatePostView, PostIndexView, PostDetailView, DeletePostView, AddTagView, UpdateTagView, TagDetailView) entry_pattern = patterns('', (r'^$', PostDetailView.as_view()), (r'^edit/$', UpdatePostView.as_view()), (r'^delete/$', DeletePostView.as_view() ), ) tag_pattern = patterns('', url(r'^$', TagDetailView.as_view(), name='tag_detail'), (r'^edit/$', UpdateTagView.as_view()), ) urlpatterns = patterns('apps.blog.views', (r'^$', PostIndexView.as_view()), (r'^new/$', AddPostView.as_view()), (r'^newtag/$', AddTagView.as_view()), (r'^(?P<pk>\w{24})/', include(entry_pattern)), (r'^tags/(?P<pk>\w+)/', include(tag_pattern)), )
from django.conf.urls.defaults import patterns, url from models import Post from django.views.generic import ListView from views import PostDetailView from models import PUBLISHED urlpatterns = patterns('', url(r'^$', ListView.as_view(queryset=Post.objects.filter(status=PUBLISHED)[:3]), name="home"), url(r'^archive/$', ListView.as_view(queryset=Post.objects.filter(status=PUBLISHED)[3:]), name="archive"), url(r'^post/(?P<pk>\d+)/$', PostDetailView.as_view(model=Post), name="post_without_slug"), url(r'^post/(?P<pk>\d+)/(?P<slug>[-\w]+)/$', PostDetailView.as_view(model=Post), name="post"), )
from django.conf.urls import patterns, url, include from . import views from views import PostListView, PostDetailView, PostCreateView, PostForm #from views import * urlpatterns = patterns('', url(r'^$', PostListView.as_view(), name='home'), url(r'^post/(?P<pk>\d+)/$', PostDetailView.as_view(), name='post'), url(r'^post/new/$', PostCreateView.as_view(), kwargs={'next_page' : 'home'}, name='post_new'), url(r'^social/', include('social.apps.django_app.urls', namespace ='social')), #url(r'^blog/new/$', views.post_new, name='post_new') #url(r'^social/', include('social.apps.django_app.urls', namespace ='social')), )
from django.conf.urls import patterns, include, url from views import PostListView, PostDetailView urlpatterns = patterns('', url(r'^$', PostListView.as_view(), name='list'), url(r'^(?P<slug>[-\w]+)/$', PostDetailView.as_view(), name='detail'), )
from django.conf.urls import include, url from django.contrib import admin from views import IndexListView from views import PostDetailView from views import TagPostListView from views import CategoryPostListView from views import TagsListView from views import ArchivesListView from views import BlogMarkDownSrcView urlpatterns = [ # Examples: url(r'^$', IndexListView.as_view(), name='home'), url(r'^post/(?P<slug>.*)$', PostDetailView.as_view(), name='post'), url(r'^tag/(?P<item_name>.*)$', TagPostListView.as_view(), name='tag'), url(r'^category/(?P<item_name>.*)$', CategoryPostListView.as_view(), name='category'), url(r'^tags', TagsListView.as_view(), name='tags'), url(r'^archives', ArchivesListView.as_view(), name='archives'), url(r'^src/post/(?P<slug>.*)$', BlogMarkDownSrcView) #url(r'^blog/', include('markbook.urls')), #url(r'^admin/', include(admin.site.urls)), ]
# coding=utf-8 from django.conf.urls import patterns, url from views import (PostListView, PostCreateView, PostDetailView, PostUpdateView, PostDeleteView) urlpatterns = patterns( '', url(r'^$', PostListView.as_view(), name='post_list'), url(r'^create$', PostCreateView.as_view(), name='post_create'), url(r'^(?P<pk>\d+)/$', PostDetailView.as_view(), name='post_detail'), url(r'^(?P<pk>\d+)/edit/$', PostUpdateView.as_view(), name='post_update'), url(r'^(?P<pk>\d+)/delete/$', PostDeleteView.as_view(), name='post_delete'), )
#coding: utf-8 from django.core.urlresolvers import reverse __author__ = 'kirill' from django.conf.urls import patterns, url, include from views import PostsListView, PostDetailView urlpatterns = patterns('', url(r'^$', PostsListView.as_view(), name='list'), url(r'^(?P<pk>\d+)/$', PostDetailView.as_view()), )
from django.conf.urls import patterns, url from views import PostCreateView, PostDetailView, PostUpdateView, PostDeleteView, goServices, goPost from . import views from rest_framework.urlpatterns import format_suffix_patterns urlpatterns = patterns( '', url(r'^add/$', PostCreateView.as_view(), name='create'), url(r'^(?P<pk>[\w\d]+)/$', PostDetailView.as_view(), name='detail'), url(r'^(?P<pk>[\w\d]+)/edit/$', PostUpdateView.as_view(), name='update'), url(r'^(?P<pk>[\w\d]+)/delete/$', PostDeleteView.as_view(), name='delete'), url(r'^post/list$', views.post_list, name='post_list'), url(r'^post/guardar$', views.guardar_post, name='guardar_post'), url(r'^Services$', views.goServices, name='mostrar'), url(r'^Google$', views.goapiGoogle, name='goapiGoogle'), url(r'^Post$', views.goPost, name='goPost'), url(r'^Hostoria$', views.goHistoria, name='goHistoria'), url(r'^Gallery$', views.goGallery, name='goGallery')) urlpatterns = format_suffix_patterns(urlpatterns)
from django.conf.urls import patterns, url from views import PostCreateView, PostDetailView, PostUpdateView, PostDeleteView, TagListView urlpatterns = patterns( "", url(r"^tags/$", TagListView.as_view(), name="tag-list"), url(r"^add/$", PostCreateView.as_view(), name="post-create"), url(r"^(?P<pk>[\w\d]+)/$", PostDetailView.as_view(), name="post-detail"), url(r"^(?P<pk>[\w\d]+)/edit/$", PostUpdateView.as_view(), name="post-update"), url(r"^(?P<pk>[\w\d]+)/delete/$", PostDeleteView.as_view(), name="post-delete"), )
# -*- coding: utf-8 -*- from django.conf.urls.defaults import * from django.views.generic.simple import redirect_to, direct_to_template from views import (AddPostView, UpdatePostView, PostIndexView, PostDetailView, DeletePostView, AddTagView, UpdateTagView, TagDetailView) entry_pattern = patterns( '', (r'^$', PostDetailView.as_view()), (r'^edit/$', UpdatePostView.as_view()), (r'^delete/$', DeletePostView.as_view()), ) tag_pattern = patterns( '', url(r'^$', TagDetailView.as_view(), name='tag_detail'), (r'^edit/$', UpdateTagView.as_view()), ) urlpatterns = patterns( 'apps.blog.views', (r'^$', PostIndexView.as_view()), (r'^new/$', AddPostView.as_view()), (r'^newtag/$', AddTagView.as_view()), (r'^(?P<pk>\w{24})/', include(entry_pattern)), (r'^tags/(?P<pk>\w+)/', include(tag_pattern)), )
from django.conf.urls import patterns, url from views import PostListView, PostDetailView urlpatterns = patterns( '', url(r'^$', PostListView.as_view(), name='list'), url(r'^(?P<slug>[\w-]+)/$', PostDetailView.as_view(), name='detail'), )
from django.conf.urls import patterns, url from views import PostCreateView, PostDetailView, PostUpdateView, PostDeleteView urlpatterns = patterns('', url(r'^add/$', PostCreateView.as_view(), name='create'), url(r'^(?P<pk>[\w\d]+)/$', PostDetailView.as_view(), name='detail'), url(r'^(?P<pk>[\w\d]+)/edit/$', PostUpdateView.as_view(), name='update'), url(r'^(?P<pk>[\w\d]+)/delete/$', PostDeleteView.as_view(), name='delete'), )
from django.conf.urls import patterns, include, url from models import Post from views import PostListView, PostArchiveView, PostDetailView, BlogFeed urlpatterns = patterns('pigeon.views', url(r'^$', PostListView.as_view()), url(r'^rss/$', BlogFeed()), url(r'^(?P<date_slug>[0-9_-]+)/$', PostArchiveView.as_view()), url(r'^(?P<slug>[A-Za-z0-9_-]+)/$', PostDetailView.as_view(model=Post,), name='post_view'), )