mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 21:20:16 +03:00
Merge pull request #12 from qwerrrqw/ruff/redis-TLS-support
Change import ssl settings to conditional
This commit is contained in:
commit
8cf6e72d57
|
@ -2,10 +2,13 @@
|
||||||
"""Base settings to build other settings files upon."""
|
"""Base settings to build other settings files upon."""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import ssl
|
|
||||||
|
|
||||||
import environ
|
import environ
|
||||||
|
|
||||||
|
{% if cookiecutter.use_celery == 'y' %}
|
||||||
|
import ssl
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
|
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
|
||||||
# {{ cookiecutter.project_slug }}/
|
# {{ cookiecutter.project_slug }}/
|
||||||
APPS_DIR = BASE_DIR / "{{ cookiecutter.project_slug }}"
|
APPS_DIR = BASE_DIR / "{{ cookiecutter.project_slug }}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user