Static management is hard.
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
{% load static %}<!DOCTYPE html>
 | 
			
		||||
<html lang='en-AU'>
 | 
			
		||||
<head>
 | 
			
		||||
	<link rel="stylesheet" type="text/css" href="/static/main/theme.css">
 | 
			
		||||
	<link rel="stylesheet" type="text/css" href="{% static 'theme.css' %}">
 | 
			
		||||
	<title>
 | 
			
		||||
		Tas [] & Van Canto - {{ title }}
 | 
			
		||||
	</title>
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
 | 
			
		||||
 | 
			
		||||
from pathlib import Path
 | 
			
		||||
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'.
 | 
			
		||||
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!
 | 
			
		||||
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
 | 
			
		||||
@@ -120,4 +120,4 @@ USE_TZ = True
 | 
			
		||||
# Static files (CSS, JavaScript, Images)
 | 
			
		||||
# https://docs.djangoproject.com/en/3.1/howto/static-files/
 | 
			
		||||
 | 
			
		||||
STATIC_URL = '/static/'
 | 
			
		||||
STATIC_URL = '/static/'
 | 
			
		||||
		Reference in New Issue
	
	Block a user