This commit is contained in:
2024-05-10 09:38:31 +03:00
parent 9a5f895b93
commit 49cc44027d
81 changed files with 6093 additions and 28 deletions

14
main/views.py Normal file
View 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)