urls.py 452 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
from django.urls import path
from django.views.generic import ListView

from . import views
Guilhem Saurel's avatar
Guilhem Saurel committed
5
from .models import Forge, Namespace, Project
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
use ndh    
Guilhem Saurel committed
9
10
11
12
    path('', views.ProjectsView.as_view(), name='home'),
    path('forges', views.ForgesView.as_view(), name='forges'),
    path('namespaces', views.NamespacesView.as_view(), name='namespaces'),
    path('project/<str:slug>', views.ProjectView.as_view(), name='project'),
Guilhem Saurel's avatar
Guilhem Saurel committed
13
]