urls.py 435 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.urls import path

from django.views.generic import ListView

from .models import Forge, Namespace, Project
from . import views

app_name = 'cine'
urlpatterns = [
    path(r'', views.home, name='home'),
    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'),
]