コード例 #1
0
"""artemis URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/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 include, url
from django.contrib import admin

from projects.views import IndexView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^projects/', include('projects.urls', namespace='projects')),
    url(r'^user/', include('authority.urls', namespace='user')),
    url('^$', IndexView.as_view(), name='index'),
    url(r'^repertory/', include('repertory.urls', namespace='repertory')),
]

handler404 = 'projects.views.handler404'
コード例 #2
0
ファイル: urls.py プロジェクト: RobertUJ/Omaha
from django.conf.urls import patterns, url
from projects.views import IndexView, addProject, viewProject


urlpatterns = [
    url(r'^index/$', IndexView.as_view(), name="IndexView"),
    url(r'^addProject/$', addProject.as_view(), name="addProjectView"),
    url(r'^proyecto.(?P<name>.*)/$', viewProject.as_view(), name="viewProjectView"),

]
コード例 #3
0
ファイル: urls.py プロジェクト: roraback/portfolio
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.core.urlresolvers import reverse
from django.conf.urls.static import static
from django.views.generic import RedirectView

from django.conf import settings
from projects.views import IndexView, ProjectView, AboutView, ContactView, SitemapView, BingView
from blog.views import ArticleView, ArticleListView, BlogTagView, BlogCategoryView, BlogIndexView

urlpatterns = patterns('',
    url(r'^$', IndexView.as_view(), name='home'),
    # url(r'^blog/', include('blog.urls')),


    url(r'^admin/', include(admin.site.urls)),
    url(r'^projects/(?P<slug>[A-Za-z0-9_\-]+)/$', ProjectView.as_view(), name='project'),
    url(r'^about/$', AboutView.as_view(), name='about'),
    url(r'^contact/$', ContactView.as_view(), name='contact'),
    url(r'^sitemap\.xml$', SitemapView.as_view(), name='sitemap'),
    url(r'^BingSiteAuth\.xml$', BingView.as_view(), name='bing'),
    # url(r'^blog/$', BlogIndexView.as_view(), name='article_list'),
    # url(r'^blog/articles/(?P<category_slug>[A-Za-z0-9_\-]+)/(?P<slug>[A-Za-z0-9_\-]+)/$', ArticleView.as_view(), name='article'),
    # url(r'^blog/categories/(?P<slug>[A-Za-z0-9_\-]+)/$', BlogCategoryView.as_view(), name='category'),
    # url(r'^blog/tags/(?P<slug>[A-Za-z0-9_\-]+)/$', BlogTagView.as_view(), name='tag'),
    url(r'^ckeditor/', include('ckeditor_uploader.urls')),
)

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# Resume redirect from old site's URL to home
コード例 #4
0
ファイル: urls.py プロジェクト: opalczynski/blog-projects
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path

from projects.views import IndexView, ProjectAddView, ProjectDetailView, BuildDetailView, BuildRunView, \
    EnvironmentVariableCreateView

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('projects/add/', ProjectAddView.as_view(), name='project-add'),
    path('projects/<int:project_id>/',
         ProjectDetailView.as_view(),
         name='project-detail'),
    path('builds/<int:build_id>/',
         BuildDetailView.as_view(),
         name='build-detail'),
    path('builds/run/', BuildRunView.as_view(), name='build-run'),
    path('variables/add/',
         EnvironmentVariableCreateView.as_view(),
         name='variable-add'),
]
コード例 #5
0
ファイル: urls.py プロジェクト: Eveliyse/project-go
from . import views
from projects.views import (
    CreateProjectView,
    ManageProjectsView,
    DeletePledgeRewardsView,
    IndexView,
    UpdateStatusView,
    ProjectDetailsView,
    ProjectSearchListView,
    ProjectCategoryListView,
    ProjectAddUserPledgeView,
    EditProjectView
)

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^manage/$', ManageProjectsView.as_view(), name='manage'),
    url(r'^create/$', CreateProjectView.as_view(), name='create'),
    url(r'^edit/(?P<project_id>\d+)/$', EditProjectView.as_view(), name='edit'),

    url(r'^update_status/(?P<project_id>\d+)/$', UpdateStatusView.as_view(), name='update_status'),

    url(r'^pledgerewards/(?P<project_id>\d+)/$', views.EditAddPledgeRewards, name='pledgerewards'),

    url(r'^pledgerewards/(?P<project_id>\d+)/p(?P<P_R_id>\d+)/$', views.EditAddPledgeRewards, kwargs=dict(mode="pledge"), name='pledge'),

    url(r'^pledgerewards/(?P<project_id>\d+)/r(?P<P_R_id>\d+)/$', views.EditAddPledgeRewards, kwargs=dict(mode="reward"), name='reward'),

    url(r'^pledgerewards/(?P<project_id>\d+)/p(?P<P_R_id>\d+)/delete/$', DeletePledgeRewardsView.as_view(), kwargs=dict(mode="pledge"), name='delete_pledge'),

    url(r'^pledgerewards/(?P<project_id>\d+)/r(?P<P_R_id>\d+)/delete/$', DeletePledgeRewardsView.as_view(), kwargs=dict(mode="reward"), name='delete_reward'),