Changes to make sitemap work, during migrations add blog aswell'
parent
e5331e09fd
commit
2624e48703
|
@ -52,6 +52,7 @@ INSTALLED_APPS = [
|
|||
'blog',
|
||||
'uploads',
|
||||
'notesfrombelow',
|
||||
'matomo'
|
||||
]
|
||||
ADD_REVERSION_ADMIN = True
|
||||
|
||||
|
@ -242,14 +243,19 @@ LOGGING = {
|
|||
}
|
||||
|
||||
|
||||
EMAIL_HOST = 'smtp.sendgrid.net'
|
||||
EMAIL_HOST_USER = 'notesfrombelow'
|
||||
EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_PASSWORD')
|
||||
EMAIL_HOST = 'kompot.si'
|
||||
EMAIL_HOST_USER = 'prelom'
|
||||
#EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_PASSWORD')
|
||||
EMAIL_HOST_PASSWORD = 'jiaReiz7tie6'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
SITE_URL = 'https://prelom.je'
|
||||
ADMINS = [
|
||||
('piskr', 'domenkosmac@gmail.com'),
|
||||
]
|
||||
SERVER_EMAIL = 'editors@notesfrombelow.org'
|
||||
SERVER_EMAIL = 'prelom@prelom.je'
|
||||
FILE_UPLOAD_PERMISSIONS=0o640
|
||||
|
||||
# MATOMO analitika
|
||||
MATOMO_URL = 'https://anal.kompot.si/'
|
||||
MATOMO_SITE_ID = 2
|
||||
|
|
|
@ -64,5 +64,5 @@ urlpatterns = [
|
|||
path('tag/<slug:slug>', journal.views.TagView.as_view(), name='tag'),
|
||||
path('rss/', ArticleFeed()),
|
||||
path('<slug:slug>', cms.views.PageView.as_view(), name='page'),
|
||||
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='sitemap'),
|
||||
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<meta property="og:site_name" content="Prelom" />
|
||||
<meta name="twitter:card" content="{% block twittercard %}summary_large_image{% endblock %}" />
|
||||
<meta name="twitter:site" content="Prelom" />
|
||||
{% load matomo_tags %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
@ -19,4 +20,5 @@
|
|||
<script src="/static/js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="/static/js/semantic.min.js" type="text/javascript"></script>
|
||||
<script src="/static/js/scripts.js?2" type="text/javascript"></script>
|
||||
{% tracking_code %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,13 +3,6 @@
|
|||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ETRV6BRQDF"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-ETRV6BRQDF');
|
||||
</script>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Prelom je spletni časopis" />
|
||||
|
|
|
@ -9,6 +9,7 @@ django-debug-toolbar==1.9.1
|
|||
django-imagekit==4.0.2
|
||||
django-reversion==2.0.13
|
||||
-e git+https://github.com/jedie/django-reversion-compare.git@a0abed6454708b5c85c4173768589dc951d2e768#egg=django_reversion_compare
|
||||
django-matomo==0.1.6
|
||||
Fabric3==1.13.1.post1
|
||||
gunicorn==19.7.1
|
||||
idna==2.6
|
||||
|
|
Loading…
Reference in New Issue