예제 #1
0
파일: urls.py 프로젝트: alex-steinke/sbml
"""SBMLsite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from views import ModelView, UnitsView, DefaultView


urlpatterns = [
    url('units', UnitsView.as_view(), name='units'),
    url('compartments', DefaultView.as_view(), name='compartments'),
    url('species', DefaultView.as_view(), name='species'),
    url('parameters', DefaultView.as_view(), name='parameters'),
    url('rules', DefaultView.as_view(), name='rules'),
    url('reactions', DefaultView.as_view(), name='reactions'),
    url('events', DefaultView.as_view(), name='events'),
    url(r'^$', ModelView.as_view(), name='model'),
]
예제 #2
0
파일: urls.py 프로젝트: rosscdh/cartvine
from django.conf.urls import patterns, include, url

from cartvine.utils import login_required
from cartvine.decorators import shop_login_required

from views import DefaultView, LogoutView, FinalizeInstallationView


urlpatterns = patterns('',
    url(r'^login/$', DefaultView.as_view(), name='login'),
    url(r'^logout/$', login_required(LogoutView.as_view()), name='logout'),
    url(r'^finalize/$', FinalizeInstallationView.as_view(), name='finalize'),
    url(r'^$', DefaultView.as_view(), name='index'),
)
예제 #3
0
파일: urls.py 프로젝트: rosscdh/cartvine
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from cartvine.utils import login_required
from cartvine.decorators import shop_login_required

from views import DefaultView,LoginView,LogoutView


urlpatterns = patterns('',
    # Local App Urls
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', login_required(LogoutView.as_view()), name='logout'),
    # Facebook Specific Urls
    url(r'^facebook_debug/', TemplateView.as_view(template_name='facebook_debug.html'), name='fb-debug'),
    url(r'^channel\.html', TemplateView.as_view(template_name='channel.html'), name='facebook_channel_receiver'),
    url(r'^$', DefaultView.as_view(), name='index'),
)