Commit 78242d10 authored by okhin's avatar okhin 🚴

Fixing the settings for the templates

parent b6c28c73
Pipeline #719 failed with stage
in 1 minute and 10 seconds
......@@ -13,3 +13,22 @@ job test python:
tags: [preprod]
only:
- master
job deploy:
environment:
preprod
variables:
GIT_DIR: '/srv/piphone/campaign/.git'
GIT_WORK_DIR: '/srv/piphone/campaign/'
script:
- git pull origin master
- source /srv/piphone/campaign/env/bin/activate
- pip install --upgrade pip
- python /srv/piphone/campaign/setup.py install
- python /srv/piphone/campaign/manage.py migrate
- python /srv/piphone/campaign/manage.py collectstatic
- python /srv/piphone/campaign/manage.py compilemessages
- touch /srv/piphone/campaign.ready
tags: [preprod]
only:
- master
......@@ -106,12 +106,15 @@ TEMPLATES = [
'APP_DIRS': True,
'OPTIONS': {
'debug': DEBUG,
}
},
{
'BACKEND': 'django.contrib.auth.context_processors.auth',
'OPTIONS': {
'debug': DEBUG,
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
]
}
},
]
......@@ -15,7 +15,7 @@ requires = [
setup(name='picampaign',
namespace_packages=['picampaign'],
version='0.0.2',
version='0.0.3',
description='PiPhone Campaign Manager.',
long_description=README,
classifiers=["Programming Language :: Python"],
......
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 to comment