[TASK] Add private_settings.py, move some settings there.
This commit is contained in:
1 parent
229ffb9939
commit
06fd6da45f
15 files changed
+88
-51
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -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>
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -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
|
||||
Reference in new issue
Block a user