views.py 488 Bytes
Newer Older
BERJON Matthieu's avatar
BERJON Matthieu committed
1
2
from django.shortcuts import render

3
from django.contrib.auth.models import User
4
from .models import Webapp
BERJON Matthieu's avatar
BERJON Matthieu committed
5
6
7


def index(request):
BERJON Matthieu's avatar
BERJON Matthieu committed
8
    return render(request, "home.html")
BERJON Matthieu's avatar
BERJON Matthieu committed
9
10
11


def user(request):
12
13
    #  quotas = Quota.objects.all()
    users = User.objects.all()
BERJON Matthieu's avatar
BERJON Matthieu committed
14
    return render(request, "user.html", locals())
15
16
17
18
19
20
21
22
23
24
25
26
27


def list_webapps(request):
    webapps = Webapp.objects.all()
    return render(request, "webapps.html", locals())


def login(request):
    pass


def signup(request):
    pass