From 345c6fa7505a3b2f0772f3343f748c1e4a7ce8be Mon Sep 17 00:00:00 2001 From: yaemiku Date: Wed, 28 Sep 2022 20:26:48 +0200 Subject: [PATCH] [func] tournament pages [func] prod env --- .env | 2 + db/tournamentpages/__init__.py | 0 db/tournamentpages/admin.py | 3 + db/tournamentpages/apps.py | 6 ++ db/tournamentpages/migrations/__init__.py | 0 db/tournamentpages/models.py | 3 + db/tournamentpages/tests.py | 3 + db/tournamentpages/views.py | 3 + pdlzbs/settings.py | 5 +- static/css/dist/styles.css | 85 ++--------------------- theme/static/css/dist/styles.css | 85 ++--------------------- 11 files changed, 31 insertions(+), 164 deletions(-) create mode 100644 .env create mode 100644 db/tournamentpages/__init__.py create mode 100644 db/tournamentpages/admin.py create mode 100644 db/tournamentpages/apps.py create mode 100644 db/tournamentpages/migrations/__init__.py create mode 100644 db/tournamentpages/models.py create mode 100644 db/tournamentpages/tests.py create mode 100644 db/tournamentpages/views.py diff --git a/.env b/.env new file mode 100644 index 0000000..ba033e5 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +PATH=/app/django/venv/bin +DEBUG=False \ No newline at end of file diff --git a/db/tournamentpages/__init__.py b/db/tournamentpages/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/db/tournamentpages/admin.py b/db/tournamentpages/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/db/tournamentpages/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/db/tournamentpages/apps.py b/db/tournamentpages/apps.py new file mode 100644 index 0000000..119fa77 --- /dev/null +++ b/db/tournamentpages/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class TournamentpagesConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'tournamentpages' diff --git a/db/tournamentpages/migrations/__init__.py b/db/tournamentpages/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/db/tournamentpages/models.py b/db/tournamentpages/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/db/tournamentpages/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/db/tournamentpages/tests.py b/db/tournamentpages/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/db/tournamentpages/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/db/tournamentpages/views.py b/db/tournamentpages/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/db/tournamentpages/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/pdlzbs/settings.py b/pdlzbs/settings.py index b36da83..4f2796f 100644 --- a/pdlzbs/settings.py +++ b/pdlzbs/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/ """ from pathlib import Path +import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -23,10 +24,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-di(3!svrv%ot-07@%quxc9^@##0@w+#zccozl4_3e@nnsx5f(g' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.getenv('DEBUG', False) == 'True' ALLOWED_HOSTS = ['*'] -CSRF_TRUSTED_ORIGINS = ['https://pdlzbs.catboy.pictures', 'http://127.0.0.1'] +CSRF_TRUSTED_ORIGINS = ['https://podlaskizbs.pl', 'http://127.0.0.1'] INTERNAL_IPS = [ "127.0.0.1", diff --git a/static/css/dist/styles.css b/static/css/dist/styles.css index d9aa7e0..34f6f36 100644 --- a/static/css/dist/styles.css +++ b/static/css/dist/styles.css @@ -1266,14 +1266,6 @@ select { margin: 1rem; } -.m-2 { - margin: 0.5rem; -} - -.m-0 { - margin: 0px; -} - .mx-auto { margin-left: auto; margin-right: auto; @@ -1309,14 +1301,14 @@ select { margin-bottom: 1rem; } -.mb-auto { - margin-bottom: auto; -} - .mt-2 { margin-top: 0.5rem; } +.mb-auto { + margin-bottom: auto; +} + .block { display: block; } @@ -1353,16 +1345,6 @@ select { height: 100vh; } -.h-12 { - height: 3rem; -} - -.h-max { - height: -webkit-max-content; - height: -moz-max-content; - height: max-content; -} - .max-h-\[200px\] { max-height: 200px; } @@ -1375,24 +1357,6 @@ select { max-height: 18rem; } -.min-h-min { - min-height: -webkit-min-content; - min-height: -moz-min-content; - min-height: min-content; -} - -.min-h-fit { - min-height: -webkit-fit-content; - min-height: -moz-fit-content; - min-height: fit-content; -} - -.min-h-max { - min-height: -webkit-max-content; - min-height: -moz-max-content; - min-height: max-content; -} - .w-full { width: 100%; } @@ -1401,10 +1365,6 @@ select { width: 9rem; } -.w-auto { - width: auto; -} - .max-w-screen-lg { max-width: 1024px; } @@ -1421,14 +1381,6 @@ select { max-width: 768px; } -.shrink { - flex-shrink: 1; -} - -.grow { - flex-grow: 1; -} - .basis-1\/2 { flex-basis: 50%; } @@ -1445,10 +1397,6 @@ select { resize: both; } -.grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); -} - .flex-col { flex-direction: column; } @@ -1638,11 +1586,6 @@ select { line-height: 1; } -.text-sm { - font-size: 0.875rem; - line-height: 1.25rem; -} - .font-medium { font-weight: 500; } @@ -1675,14 +1618,6 @@ select { line-height: 1.5; } -.leading-3 { - line-height: .75rem; -} - -.leading-4 { - line-height: 1rem; -} - .tracking-normal { letter-spacing: 0em; } @@ -1875,22 +1810,10 @@ h4 { width: 100vw; } - .lg\:w-10 { - width: 2.5rem; - } - .lg\:w-40 { width: 10rem; } - .lg\:max-w-md { - max-width: 28rem; - } - - .lg\:max-w-xs { - max-width: 20rem; - } - .lg\:flex-row { flex-direction: row; } diff --git a/theme/static/css/dist/styles.css b/theme/static/css/dist/styles.css index d9aa7e0..34f6f36 100644 --- a/theme/static/css/dist/styles.css +++ b/theme/static/css/dist/styles.css @@ -1266,14 +1266,6 @@ select { margin: 1rem; } -.m-2 { - margin: 0.5rem; -} - -.m-0 { - margin: 0px; -} - .mx-auto { margin-left: auto; margin-right: auto; @@ -1309,14 +1301,14 @@ select { margin-bottom: 1rem; } -.mb-auto { - margin-bottom: auto; -} - .mt-2 { margin-top: 0.5rem; } +.mb-auto { + margin-bottom: auto; +} + .block { display: block; } @@ -1353,16 +1345,6 @@ select { height: 100vh; } -.h-12 { - height: 3rem; -} - -.h-max { - height: -webkit-max-content; - height: -moz-max-content; - height: max-content; -} - .max-h-\[200px\] { max-height: 200px; } @@ -1375,24 +1357,6 @@ select { max-height: 18rem; } -.min-h-min { - min-height: -webkit-min-content; - min-height: -moz-min-content; - min-height: min-content; -} - -.min-h-fit { - min-height: -webkit-fit-content; - min-height: -moz-fit-content; - min-height: fit-content; -} - -.min-h-max { - min-height: -webkit-max-content; - min-height: -moz-max-content; - min-height: max-content; -} - .w-full { width: 100%; } @@ -1401,10 +1365,6 @@ select { width: 9rem; } -.w-auto { - width: auto; -} - .max-w-screen-lg { max-width: 1024px; } @@ -1421,14 +1381,6 @@ select { max-width: 768px; } -.shrink { - flex-shrink: 1; -} - -.grow { - flex-grow: 1; -} - .basis-1\/2 { flex-basis: 50%; } @@ -1445,10 +1397,6 @@ select { resize: both; } -.grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); -} - .flex-col { flex-direction: column; } @@ -1638,11 +1586,6 @@ select { line-height: 1; } -.text-sm { - font-size: 0.875rem; - line-height: 1.25rem; -} - .font-medium { font-weight: 500; } @@ -1675,14 +1618,6 @@ select { line-height: 1.5; } -.leading-3 { - line-height: .75rem; -} - -.leading-4 { - line-height: 1rem; -} - .tracking-normal { letter-spacing: 0em; } @@ -1875,22 +1810,10 @@ h4 { width: 100vw; } - .lg\:w-10 { - width: 2.5rem; - } - .lg\:w-40 { width: 10rem; } - .lg\:max-w-md { - max-width: 28rem; - } - - .lg\:max-w-xs { - max-width: 20rem; - } - .lg\:flex-row { flex-direction: row; }