Commit 5d346bc2 by Őry Máté

django: configure release dynamically

parent cc5f5776
# coding=utf8 # coding=utf8
# Django base settings for cloud project. # Django base settings for cloud project.
from os.path import join, abspath, dirname
import subprocess
from django.core.exceptions import ImproperlyConfigured
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
...@@ -250,7 +254,7 @@ firewall_settings = { ...@@ -250,7 +254,7 @@ firewall_settings = {
EMAIL_HOST='152.66.243.92' # giccero ipv4 EMAIL_HOST='152.66.243.92' # giccero ipv4
CLOUD_URL='https://cloud.ik.bme.hu/' CLOUD_URL='https://cloud.ik.bme.hu/'
RELEASE='master' RELEASE = subprocess.check_output(['git', 'rev-parse', '--symbolic-full-name', '--abbrev-ref', 'HEAD'])
try: try:
from cloud.local_settings import * from cloud.local_settings import *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment