Commit 973bc1de authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

add main page

parent c27d7706
......@@ -40,6 +40,7 @@ INSTALLED_APPS = [
'el_pagination',
'webapp.apps.WebappConfig',
'main.apps.MainConfig',
]
MIDDLEWARE = [
......
......@@ -18,5 +18,6 @@ from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^news/', include('webapp.urls'))
url(r'^news/', include('webapp.urls')),
url(r'', include('main.urls'))
]
from django.shortcuts import render
from django.views.generic import TemplateView
class MainView(TemplateView):
template_name = 'index.html'
def get(self, request, *args, **kwargs):
pass
return render(request, self.template_name)
{% extends 'base.html' %}
{% block content %}
Start page
{% endblock %}
\ 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