Implement a basic front page view.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-15 15:14:03 -04:00
parent 18aa7020be
commit 5e57f9270b
5 changed files with 34 additions and 0 deletions

View File

@ -7,4 +7,5 @@ from django.contrib import admin
urlpatterns = [ urlpatterns = [
url(r'^admin/', admin.site.urls), url(r'^admin/', admin.site.urls),
url(r'', include('api.urls')), url(r'', include('api.urls')),
url(r'', include('core.urls')),
] ]

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %} | Baby Blotter</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>

View File

@ -0,0 +1,5 @@
{% extends 'core/base.html' %}
{% block title %}Welcome!{% endblock %}
{% block content %}Welcome!{% endblock %}

10
core/urls.py Normal file
View File

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
]

8
core/views.py Normal file
View File

@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.generic.base import TemplateView
class IndexView(TemplateView):
template_name = 'core/index.html'