コード例 #1
0
ファイル: urls.py プロジェクト: gitter-badger/projecta
    url(regex='^(?P<project_slug>[\w-]+)/version/(?P<slug>[\w.-]+)/download/$',
        view=VersionDownload.as_view(),
        name='version-download'),

    # Changelog entry management
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/'
              'pending-entry/list/$',
        view=PendingEntryListView.as_view(),
        name='pending-entry-list'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/entry/'
              '(?P<slug>[\w-]+)/approve/$',
        view=ApproveEntryView.as_view(),
        name='entry-approve'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w'
              '.-]+)/entry/list/$',
        view=EntryListView.as_view(),
        name='entry-list'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/entry'
              '/(?P<slug>[\w-]+)/$',
        view=EntryDetailView.as_view(),
        name='entry-detail'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/entry/'
              '(?P<slug>[\w-]+)/delete/$',
        view=EntryDeleteView.as_view(),
        name='entry-delete'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/'
              'create-entry/$',
        view=EntryCreateView.as_view(),
        name='entry-create'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/entry/'
              '(?P<slug>[\w-]+)/update/$',
コード例 #2
0
ファイル: urls.py プロジェクト: MechanisM/django-universaltag
    hogehoge - the explanation of the data.


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

from views import EntryDetailView
from views import EntryListView

urlpatterns = patterns('',
    url('^(?P<pk>\d+)/$',           EntryDetailView.as_view(),  name="blogs-entry-detail"),  
    url('^$',                       EntryListView.as_view(),    name="blogs-entry-list"),  
)
コード例 #3
0
ファイル: urls.py プロジェクト: zenweasel/cashflow
from django.conf.urls import patterns, url
from views import EntryEditView, EntryImportView, EntryListView, EntryCreateView, EntryDeleteView

urlpatterns = patterns('',
                       url(r'entry/list', EntryListView.as_view(), {'title': 'List Entries'}, name='entry-list'),
                       url(r'entry/edit/(?P<entry_id>\d*)$', EntryEditView.as_view(),
                           {'action': 'edit','title': 'Edit Entry'}),
                       url(r'entry/import$', EntryImportView.as_view()),
                       url(r'entry/create$', EntryCreateView.as_view(),
                           {'action': 'add', 'title': 'Create Entry'}),
                       url(r'entry/delete/(?P<entry_id>\d*)$', EntryDeleteView.as_view(),
                           {'action': 'delete','title': 'Delete Entry'}),
)
コード例 #4
0
ファイル: urls.py プロジェクト: browniebroke/django-guestbook
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, include, url
from django.contrib import admin

admin.autodiscover()

from views import post_entry, EntryListView, api_list_entries

urlpatterns = patterns('',
    url(r'^$', EntryListView.as_view() , name='guestbook_page_last'),
    url(r'^page(?P<page>[0-9]+)/$', EntryListView.as_view(), name='guestbook_page'),
    url(r'^post/', post_entry, name='guestbook_post'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'api/list/', api_list_entries, name='api_guestbook_list')
)
コード例 #5
0
ファイル: urls.py プロジェクト: adamhoke/adamhoke
from django.conf.urls import patterns, include, url
from views import EntryListView, EntryDetailView, register, user_login, user_logout, add_comment


urlpatterns = patterns('',
    url(r'^register$', register, name='register'),
    url(r'^login$', user_login, name='login'),
    url(r'^logout$', user_logout, name='logout'),
    url(r'^add-comment$', add_comment, name='add-comment'),
    url(r'^(?P<slug>[-_\w]+)$', EntryDetailView.as_view(), name='entry-detail'),
    url(r'^$', EntryListView.as_view(), name='entry-list'),    
)
コード例 #6
0
ファイル: urls.py プロジェクト: dimasciput/projecta
        name='version-download'),
    url(regex='^(?P<project_slug>[\w-]+)/version/(?P<slug>[\w.-]+)/gnu/$',
        view=VersionDownloadGnu.as_view(),
        name='version-download-gnu'),

    # Changelog entry management
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/'
              'pending-entry/list/$',
        view=PendingEntryListView.as_view(),
        name='pending-entry-list'),
    url(regex='^entry/approve/(?P<pk>\d+)$',
        view=ApproveEntryView.as_view(),
        name='entry-approve'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w'
              '.-]+)/entry/list/$',
        view=EntryListView.as_view(),
        name='entry-list'),
    url(regex='^entry/(?P<pk>\d+)$',
        view=EntryDetailView.as_view(),
        name='entry-detail'),
    url(regex='^entry/delete/(?P<pk>\d+)$',
        view=EntryDeleteView.as_view(),
        name='entry-delete'),
    url(regex='^(?P<project_slug>[\w-]+)/(?P<version_slug>[\w.-]+)/'
              'create-entry/$',
        view=EntryCreateView.as_view(),
        name='entry-create'),
    url(regex='^entry/update/(?P<pk>\d+)$',
        view=EntryUpdateView.as_view(),
        name='entry-update'),
コード例 #7
0
    hogehoge - the explanation of the data.


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

from views import EntryUpdateView
from views import EntryListView

urlpatterns = patterns('',
    url('^(?P<pk>\d+)/$',           EntryUpdateView.as_view(),  name="events-entry-update"),  
    url('^$',                       EntryListView.as_view(),    name="events-entry-list"),  
)
コード例 #8
0
ファイル: urls.py プロジェクト: ru-forester/testblog
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from views import (EntryCreate, EntryDetailView, FeedListView,
                   EntryListView, add_feed, delete_feed, add_to_read)


urlpatterns = [
    url(r'^add/$', login_required(EntryCreate.as_view()), name='entry_add'),
    url(r'entry/(?P<pk>[0-9]+)/$', EntryDetailView.as_view(), name='entry'),
    url(r'user/(?P<pk>[0-9]+)/$', EntryListView.as_view(), name='user'),
    url(r'add_feed/(?P<user_id>[0-9]+)/$', add_feed, name='add_feed'),
    url(r'delete_feed/(?P<user_id>[0-9]+)/$', delete_feed, name='delete_feed'),
    url(r'^feed/$', login_required(FeedListView.as_view()), name='user_feed'),
    url(r'^add_to_read/(?P<entry_id>[0-9]+)/$', add_to_read, name='add_to_read'),
]
コード例 #9
0
ファイル: urls.py プロジェクト: duythinht/pi-blog
from django.conf.urls import patterns, url

from views import EntryListView, EntryDetailView, TagView

urlpatterns = patterns(
    '',
    url(r'^$', EntryListView.as_view(), name='blog.entries'),
    url(r'^tags/(?P<tag>.+)/$', TagView.as_view(), name='blog.tags'),
    url(r'^(?P<pk>\d+)/$', EntryDetailView.as_view(), name='blog.detail')
)
コード例 #10
0
ファイル: urls.py プロジェクト: lyralemos/almarinho
from django.conf.urls import patterns, include, url

from views import EntryListView, EntryDetailView
from feed import LatestEntriesFeed

urlpatterns = patterns('',
    url(r'^rss/$', LatestEntriesFeed(),name= 'rss'),
    url(r'^(?P<slug>[-_\w]+)/$', EntryDetailView.as_view(), name='entry-detail'),
    url(r'^$',EntryListView.as_view(),name='index'),
)