Bootstrap3 integrated in project. First page added. Closes issue #1

parent 3578f98e
......@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap3',
'clades',
]
......@@ -56,7 +57,7 @@ ROOT_URLCONF = 'birding.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
......@@ -15,7 +15,9 @@ Including another URLconf
"""
from django.conf.urls import url
from django.contrib import admin
from django.views.generic.base import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
url(r'^admin/', admin.site.urls),
]
<!DOCTYPE html>
{% load staticfiles i18n bootstrap3 %}
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block page_title %}{% include "page_title.html" %}{% endblock %}</title>
{% bootstrap_css %}{% block css %}{% endblock %}
</head>
<body>
<div class="container">
<h1>{% include "page_title.html" %}</h1>
{% bootstrap_messages %}
{% block content %}
{% endblock content %}
</div>
{% bootstrap_javascript jquery=1 %}{% block js %}{% endblock %}
</body>
</html>
{% extends "base.html" %}{% load i18n %}
{% block content %}
<ul>
<li><a href="{% url 'admin:index' %}">{% trans "Admin" %}</a></li>
</ul>
{% endblock content %}
{% load i18n %}
{% if page_title %}
{{page_title}}
{% else %}{%trans "Birding Application"%}{% endif %}
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