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.defaults import patterns, url from django.views.generic import DetailView, ListView from models import Post from views import PostCreateView, PostUpdateView urlpatterns = patterns('', url(r'^$', ListView.as_view( queryset=Post.objects.all(), ), name='getinvolved_post_list' ), url(r'^posts/add/$', PostCreateView.as_view(), name='getinvolved_post_create'), url(r'^posts/(?P<pk>\d+)/edit/$', PostUpdateView.as_view(), name='getinvolved_post_update'), url(r'^posts/(?P<pk>\d+)/$', DetailView.as_view( model=Post, ), name='getinvolved_post_detail' ), )
# 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'), )
from django.conf.urls import url from views import PostListView, PostDisplayView, PostCreateView, PostUpdateView, PostDeleteView, homepage, post_comment, post_note urlpatterns = [ # url(r'^create$', post_create), url(r'^create$', PostCreateView.as_view(), name="post_create"), # url(r'^list$', post_list), url(r'^list$', PostListView.as_view(), name="post_list"), # url(r'^(?P<slug>[\w-]+)$', post_display), url(r'^(?P<slug>[\w-]+)$', PostDisplayView.as_view(), name="post_display"), # url(r'^(?P<slug>[\w-]+)/edit$', post_edit), url(r'^(?P<slug>[\w-]+)/edit$', PostUpdateView.as_view(), name="post_edit"), url(r'^(?P<slug>[\w-]+)/delete$', PostDeleteView.as_view(), name="post_delete"), url(r'^(?P<slug>[\w-]+)/comment$', post_comment, name="post_comment"), url(r'^(?P<slug>[\w-]+)/note$', post_note, name="post_note"), ]
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"), )