mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-06-29 09:53:06 +03:00
Fix for tests
This commit is contained in:
parent
7c4135fb45
commit
2ea29d263d
|
@ -26,7 +26,7 @@ SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!')
|
||||||
|
|
||||||
EMAIL_PORT = 1025
|
EMAIL_PORT = 1025
|
||||||
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
|
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
|
||||||
EMAIL_HOST = 'mailhog'
|
EMAIL_HOST = env("EMAIL_HOST", default='mailhog')
|
||||||
{% else %}
|
{% else %}
|
||||||
EMAIL_HOST = 'localhost'
|
EMAIL_HOST = 'localhost'
|
||||||
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
||||||
|
|
|
@ -28,6 +28,10 @@ services:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
links:
|
links:
|
||||||
- postgres
|
- postgres
|
||||||
|
{% if cookiecutter.use_mailhog == 'y' %}
|
||||||
|
- mailhog
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if cookiecutter.use_pycharm == 'y' %}
|
{% if cookiecutter.use_pycharm == 'y' %}
|
||||||
pycharm:
|
pycharm:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -11,6 +11,7 @@ environment_variables:
|
||||||
SECRET_KEY: cj5^uos4tfCdfghjkf5hq$9$(@-79^e9&x$3vyf#igvsfm4d=+
|
SECRET_KEY: cj5^uos4tfCdfghjkf5hq$9$(@-79^e9&x$3vyf#igvsfm4d=+
|
||||||
CELERY_BROKER_URL: redis://localhost:16379
|
CELERY_BROKER_URL: redis://localhost:16379
|
||||||
DJANGO_EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
|
DJANGO_EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
|
||||||
|
EMAIL_HOST: localhost
|
||||||
window_size:
|
window_size:
|
||||||
width: 1024
|
width: 1024
|
||||||
height: 600
|
height: 600
|
||||||
|
|
Loading…
Reference in New Issue
Block a user