Exemplo n.º 1
0
# (c) Nelen & Schuurmans.  GPL licensed, see LICENSE.txt.
from django.conf.urls.defaults import include
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
from django.contrib import admin

from lizard_ui.urls import debugmode_urlpatterns
from lizard_area.views import (
    Homepage,
    ApiView,
)

admin.autodiscover()

API_URL_NAME = 'lizard_area_api_root'
NAME_PREFIX = 'lizard_area_'

urlpatterns = patterns(
    '',
    url(r'^$', Homepage.as_view(), name=NAME_PREFIX + 'homepage'),
    url(r'^api-view/$', ApiView.as_view(), name=NAME_PREFIX + 'api_view'),
    (r'^api/', include('lizard_area.api.urls')),
    (
        r'^area_links_panel/$',
        'lizard_area.views.area_links_panel',
        {},
        "lizard_area.area_links_panel"
    ),
)
urlpatterns += debugmode_urlpatterns()
Exemplo n.º 2
0
# (c) Nelen & Schuurmans.  GPL licensed, see LICENSE.txt.
from django.conf.urls.defaults import include
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
from django.contrib import admin

from lizard_ui.urls import debugmode_urlpatterns
from lizard_serious.views import SeriousView
from lizard_serious.views import TimeseriesView

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', SeriousView.as_view(), name='lizard_serious_homepage'),
    url(r'^timeseries/$',
        TimeseriesView.as_view(),
        name='lizard_serious_homepage'),
    url(r'^admin/', include(admin.site.urls)),
    # url(r'^something/',
    #     direct.import.views.some_method,
    #     name="name_it"),
)
urlpatterns += debugmode_urlpatterns()