mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 05:04:25 +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
|
||||
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
|
||||
EMAIL_HOST = 'mailhog'
|
||||
EMAIL_HOST = env("EMAIL_HOST", default='mailhog')
|
||||
{% else %}
|
||||
EMAIL_HOST = 'localhost'
|
||||
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
|
||||
|
|
|
@ -28,6 +28,10 @@ services:
|
|||
- "8000:8000"
|
||||
links:
|
||||
- postgres
|
||||
{% if cookiecutter.use_mailhog == 'y' %}
|
||||
- mailhog
|
||||
{% endif %}
|
||||
|
||||
{% if cookiecutter.use_pycharm == 'y' %}
|
||||
pycharm:
|
||||
build:
|
||||
|
|
|
@ -11,6 +11,7 @@ environment_variables:
|
|||
SECRET_KEY: cj5^uos4tfCdfghjkf5hq$9$(@-79^e9&x$3vyf#igvsfm4d=+
|
||||
CELERY_BROKER_URL: redis://localhost:16379
|
||||
DJANGO_EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
|
||||
EMAIL_HOST: localhost
|
||||
window_size:
|
||||
width: 1024
|
||||
height: 600
|
||||
|
|
Loading…
Reference in New Issue
Block a user