Add parts application to django and start basic template
This commit is contained in:
20
shimatta_kenkyusho/parts/views.py
Normal file
20
shimatta_kenkyusho/parts/views.py
Normal 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.
|
Reference in New Issue
Block a user