Commit d23c54b9 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Add of the poc app

I created the poc app that will ensure the complete use of the legacy
database. At the moment this app doesn't work properly (no url, views or
model defined).
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <>
parent 73168816
......@@ -19,5 +19,5 @@ from django.contrib import admin
urlpatterns = [
url(r'^/', include('poc.urls')),
url(r'', include('poc.urls')),
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class PocConfig(AppConfig):
name = 'poc'
from django.test import TestCase
# Create your tests here.
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^users/', views.user),
from django.shortcuts import render
from .models import Users, Quotas
def index(request):
return render(request, "index.html")
def user(request):
quotas = Quotas.objects.all()
return render(request, "user.html", locals())
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment