added new app, major updates

This commit is contained in:
Alexander Karpov 2023-01-01 23:18:24 +03:00
parent 5bc3c3504e
commit 14b6bf141a
16 changed files with 2257 additions and 2138 deletions

View File

6
akarpov/tools/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class ToolsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "akarpov.tools"

View File

View File

View File

6
akarpov/tools/qr/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class QRConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "akarpov.tools.qr"

View File

View File

0
akarpov/tools/qr/urls.py Normal file
View File

View File

0
akarpov/tools/urls.py Normal file
View File

0
akarpov/tools/views.py Normal file
View File

View File

@ -39,6 +39,11 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths # https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
LOCALE_PATHS = [str(ROOT_DIR / "locale")] LOCALE_PATHS = [str(ROOT_DIR / "locale")]
LANGUAGES = [
("en-us", "English"),
("ru", "Russian"),
]
# DATABASES # DATABASES
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#databases # https://docs.djangoproject.com/en/dev/ref/settings/#databases
@ -88,6 +93,7 @@
"django.contrib.humanize", # Handy template tags "django.contrib.humanize", # Handy template tags
# required for jazzmin to work # required for jazzmin to work
"jazzmin", "jazzmin",
"djangocms_admin_style",
"django.contrib.admin", "django.contrib.admin",
"django.forms", "django.forms",
] ]
@ -109,6 +115,11 @@
"polymorphic", "polymorphic",
"cacheops", "cacheops",
"extra_settings", "extra_settings",
# django-cms
"cms",
"menus",
"treebeard",
"sekizai",
] ]
HEALTH_CHECKS = [ HEALTH_CHECKS = [
@ -138,7 +149,7 @@
] ]
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps # https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = ( INSTALLED_APPS = (
DJANGO_APPS + THIRD_PARTY_APPS + HEALTH_CHECKS + ALL_AUTH_PROVIDERS + LOCAL_APPS DJANGO_APPS + LOCAL_APPS + THIRD_PARTY_APPS + HEALTH_CHECKS + ALL_AUTH_PROVIDERS
) )
# MIGRATIONS # MIGRATIONS
@ -242,6 +253,7 @@
"django.template.context_processors.tz", "django.template.context_processors.tz",
"django.contrib.messages.context_processors.messages", "django.contrib.messages.context_processors.messages",
"akarpov.users.context_processors.allauth_settings", "akarpov.users.context_processors.allauth_settings",
"sekizai.context_processors.sekizai",
], ],
}, },
} }

View File

@ -16,6 +16,7 @@
"about/", TemplateView.as_view(template_name="pages/about.html"), name="about" "about/", TemplateView.as_view(template_name="pages/about.html"), name="about"
), ),
path("health/", include("health_check.urls")), path("health/", include("health_check.urls")),
path("cms/", include("cms.urls")),
# Django Admin, use {% url 'admin:index' %} # Django Admin, use {% url 'admin:index' %}
path(settings.ADMIN_URL, admin.site.urls), path(settings.ADMIN_URL, admin.site.urls),
# User management # User management

4366
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -63,6 +63,8 @@ django-jazzmin = "^2.6.0"
django-cacheops = "^6.1" django-cacheops = "^6.1"
django-extra-settings = "^0.7.0" django-extra-settings = "^0.7.0"
psycopg2-binary = "^2.9.5" psycopg2-binary = "^2.9.5"
django-cms = "^3.11.1"
django-sekizai = "^4.0.0"
[build-system] [build-system]