Make singlequotes double quotes

This commit is contained in:
genomics-geek 2019-06-03 08:22:18 -04:00
parent f22176690f
commit 68f8c82ac8
2 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ import os
# ({{ cookiecutter.project_slug }}/config/settings/base.py - 3 = {{ cookiecutter.project_slug }}/)
ROOT_DIR = environ.Path(__file__) - 3
APPS_DIR = ROOT_DIR.path('{{ cookiecutter.project_slug }}')
{ % if cookiecutter.js_task_runner == 'CreateReactApp' - %}
{ % if cookiecutter.js_task_runner == "CreateReactApp" - %}
REACT_APP_DIR = ROOT_DIR.path('frontend')
{%- endif %}
@ -78,7 +78,7 @@ THIRD_PARTY_APPS = [
'allauth.account',
'allauth.socialaccount',
'rest_framework',
{ % if cookiecutter.js_task_runner == 'CreateReactApp' - %}
{ % if cookiecutter.js_task_runner == "CreateReactApp" - %}
'corsheaders',
{%- endif %}
]
@ -134,7 +134,7 @@ AUTH_PASSWORD_VALIDATORS = [
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
{ % if cookiecutter.js_task_runner == 'CreateReactApp' - %}
{ % if cookiecutter.js_task_runner == "CreateReactApp" - %}
"corsheaders.middleware.CorsMiddleware", # SEE: https://github.com/ottoyiu/django-cors-headers#setup
{%- endif %}
"django.middleware.locale.LocaleMiddleware",
@ -154,7 +154,7 @@ STATIC_URL = "/static/"
# https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS
STATICFILES_DIRS = [
str(APPS_DIR.path('static')),
{ % if cookiecutter.js_task_runner == 'CreateReactApp' - %}
{ % if cookiecutter.js_task_runner == "CreateReactApp" - %}
os.path.join(str(REACT_APP_DIR.path('build')), 'static'),
{%- endif %}
]
@ -311,7 +311,7 @@ INSTALLED_APPS += ["compressor"]
STATICFILES_FINDERS += ["compressor.finders.CompressorFinder"]
{%- endif %}
{ % if cookiecutter.js_task_runner == 'CreateReactApp' - %}
{ % if cookiecutter.js_task_runner == "CreateReactApp" - %}
# django-cors-headers
# ------------------------------------------------------------------------------
# https://github.com/ottoyiu/django-cors-headers#cors_origin_allow_all

View File

@ -24,7 +24,7 @@
{%- endif %}
},
"engines": {
{% if cookiecutter.js_task_runner == 'CreateReactApp' %}
{% if cookiecutter.js_task_runner == "CreateReactApp" %}
"node": ">=9.11.1",
"npm": ">=5.6.0",
"yarn": ">=1.6.0"
@ -40,7 +40,7 @@
"dev": "gulp",
"build": "gulp generate-assets"
{% endif %}
{% if cookiecutter.js_task_runner == 'CreateReactApp' %}
{% if cookiecutter.js_task_runner == "CreateReactApp" %}
"heroku-prebuild": "cd frontend/ && yarn install && yarn build",
"heroku-postbuild": "cd ../"
{% endif %}