add django settings stuff to base
This commit is contained in:
parent
004195e843
commit
d82111caa7
2 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,8 @@ SETTINGS_KEYS = [
|
||||||
'MEDIA_URL',
|
'MEDIA_URL',
|
||||||
'LANGUAGE_CODE',
|
'LANGUAGE_CODE',
|
||||||
'TIME_ZONE',
|
'TIME_ZONE',
|
||||||
'ALLOWED_HOSTS'
|
'ALLOWED_HOSTS',
|
||||||
|
'WAGTAIL_SITE_NAME'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{% load static wagtailuserbar %}
|
{% load static wagtailuserbar %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="{{ django_settings.LANGUAGE_CODE }}">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<title>{% block htmltitle %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}</title>
|
<title>{% block htmltitle %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
|
||||||
|
<meta http-equiv="Content-Language" content="{{ django_settings.LANGUAGE_CODE }}" />
|
||||||
<meta name="superfish" content="nofish" />
|
<meta name="superfish" content="nofish" />
|
||||||
|
<meta name="application-name" content="{{ django_settings.WAGTAIL_SITE_NAME }}" />
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'css/index.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'css/index.css' %}">
|
||||||
|
|
||||||
|
|
Reference in a new issue