Ejemplo n.º 1
0
from category.views import CategoryView, CategoryDetailView
from jobs.views import JobView, JobDetailView
from organization.views import OrganizationView
from register.views import ProfileView
from request.views import RequestView
from roles.views import RolesView
from userorganization.views import UsrOrgView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/', include('allauth.urls')),
    url(r'^$', home),
    #url(r'^login/', login),
    #url(r'^register/', profile_create_view),
    #url(r'^roles/', roles_create_view),
    #url(r'^jobs/', jobs_create_view, name='jobs_create_view'),
    #url(r'^orgcreate/', org_create_view),
    #url(r'^request/', requestView),
    #url(r'^requests/', requestListView),
    #url(r'^approved/', approvedRequests, name='approvedRequests'),
    #url(r'^approve/(?P<pk>\d+)/$', approveRequests, name='approveRequests'),
    url(r'^category/$', CategoryView.as_view()),
    url(r'^category/(?P<pk>\d+)/$', CategoryDetailView.as_view()),
    url(r'^job/$', JobView.as_view()),
    url(r'^job/(?P<pk>\d+)/$', JobDetailView.as_view()),
    url(r'^organization/', OrganizationView.as_view()),
    url(r'^profiles/', ProfileView.as_view()),
    url(r'^requests/', RequestView.as_view()),
    url(r'^roles/', RolesView.as_view()),
    url(r'^orgs/', UsrOrgView.as_view()),
]
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-

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

from category.views import CategoryListView, CategoryCreateView, CategoryDetailView, CategoryUpdateView
from category.views import TagListView, TagDetailView, TagCreateView, TagUpdateView

urlpatterns = patterns(
    '',
    url(r'^category/$', CategoryListView.as_view(), name="category-home"),
    url(r'^category/page/(?P<page>\w+)/$',
        CategoryListView.as_view(),
        name="category-home-paginated"),
    url(r'^category/add/$', CategoryCreateView.as_view(), name="category-add"),
    url(r'^category/(?P<slug>\w+)/$',
        CategoryDetailView.as_view(),
        name="category-view"),
    url(r'^category/(?P<slug>\w+)/update$',
        CategoryUpdateView.as_view(),
        name="category-update"),
)

urlpatterns += patterns(
    '',
    url(r'^tag /$', TagListView.as_view(), name="tag-home"),
    url(r'^tag/page/(?P<page>\w+)/$',
        TagListView.as_view(),
        name="tag-home-paginated"),
    url(r'^tag/add/$', TagCreateView.as_view(), name="tag-add"),
    url(r'^tag/(?P<slug>[\w-]+)/$', TagDetailView.as_view(), name="tag-view"),
    url(r'^tag/(?P<id>\d+)/update/$',
Ejemplo n.º 3
0
        r'^category/$',
        CategoryListView.as_view(),
        name="category-home"
        ),
    url(
        r'^category/page/(?P<page>\w+)/$',
        CategoryListView.as_view(),
        name="category-home-paginated"
    ),
    url(
        r'^category/add/$',
        CategoryCreateView.as_view(),
        name="category-add"
    ),
    url(r'^category/id/(?P<pk>\d+)/$',
        CategoryDetailView.as_view(), name="category-view"),
    url(r'^category/name/(?P<slug>[-\w]+)/$',
        CategoryDetailView.as_view(), name="category-view"),
    url(
        r'^category/(?P<pk>\w+)/update$',
        CategoryUpdateView.as_view(),
        name="category-update"
    ),
    url(
        r'^category/(?P<slug>\w+)/update$',
        CategoryUpdateView.as_view(),
        name="category-update"
    ),
]

urlpatterns += [
Ejemplo n.º 4
0
Archivo: urls.py Proyecto: mci/mpatlas
         queryset=Category.objects.all().order_by('name'),
         context_object_name='category_list',
         paginate_by=60,
         template_name='category/Category_list.html'),
     name='category-list'),
 # url(r'list/geojson/$',
 #     JsonListView.as_view(
 #         queryset=Campaign.objects.filter(point_geom__isnull=False).order_by('name'),
 #         context_object_name='campaign_list',
 #         paginate_by=None,
 #         template_name='campaign/Campaign_list_geojson.json'),
 #     name='campaign-list-geojson'),
 url(r'^(?P<pk>\d+)/$',
     CategoryDetailView.as_view(
         model=Category,
         queryset=Category.objects.all().order_by('name'),
         context_object_name='category',
         template_name='category/Category_detail.html'),
     name='category-info-byid'),
 url(r'^(?P<slug>[\w-]+)/$',
     CategoryDetailView.as_view(
         model=Category,
         queryset=Category.objects.all().order_by('name'),
         context_object_name='category',
         template_name='category/Category_detail.html'),
     name='category-info'),
 url(r'^(?P<slug>[\w-]+)/features/$', 
     CategoryGeoJsonView.as_view(
         model=Category,
         queryset=Category.objects.all().order_by('name'),
         context_object_name='category',),
Ejemplo n.º 5
0
#! /usr/bin/env python2.7
# -*- coding: utf-8 -*-

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

from category.views import CategoryListView, CategoryCreateView, CategoryDetailView, CategoryUpdateView
from category.views import TagListView, TagDetailView, TagCreateView, TagUpdateView


urlpatterns = patterns('',
    url(r'^category/$', CategoryListView.as_view(), name="category-home"),
    url(r'^category/page/(?P<page>\w+)/$', CategoryListView.as_view(), name="category-home-paginated"),
    url(r'^category/add/$', CategoryCreateView.as_view(), name="category-add"),
    url(r'^category/(?P<slug>\w+)/$', CategoryDetailView.as_view(), name="category-view"),
    url(r'^category/(?P<slug>\w+)/update$', CategoryUpdateView.as_view(), name="category-update"),
)

urlpatterns += patterns('',
    url(r'^tag /$', TagListView.as_view(), name="tag-home"),
    url(r'^tag/page/(?P<page>\w+)/$', TagListView.as_view(), name="tag-home-paginated"),
    url(r'^tag/add/$', TagCreateView.as_view(), name="tag-add"),
    url(r'^tag/(?P<slug>[\w-]+)/$', TagDetailView.as_view(), name="tag-view"),
    url(r'^tag/(?P<id>\d+)/update/$', TagUpdateView.as_view(), name="tag-update"),
)