diff --git a/.gitignore b/.gitignore index 5d32b68..000b5e6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ __pycache__/ identifier.sqlite vk_config.v2.json crossposting_backend/private/settings.py -logs/ \ No newline at end of file +logs/ +static/ \ No newline at end of file diff --git a/cms/static/cms/icons/favicon.ico b/cms/static/cms/icons/favicon.ico new file mode 100644 index 0000000..0c4e8fd Binary files /dev/null and b/cms/static/cms/icons/favicon.ico differ diff --git a/cms/templates/base.html b/cms/templates/base.html index 14781ed..9acbef1 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -7,6 +7,8 @@ {% bootstrap_css %} {% bootstrap_javascript %} {% bootstrap_messages %} + {% load static %} + diff --git a/crossposting_backend/settings.py b/crossposting_backend/settings.py index a014fdd..14f2842 100644 --- a/crossposting_backend/settings.py +++ b/crossposting_backend/settings.py @@ -147,6 +147,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/4.1/howto/static-files/ STATIC_URL = 'static/' +STATIC_ROOT = path.join(BASE_DIR, 'static') # Default primary key field type # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field