urls.py 929 Bytes
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 ListView, RedirectView
Guilhem Saurel's avatar
Guilhem Saurel committed
3
4

from . import views
Guilhem Saurel's avatar
Guilhem Saurel committed
5
from .models import Forge, Namespace, Project, Article
Guilhem Saurel's avatar
Guilhem Saurel committed
6

Guilhem Saurel's avatar
Guilhem Saurel committed
7
app_name = 'rainboard'
Guilhem Saurel's avatar
Guilhem Saurel committed
8
urlpatterns = [
Guilhem Saurel's avatar
Guilhem Saurel committed
9
    path('', RedirectView.as_view(pattern_name='rainboard:projects'), name='home'),
Guilhem Saurel's avatar
use ndh    
Guilhem Saurel committed
10
    path('forges', views.ForgesView.as_view(), name='forges'),
Guilhem Saurel's avatar
Guilhem Saurel committed
11
12
    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
13
    path('namespaces', views.NamespacesView.as_view(), name='namespaces'),
Guilhem Saurel's avatar
Guilhem Saurel committed
14
    path('projects', views.ProjectsView.as_view(), name='projects'),
Guilhem Saurel's avatar
Guilhem Saurel committed
15
16
17
    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'),
Guilhem Saurel's avatar
Guilhem Saurel committed
18
]