#python venv
py_env
-env/prod.env
+prod.env
ALLOWED_HOSTS = ['localhost', 'crfpa.dockdev.pilotsystems.net',
'staging.docker.e-learning.crfpa.pre-barreau.parisson.com',
+ 'e-learning.crfpa.pre-barreau.com',
]
JAZZMIN_SETTINGS = {
# -*- coding: utf-8 -*-
import os
-import debug_toolbar
from django.conf.urls import include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
DEBUG_ENV = os.environ.get('DEBUG') == 'True'
+if DEBUG_ENV:
+ import debug_toolbar
+
urlpatterns = [
# Example:
# (r'^sandbox/', include('sandbox.foo.urls')),
-DEBUG=True
+DEBUG=False
DB_PORT=5432
DB_HOST=postgres
-POSTGRES_PASSWORD=mysecretpassword
+POSTGRES_PASSWORD=EtOdlerlOt8ob
POSTGRES_DATABASE=teleforma
POSTGRES_USER=teleforma
env_file:
- env/prod.env
+ postgres:
+ image: postgres:13
+ env_file:
+ - env/prod.env
volumes:
app: