mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-22 19:56:41 +03:00
Fix entrypoint/.envs variables, theme rtd for docs
This commit is contained in:
parent
c722c8ea75
commit
9e913b2542
|
@ -7,14 +7,16 @@ set -o nounset
|
|||
|
||||
{% if cookiecutter.use_celery == 'y' %}
|
||||
# N.B. If only .env files supported variable expansion...
|
||||
export CELERY_BROKER_URL="${REDIS_URL}"
|
||||
# export CELERY_BROKER_URL="${REDIS_URL}"
|
||||
# Updated in .envs
|
||||
{% endif %}
|
||||
|
||||
if [ -z "${POSTGRES_USER}" ]; then
|
||||
base_postgres_image_default_user='postgres'
|
||||
export POSTGRES_USER="${base_postgres_image_default_user}"
|
||||
fi
|
||||
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
|
||||
#export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
|
||||
# Updated in .envs
|
||||
|
||||
postgres_ready() {
|
||||
python << END
|
||||
|
|
|
@ -46,6 +46,8 @@ author = "{{ cookiecutter.author_name }}"
|
|||
extensions = [
|
||||
"sphinx.ext.autodoc",
|
||||
"sphinx.ext.napoleon",
|
||||
"sphinx_rtd_theme",
|
||||
'sphinx.ext.todo',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
|
@ -61,7 +63,7 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = "alabaster"
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
|
|
Loading…
Reference in New Issue
Block a user