コード例 #1
0
ファイル: urls.py プロジェクト: victorpluna/search_college
from django.conf.urls import patterns, include, url
from busca.views import HomeView, BuscaView, resultado
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^busca/$', BuscaView.as_view(), name='busca'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^resultado/(?P<id_relatorio>\d+)/$', resultado, name='resultado'),
    url(r'^resultado/(?P<id_relatorio>\d+)/scriptLattes.css$', TemplateView.as_view(template_name="scriptLattes.css"), name='css')
)
コード例 #2
0
ファイル: urls.py プロジェクト: thonnycleuton/randomia
from busca.views import BuscaView, BuscaCreate, BuscaUpdate, BuscaDelete
from django.conf.urls import patterns, url, include

urlpatterns = patterns('',
                       (r'^selectable/', include('selectable.urls')),
                       url(r'^$', BuscaView.as_view(), name='read'),
                       url(r'^criar/$', BuscaCreate.as_view(), name='create'),
                       url(r'^editar/(?P<pk>\d+)/$', BuscaUpdate.as_view(), name='edit'),
                       url(r'^excluir/(?P<pk>\d+)/$', BuscaDelete.as_view(), name='delete'),
                       )
コード例 #3
0
from busca.views import BuscaView, BuscaCreate, BuscaUpdate, BuscaDelete
from django.conf.urls import patterns, url, include

urlpatterns = patterns(
    '',
    (r'^selectable/', include('selectable.urls')),
    url(r'^$', BuscaView.as_view(), name='index'),
    url(r'^criar/$', BuscaCreate.as_view(), name='create'),
    url(r'^editar/(?P<pk>\d+)/$', BuscaUpdate.as_view(), name='edit'),
    url(r'^excluir/(?P<pk>\d+)/$', BuscaDelete.as_view(), name='delete'),
)
コード例 #4
0
from django.conf.urls import patterns, include, url
from busca.views import HomeView, BuscaView, resultado
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    url(r'^$', HomeView.as_view(), name='home'),
    url(r'^busca/$', BuscaView.as_view(), name='busca'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^resultado/(?P<id_relatorio>\d+)/$', resultado, name='resultado'),
    url(r'^resultado/(?P<id_relatorio>\d+)/scriptLattes.css$',
        TemplateView.as_view(template_name="scriptLattes.css"),
        name='css'))