コード例 #1
0
ファイル: urls.py プロジェクト: pedroburon/pythontoolbox
from django.conf.urls import patterns, url

from tools.views import GroupListView, ProjectListByCategoryView, CategoryListView, ProjectListView

urlpatterns = patterns(
    'tools.views',
    url('^$', GroupListView.as_view(), name='home'),
    url('^$', GroupListView.as_view(), name='group_list'),
    url('^categories/$', CategoryListView.as_view(), name='category_list'),
    url('^projects/(?P<letter>\w)/$',
        ProjectListView.as_view(),
        name='project_list'),
    url('^(?P<category>[\w-]+)/$',
        ProjectListByCategoryView.as_view(),
        name='project_list'),
)
コード例 #2
0
ファイル: urls.py プロジェクト: jsm91/toolcontrol
    url(r'^logout/$', 'logout_view', name='logout'),
    url(r'^stats/$', 'stats', name='stats'),
    url(r'^settings/$', 'settings', name='settings'),

    # AJAX requests for objects
    url(r'^model_object/$', 'model_object', name='model_object'),

    # AJAX requests for lists
    url(r'^container_list/$', 
        login_required(ContainerListView.as_view()), name='container_list'),
    url(r'^tool_list/$', 
        login_required(ToolListView.as_view()), name='tool_list'),
    url(r'^model_list/$', 
        login_required(ModelListView.as_view()), name='model_list'),
    url(r'^category_list/$', 
        login_required(CategoryListView.as_view()), name='category_list'),
    url(r'^employee_list/$', 
        login_required(EmployeeListView.as_view()), name='employee_list'),
    url(r'^building_site_list/$', 
        login_required(ConstructionSiteListView.as_view()), 
        name='building_site_list'),
    url(r'^event_list/$', 
        login_required(EventListView.as_view()), name='event_list'),
    url(r'^loan_list/$', 
        login_required(LoanListView.as_view()), name='loan_list'),
    url(r'^simple_tool_list/$', login_required(SimpleToolListView.as_view()), 
        name='simple_tool_list'),

    # AJAX requests for banners
    url(r'^container_banner/$', 'container_banner', name='container_banner'),
    url(r'^tool_banner/$', 'tool_banner', name='tool_banner'),
コード例 #3
0
ファイル: urls.py プロジェクト: arkanus/pythontoolbox
from django.conf.urls import patterns, url

from tools.views import GroupListView, ProjectListByCategoryView, CategoryListView, ProjectListView


urlpatterns = patterns('tools.views',
    url('^$', GroupListView.as_view(), name='home'),
    url('^$', GroupListView.as_view(), name='group_list'),
    url('^categories/$', CategoryListView.as_view(), name='category_list'),
    url('^projects/(?P<letter>\w)/$', ProjectListView.as_view(), name='project_list'),
    url('^(?P<category>[\w-]+)/$', ProjectListByCategoryView.as_view(), name='project_list'),
)