Static management is hard.
This commit is contained in:
parent
696a557026
commit
c7187d479c
|
@ -1,7 +1,7 @@
|
||||||
{% load static %}<!DOCTYPE html>
|
{% load static %}<!DOCTYPE html>
|
||||||
<html lang='en-AU'>
|
<html lang='en-AU'>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="/static/main/theme.css">
|
<link rel="stylesheet" type="text/css" href="{% static 'theme.css' %}">
|
||||||
<title>
|
<title>
|
||||||
Tas [] & Van Canto - {{ title }}
|
Tas [] & Van Canto - {{ title }}
|
||||||
</title>
|
</title>
|
||||||
|
|
|
@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
with open('rakka.conf') as argagarg:
|
with open('rakka.conf') as argagarg:
|
||||||
conf={n.split('=',1)[0]:n.split('=',1)[1] for n in argagarg.read().split('\n')}
|
conf={n.split('=',1)[0]:n.split('=',1)[1] for n in argagarg.read().strip().split('\n')}
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
@ -27,7 +27,7 @@ SECRET_KEY = conf['SECRET_KEY']
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = bool(conf['DEBUG'])
|
DEBUG = bool(conf['DEBUG'])
|
||||||
|
|
||||||
ALLOWED_HOSTS = [n.strip() for n in conf['ALLOWED_HOSTS'].split(',')] # [127.0.0.1,::1,localhost]
|
ALLOWED_HOSTS = [n.strip() for n in conf['ALLOWED_HOSTS'].split(',')]
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
Loading…
Reference in New Issue
Block a user