[TASK] Add private_settings.py, move some settings there.

This commit is contained in:
JPT committed 2014-07-26 13:00:21 +02:00
1 parent 229ffb9939
commit 06fd6da45f
15 files changed
+88 -51

No files matched your search

View File
Whitespace-only changes.
+5
View File
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
from django.contrib import admin
# Register your models here.
+5
View File
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
from django.db import models
# Create your models here.
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Merging Citavi projects and mapping existing datasets.">
<title>{% block title %}Citavi Mapper :: {{ title }}{% endblock %}</title>
</head>
<body>
<h1>{{ headline }}</h1>
<div id="content">
{% block content %}{{ content }}{% endblock %}t
<div>
</body>
</html>
+5
View File
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
from django.test import TestCase
# Create your tests here.
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from django.views.generic import TemplateView
class MainSite(TemplateView):
template_name = "base.html"
def get(self, request, **kwargs):
self._request = request
return super(MainSite, self).get(request, **kwargs)
def get_context_data(self, **kwargs):
context = super(MainSite, self).get_context_data(**kwargs)
context['title'] = 'Titeltest'
context['content'] = 'Foobar!'
context['headline'] = 'Yo!'
return context