urls.py 577 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
Guilhem Saurel committed
9
10
    # path(r'', views.home, name='home'),
    path(r'', views.ProjectsView.as_view(), name='home'),
Guilhem Saurel's avatar
Guilhem Saurel committed
11
12
13
    path(r'forges', ListView.as_view(model=Forge), name='forges'),
    path(r'namespaces', ListView.as_view(model=Namespace), name='namespaces'),
    path(r'projects', ListView.as_view(model=Project), name='projects'),
Guilhem Saurel's avatar
Guilhem Saurel committed
14
    path(r'project/<str:slug>', views.ProjectView.as_view(), name='project'),
Guilhem Saurel's avatar
Guilhem Saurel committed
15
]