File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
{{cookiecutter.repo_name}} Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ def make_secret_key(project_directory):
3939{% if cookiecutter .use_translation != 'True' - % }
4040# Remove the empty directory if we don't want to use rosetta
4141shutil .rmtree (PROJECT_DIR + '/src/core/management/' )
42+ shutil .rmtree (PROJECT_DIR + '/src/core/templates/admin/' )
43+ shutil .rmtree (PROJECT_DIR + '/src/core/templates/rosetta/' )
4244{% - endif % }
4345
4446{% if cookiecutter .use_react != 'True' - % }
Original file line number Diff line number Diff line change 11DJANGO_SECRET_KEY={SECRET_KEY}
22DB_PASSWORD={{cookiecutter.db_password}}
3- ALLOWED_HOSTS=
3+ ALLOWED_HOSTS={% if cookiecutter.use_translation == 'True' %}
44YANDEX_TRANSLATE_KEY=
5+ {%- endif %}
56EMAIL_HOST_USER={{cookiecutter.email_host_user}}
67EMAIL_HOST_PASSWORD={{cookiecutter.email_host_password}}
78STATIC_ROOT=/data/static/
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ <h1 class="cover-heading">{% trans "It worked!" %}</h1>
4141 </ div >
4242 </ div >
4343 </ div > {% endraw %}{% endif %}
44- < script src ="{% if cookiecutter.use_translation == 'True' %}{% raw %}/{{LANGUAGE_CODE}}{% endraw %}{% endif %}{% raw %} /jsi18n/ "> </ script >
45- {% compress js %}
46- {% endraw %}
47- {% if cookiecutter.use_react == 'True' -%}{% raw %} < script src ="{% static "react /app.js" %}"> </ script > {% endraw %}{% endif -%}{% raw %}
44+ < script src ="{% if cookiecutter.use_translation == 'True' %}{% raw %}/{{LANGUAGE_CODE}}{% endraw %}{% endif %}/jsi18n/ "> </ script >
45+ {% if cookiecutter.use_react == 'True' -%}{% raw %}
46+ {% compress js %}
47+ < script src ="{% static "react /app.js" %}"> </ script >
4848 {% endcompress %}
49+ {% endraw %}{% endif -%}
4950 </ body >
5051</ html >
51- {% endraw %}
You can’t perform that action at this time.
0 commit comments