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

View File

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