urls.py 1.05 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
from django.urls import path
Guilhem Saurel's avatar
Guilhem Saurel committed
2
from django.views.generic import RedirectView
Guilhem Saurel's avatar
Guilhem Saurel committed
3
4
5

from . import views

Guilhem Saurel's avatar
Guilhem Saurel committed
6
app_name = 'rainboard'
Guilhem Saurel's avatar
Guilhem Saurel committed
7
urlpatterns = [
Guilhem Saurel's avatar
Guilhem Saurel committed
8
    path('', RedirectView.as_view(pattern_name='rainboard:projects'), name='home'),
Guilhem Saurel's avatar
use ndh    
Guilhem Saurel committed
9
    path('forges', views.ForgesView.as_view(), name='forges'),
Guilhem Saurel's avatar
Guilhem Saurel committed
10
11
    path('articles', views.ArticlesView.as_view(), name='articles'),
    path('article/create', views.ArticleCreateView.as_view(), name='article-new'),
Guilhem Saurel's avatar
use ndh    
Guilhem Saurel committed
12
    path('namespaces', views.NamespacesView.as_view(), name='namespaces'),
Guilhem Saurel's avatar
Guilhem Saurel committed
13
    path('projects', views.ProjectsView.as_view(), name='projects'),
Guilhem Saurel's avatar
Guilhem Saurel committed
14
15
16
    path('project/<str:slug>/robotpkg', views.ProjectView.as_view(), name='project'),
    path('project/<str:slug>/repos', views.ProjectReposView.as_view(), name='project-repos'),
    path('project/<str:slug>/branches', views.ProjectBranchesView.as_view(), name='project-branches'),
17
    path('project/<str:slug>/images', views.ProjectImagesView.as_view(), name='project-images'),
Guilhem Saurel's avatar
Guilhem Saurel committed
18
    path('project/<str:slug>/contributors', views.ProjectContributorsView.as_view(), name='project-contributors'),
Guilhem Saurel's avatar
Guilhem Saurel committed
19
]