Skip to content

Commit

Permalink
Added github_revision
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Mar 5, 2018
1 parent f526201 commit b64548d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
'atom',
'import_export',
'django_filters',
'bootstrap_pagination'
'bootstrap_pagination',
'github_revision'
)

# Apps specific for this project go here.
Expand Down Expand Up @@ -350,3 +351,5 @@

FILE_UPLOAD_PERMISSIONS = 0o644

# Django-GitHub-Revision
GITHUB_REVISION_REPO_URL = 'https://github.com/watchdogpolska/poradnia'
6 changes: 6 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
'''
Production Configurations
'''
import os
import raven
from dealer.auto import auto

from .common import * # noqa

# SECRET KEY
Expand Down Expand Up @@ -38,8 +42,10 @@

# Your production stuff: Below this line define 3rd party libary settings
# Ustaw wartość twojego DSN
RELEASE_ID = auto.revision
RAVEN_CONFIG = {
'dsn': env.str('RAVEN_DSN', 'http://example.com'),
'release': RELEASE_ID,
}

INSTALLED_APPS += ('raven.contrib.django.raven_compat',)
Expand Down
4 changes: 2 additions & 2 deletions poradnia/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles i18n tinycontent_tags %}
{% load staticfiles i18n tinycontent_tags github_revision_tags %}
<!DOCTYPE html>
<html lang="pl ">
<head>
Expand Down Expand Up @@ -88,7 +88,7 @@
<div class="footer-right">Sieć Obywatelska - Watchdog Polska</div>
<div class="footer-left">
silnik: <a href="http://jawne.info.pl">jawne.info.pl</a> |
<a href="https://github.com/watchdogpolska/poradnia"><i class="fa fa-github"></i> Github</a>
<a href="https://github.com/watchdogpolska/poradnia"><i class="fa fa-github"></i> Github</a> - {% github_link %}
</div>
<div class="footer-center">Strona wykorzystuje cookies</div>
{% endtinycontent %}
Expand Down
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ monotonic==1.4
cached-property==1.3.1
django-braces==1.12.0
future==0.16
django-github-revision==0.0.3

0 comments on commit b64548d

Please sign in to comment.