090500
This commit is contained in:
14
main/views.py
Normal file
14
main/views.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import View, TemplateView
|
||||
|
||||
|
||||
# Простое отображение страницы заглушки.
|
||||
class MainView(TemplateView):
|
||||
template_name = 'index.html'
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
context = {
|
||||
'title': 'Объявления',
|
||||
"message_hello": "Тут какой-то мессадж."
|
||||
}
|
||||
return render(request, 'index.html', context)
|
||||
Reference in New Issue
Block a user