Add parts application to django and start basic template

This commit is contained in:
2021-07-30 20:52:18 +02:00
parent 7a36403f4c
commit a3f31608a8
62 changed files with 59237 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
from django.shortcuts import render, redirect
from django.urls import resolve, reverse
from django.http import HttpResponse
from .navbar import NavBar
def main_view(request):
base_context = {
'navbar': NavBar.get_navbar('Main', request.user),
'title': NavBar.get_brand()+' / '+'Main',
}
context = {
'base': base_context,
}
return render(request, 'parts/main.html', context)
# Create your views here.