nginx deployment without debug works pretty much

This commit is contained in:
Christoph J. Scherr 2023-06-06 00:53:34 +02:00
parent 99c4dc32fc
commit 3645e92489
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
13 changed files with 20 additions and 47 deletions

View File

@ -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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,4 +0,0 @@
:root {
--bs-primary: #ff0000;
--bs-success: #ff0000;
}

View File

@ -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 %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +0,0 @@
:root {
--bs-primary: #ff0000;
--bs-success: #ff0000;
}