Ejemplo n.º 1
0
from django.conf.urls import include, url
from django.contrib import admin

from case.views import (AccountsListView, AccountView, DepartmentsListView,
                        DepartmentView, FactPaymentsListView, PaymentView,
                        PlanedPaymentsListView, ProjectsListView, ProjectView)

urlpatterns = [
    url(r'account/$', AccountView.as_view(), name='account'),
    url(r'account/(?P<pk>\d+)/$', AccountView.as_view(), name='account'),
    url(r'accounts/$', AccountsListView.as_view(), name='accounts'),
    url(r'department/$', DepartmentView.as_view(), name='department'),
    url(r'department/(?P<pk>\d+)/$',
        DepartmentView.as_view(),
        name='department'),
    url(r'departments/$', DepartmentsListView.as_view(), name='departments'),
    url(r'project/$', ProjectView.as_view(), name='project'),
    url(r'project/(?P<pk>\d+)/$', ProjectView.as_view(), name='project'),
    url(r'projects/$', ProjectsListView.as_view(), name='projects'),
    url(r'payment/$', PaymentView.as_view(), name='payment'),
    url(r'payment/(?P<pk>\d+)/$', PaymentView.as_view(), name='payment'),
    url(r'payments/planed/$',
        PlanedPaymentsListView.as_view(),
        name='planed-payments'),
    url(r'payments/fact/$',
        FactPaymentsListView.as_view(),
        name='fact-payments'),
]
Ejemplo n.º 2
0
from django.conf.urls.defaults import *

from views import AccountView, ContainerView, ObjectView

urlpatterns = patterns(
    '',
    url(r'^v1/([-a-zA-Z0-9_]+)$',
        AccountView.as_view(),
        name='account_services'),
    url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)$',
        ContainerView.as_view(),
        name='container_services'),
    url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)/(.*)$',
        ObjectView.as_view(),
        name='object_services'),
)
Ejemplo n.º 3
0
from django.conf.urls.defaults import *

from views import AccountView, ContainerView, ObjectView

urlpatterns = patterns('',
    url(r'^v1/([-a-zA-Z0-9_]+)$', 
        AccountView.as_view(), 
        name='account_services'),
    url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)$', 
        ContainerView.as_view(), 
        name='container_services'),
    url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)/(.*)$', 
        ObjectView.as_view(), 
        name='object_services'),
)