nginx deployment without debug works pretty much
This commit is contained in:
parent
99c4dc32fc
commit
3645e92489
13 changed files with 20 additions and 47 deletions
|
@ -29,7 +29,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
SECRET_KEY = 'django-insecure-z_t5-iawtas&1np9)01*4_z_&hy*7wgy1!o$3bnnniux3f1ds-'
|
SECRET_KEY = 'django-insecure-z_t5-iawtas&1np9)01*4_z_&hy*7wgy1!o$3bnnniux3f1ds-'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
|
@ -147,11 +147,12 @@ USE_TZ = True
|
||||||
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = '/home/plex/Documents/code/python/gawa/static'
|
STATIC_ROOT = '/app/static'
|
||||||
|
|
||||||
|
|
||||||
# something for compiling bootstrap
|
# something for compiling bootstrap
|
||||||
|
|
||||||
|
COMPRESS_ENABLED = True
|
||||||
|
|
||||||
STATICFILES_FINDERS = [
|
STATICFILES_FINDERS = [
|
||||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
|
@ -295,5 +296,5 @@ LOGGING = {
|
||||||
# TODO change this for prod
|
# TODO change this for prod
|
||||||
#MEDIA_ROOT = "/home/plex/Documents/code/python/gawa/media"
|
#MEDIA_ROOT = "/home/plex/Documents/code/python/gawa/media"
|
||||||
MEDIA_ROOT = "media/"
|
MEDIA_ROOT = "media/"
|
||||||
MEDIA_URL = "media/"
|
MEDIA_URL = "/app/media/"
|
||||||
FILE_UPLOAD_TEMP_DIR = "/tmp/gawa/upload"
|
FILE_UPLOAD_TEMP_DIR = "/tmp/gawa/upload"
|
||||||
|
|
BIN
gawa/media/img/links/favicons/favicon-22558.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-22558.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
gawa/media/img/links/favicons/favicon-22558_nlng2Cf.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-22558_nlng2Cf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
gawa/media/img/links/favicons/favicon-35500.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-35500.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
BIN
gawa/media/img/links/favicons/favicon-35500_KAYKsHp.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-35500_KAYKsHp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
BIN
gawa/media/img/links/favicons/favicon-9205.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-9205.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
gawa/media/img/links/favicons/favicon-9205_53R3Ab9.png
Normal file
BIN
gawa/media/img/links/favicons/favicon-9205_53R3Ab9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -1,4 +0,0 @@
|
||||||
:root {
|
|
||||||
--bs-primary: #ff0000;
|
|
||||||
--bs-success: #ff0000;
|
|
||||||
}
|
|
|
@ -1,36 +1 @@
|
||||||
{% extends 'start/base.html' %}
|
TODO
|
||||||
{% load i18n %}
|
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
|
||||||
{% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %}
|
|
||||||
{% block title %}{% translate "cscherr.de" %} - {% translate "startpage" %}{% endblock title %}
|
|
||||||
{% block main %}
|
|
||||||
<div class="container-xxl">
|
|
||||||
<div class="jumbotron text-center">
|
|
||||||
<h1>{% translate "Search for: " %}</h1>
|
|
||||||
</div>
|
|
||||||
<div class="row text-center">
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row text-center">
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row text-center">
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
Column
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock main %}
|
|
||||||
|
|
5
gawa/static/CACHE/css/output.99a70c405f99.css
Normal file
5
gawa/static/CACHE/css/output.99a70c405f99.css
Normal file
File diff suppressed because one or more lines are too long
5
gawa/static/CACHE/css/output.abb10fc4a92c.css
Normal file
5
gawa/static/CACHE/css/output.abb10fc4a92c.css
Normal file
File diff suppressed because one or more lines are too long
5
gawa/static/CACHE/js/output.d9ecb35e6fe1.js
Normal file
5
gawa/static/CACHE/js/output.d9ecb35e6fe1.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,4 +0,0 @@
|
||||||
:root {
|
|
||||||
--bs-primary: #ff0000;
|
|
||||||
--bs-success: #ff0000;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue