Copyright:
    Copyright 2011 Alisue allright reserved.

License:
    Licensed under the Apache License, Version 2.0 (the "License"); 
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unliss required by applicable law or agreed to in writing, software
    distributed under the License is distrubuted on an "AS IS" BASICS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""
__author__  = 'Alisue <*****@*****.**>'
__version__ = '1.0.0'
__date__    = '2011/06/09'
from django.conf.urls.defaults import patterns, url, include


from views import TagDetailView
from views import TagListView

urlpatterns = patterns('',
    url(r'^$',                  TagListView.as_view(),      name='universaltag-tag-list'),
    url(r'^(?P<slug>[^/]+)/$',  TagDetailView.as_view(),    name='universaltag-tag-detail'),
    url(r'^api/',               include('universaltag.api.urls')),              
)
Exemple #2
0
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"),
)
Exemple #3
0
from django.conf.urls import url
from django.contrib import admin
from views import (
    TagListView,
    TagDetailView,
    )

urlpatterns = [
    url(r'^$', TagListView.as_view(), name='list'),
    url(r'^(?P<slug>[\w-]+)/$', TagDetailView.as_view(), name='detail'),
]