from django.views.generic import ListView, CreateView from views import RunsList, ProjectDetail, ProjectImport, ProjectImporter from bsct.urls import URLGenerator from models import Project bsct_patterns_project = URLGenerator(Project).get_urlpatterns(paginate_by=10) urlpatterns = patterns( '', url('^project/$', ListView.as_view(model=Project, template_name="projects/project_list.html"), name='project_list'), url('^project/import/?$', ProjectImport.as_view(), name='project_import'), url('^project/import_add/(?P<repo_id>\d+)?$', ProjectImporter, name='project_import_add'), url('^project/(?P<pk>\d+)$', ProjectDetail.as_view(), name='project_detail'), url('^project/new/?$', CreateView.as_view(model=Project, template_name="projects/project_create.html"), name='project_create'), url('^project/(?P<pk>\d+)/runs$', RunsList.as_view(), name='project_runs_list'), url('', include(bsct_patterns_project)), )
from django.conf.urls import patterns, url from views import ProjectList, ProjectDetail urlpatterns = patterns('', url(r'^project-list/$', ProjectList.as_view(), name='project_list'), url(r'^project-detail/(?P<pk>[0-9]+)/$', ProjectDetail.as_view(), name='project_list'), #url(r'blast-requests-list/$', BlastRequestsList.as_view(), name='job_list'), )
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from views import UserList, UserDetail, ProjectList, ProjectNestedList, ProjectDetail, TaskList, TaskDetail, FeedList, FeedDetail urlpatterns = [ url(r'^nest/users/$', UserList.as_view()), url(r'^nest/users/(?P<phone_number>\+[0-9]+)/$', UserDetail.as_view()), url(r'^nest/projects/$', ProjectNestedList.as_view()), url(r'^nest/projects/(?P<users>[0-9]+)/$', ProjectDetail.as_view()), url(r'^users/$', UserList.as_view()), url(r'^users/(?P<phone_number>\+[0-9]+)/$', UserDetail.as_view()), url(r'^projects/$', ProjectList.as_view()), url(r'^projects/(?P<pk>[0-9]+)/$', ProjectDetail.as_view()), url(r'^tasks/$', TaskList.as_view()), url(r'^tasks/(?P<pk>[0-9]+)/$', TaskDetail.as_view()), url(r'^feeds/$', FeedList.as_view()), url(r'^feeds/(?P<pk>[0-9]+)/$', FeedDetail.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)
from django.conf.urls.defaults import patterns, url from views import (Overview, Profile, Projects, ProjectDetail, ProfileSetup, ProfileCreate) urlpatterns = patterns('', url(r'^$', Overview.as_view(), name='overview'), url(r'login/$', 'django.contrib.auth.views.login', {'template_name': 'people/login.html'}), url(r'logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}), url(r'password_change/', 'django.contrib.auth.views.password_change', {'post_change_redirect': '/', 'template_name': 'people/change_password.html'}), url(r'^profile_create$', ProfileCreate.as_view(), name='profile-create'), url(r'^profile/(?P<pk>\d+)/$', Profile.as_view(), name='profile'), url(r'^project/$', Projects.as_view(), name='project-list'), url(r'^project/(?P<pk>\d+)/$', ProjectDetail.as_view(), name='project-detail'), url(r'^profile_set/(?P<pk>\d+)', ProfileSetup.as_view(), name='profile-setup'), )
from django.conf.urls import patterns, url from views import DataUnitView, ProjectView, DataList, ProjectDetail urlpatterns = patterns('alliance.views', url(r'^$', 'index', name='alliance-home'), url(r'^/data/list/$', DataList.as_view(paginate_by=5), name='alliance-data'), url(r'^/data/entry/(?P<slug>.+)', DataUnitView.as_view(), name='alliance-entry'), url(r'^/about/$', DataUnitView.as_view(), {'slug':'about-the-alliance'}, name='alliance-about'), url(r'^/manifesto/$', DataUnitView.as_view(), {'slug':'ila-manifesto'}, name='alliance-manifesto'), url(r'^/take-action/$', DataUnitView.as_view(), {'slug': 'take-action'}, name='alliance-take-action'), url(r'^/projects/$', ProjectView.as_view(), name='alliance-projects'), url(r'^/project/(?P<pk>\d+)', ProjectDetail.as_view(), name='alliance-project'), )