Добавил favicon #42 #47

Merged
redex2000 merged 2 commits from favicon into master 2 years ago
  1. 3
      .gitignore
  2. BIN
      cms/static/cms/icons/favicon.ico
  3. 2
      cms/templates/base.html
  4. 4
      conf/nginx/crossposting.conf
  5. 1
      crossposting_backend/settings.py

3
.gitignore vendored

@ -6,4 +6,5 @@ __pycache__/
identifier.sqlite
vk_config.v2.json
crossposting_backend/private/settings.py
logs/
logs/
static/

BIN
cms/static/cms/icons/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

2
cms/templates/base.html

@ -7,6 +7,8 @@
{% bootstrap_css %}
{% bootstrap_javascript %}
{% bootstrap_messages %}
{% load static %}
<link rel="icon" href="{% static 'cms/icons/favicon.ico' %}">
<script type="text/javascript" src="https://vk.com/js/api/share.js?93" charset="windows-1251"></script>
</head>
<body>

4
conf/nginx/crossposting.conf

@ -8,4 +8,8 @@ server {
location / {
proxy_pass http://localhost:8888;
}
location /static/ {
alias /var/www/crossposting/backend/current/static/;
expires max;
}
}

1
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

Loading…
Cancel
Save