2021-12-08 21:05:19 +03:00
|
|
|
.. _template-options:
|
|
|
|
|
2015-10-14 22:59:14 +03:00
|
|
|
Project Generation Options
|
|
|
|
==========================
|
|
|
|
|
2021-12-08 21:05:19 +03:00
|
|
|
This page describes all the template options that will be prompted by the `cookiecutter CLI`_ prior to generating your project.
|
|
|
|
|
|
|
|
.. _cookiecutter CLI: https://github.com/cookiecutter/cookiecutter
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
project_name:
|
2018-03-05 13:54:35 +03:00
|
|
|
Your project's human-readable name, capitals and spaces allowed.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
project_slug:
|
2018-03-05 13:54:35 +03:00
|
|
|
Your project's slug without dashes or spaces. Used to name your repo
|
2015-10-14 22:59:14 +03:00
|
|
|
and in other places where a Python-importable version of your project name
|
|
|
|
is needed.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
description:
|
2018-03-08 15:56:15 +03:00
|
|
|
Describes your project and gets used in places like ``README.rst`` and such.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
author_name:
|
2018-03-08 15:56:15 +03:00
|
|
|
This is you! The value goes into places like ``LICENSE`` and such.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
email:
|
2018-03-05 13:54:35 +03:00
|
|
|
The email address you want to identify yourself in the project.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
domain_name:
|
2018-03-06 01:55:15 +03:00
|
|
|
The domain name you plan to use for your project once it goes live.
|
2018-03-05 13:54:35 +03:00
|
|
|
Note that it can be safely changed later on whenever you need to.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
version:
|
2018-03-05 13:54:35 +03:00
|
|
|
The version of the project at its inception.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
open_source_license:
|
2018-03-05 13:54:35 +03:00
|
|
|
A software license for the project. The choices are:
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-03-05 13:54:35 +03:00
|
|
|
1. MIT_
|
|
|
|
2. BSD_
|
|
|
|
3. GPLv3_
|
|
|
|
4. `Apache Software License 2.0`_
|
|
|
|
5. Not open source
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
timezone:
|
2018-03-08 15:56:15 +03:00
|
|
|
The value to be used for the ``TIME_ZONE`` setting of the project.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
windows:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured for development on Windows.
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_pycharm:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured for development with PyCharm_.
|
2015-10-14 22:59:14 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_docker:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use Docker_ and `Docker Compose`_.
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
postgresql_version:
|
2018-03-05 13:54:35 +03:00
|
|
|
Select a PostgreSQL_ version to use. The choices are:
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2021-11-22 12:26:46 +03:00
|
|
|
1. 14.1
|
|
|
|
2. 13.5
|
|
|
|
3. 12.9
|
|
|
|
4. 11.14
|
|
|
|
5. 10.19
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
js_task_runner:
|
2016-06-29 00:16:07 +03:00
|
|
|
Select a JavaScript task runner. The choices are:
|
|
|
|
|
2018-05-13 13:51:01 +03:00
|
|
|
1. None
|
|
|
|
2. Gulp_
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2019-04-14 19:43:05 +03:00
|
|
|
cloud_provider:
|
2019-04-16 19:23:41 +03:00
|
|
|
Select a cloud provider for static & media files. The choices are:
|
2019-04-14 19:43:05 +03:00
|
|
|
|
|
|
|
1. AWS_
|
2019-05-19 02:24:29 +03:00
|
|
|
2. GCP_
|
2019-05-19 02:23:48 +03:00
|
|
|
3. None
|
2019-04-14 19:43:05 +03:00
|
|
|
|
2019-05-27 20:16:51 +03:00
|
|
|
Note that if you choose no cloud provider, media files won't work.
|
|
|
|
|
2020-02-07 04:18:49 +03:00
|
|
|
mail_service:
|
|
|
|
Select an email service that Django-Anymail provides
|
|
|
|
|
2020-03-22 20:31:52 +03:00
|
|
|
1. Mailgun_
|
|
|
|
2. `Amazon SES`_
|
2020-02-07 04:18:49 +03:00
|
|
|
3. Mailjet_
|
|
|
|
4. Mandrill_
|
|
|
|
5. Postmark_
|
|
|
|
6. SendGrid_
|
|
|
|
7. SendinBlue_
|
|
|
|
8. SparkPost_
|
2020-03-22 20:31:52 +03:00
|
|
|
9. `Other SMTP`_
|
2020-02-07 04:18:49 +03:00
|
|
|
|
2020-03-24 22:40:14 +03:00
|
|
|
use_async:
|
|
|
|
Indicates whether the project should use web sockets with Uvicorn + Gunicorn.
|
|
|
|
|
2020-02-06 12:37:31 +03:00
|
|
|
use_drf:
|
|
|
|
Indicates whether the project should be configured to use `Django Rest Framework`_.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
custom_bootstrap_compilation:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should support Bootstrap recompilation
|
|
|
|
via the selected JavaScript task runner's task. This can be useful
|
|
|
|
for real-time Bootstrap variable alteration.
|
2017-08-01 20:06:07 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_compressor:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use `Django Compressor`_.
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_celery:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use Celery_.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_mailhog:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use MailHog_.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_sentry:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use Sentry_.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_whitenoise:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured to use WhiteNoise_.
|
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
use_heroku:
|
2018-03-05 13:54:35 +03:00
|
|
|
Indicates whether the project should be configured so as to be deployable
|
|
|
|
to Heroku_.
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2019-12-06 10:55:00 +03:00
|
|
|
ci_tool:
|
|
|
|
Select a CI tool for running tests. The choices are:
|
|
|
|
|
|
|
|
1. None
|
2020-03-22 20:31:52 +03:00
|
|
|
2. `Travis CI`_
|
|
|
|
3. `Gitlab CI`_
|
2020-09-21 13:20:24 +03:00
|
|
|
4. `Github Actions`_
|
2018-03-05 13:12:33 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
keep_local_envs_in_vcs:
|
2018-03-08 15:56:15 +03:00
|
|
|
Indicates whether the project's ``.envs/.local/`` should be kept in VCS
|
|
|
|
(comes in handy when working in teams where local environment reproducibility
|
2019-05-20 07:29:15 +03:00
|
|
|
is strongly encouraged).
|
2018-08-13 15:57:28 +03:00
|
|
|
Note: .env(s) are only utilized when Docker Compose and/or Heroku support is enabled.
|
2018-03-08 15:56:15 +03:00
|
|
|
|
2018-05-21 21:35:49 +03:00
|
|
|
debug:
|
2018-05-05 13:47:25 +03:00
|
|
|
Indicates whether the project should be configured for debugging.
|
|
|
|
This option is relevant for Cookiecutter Django developers only.
|
|
|
|
|
2016-06-29 00:16:07 +03:00
|
|
|
|
2018-03-05 13:54:35 +03:00
|
|
|
.. _MIT: https://opensource.org/licenses/MIT
|
|
|
|
.. _BSD: https://opensource.org/licenses/BSD-3-Clause
|
|
|
|
.. _GPLv3: https://www.gnu.org/licenses/gpl.html
|
|
|
|
.. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
.. _PyCharm: https://www.jetbrains.com/pycharm/
|
|
|
|
|
|
|
|
.. _Docker: https://github.com/docker/docker
|
|
|
|
.. _Docker Compose: https://docs.docker.com/compose/
|
|
|
|
|
|
|
|
.. _PostgreSQL: https://www.postgresql.org/docs/
|
|
|
|
|
|
|
|
.. _Gulp: https://github.com/gulpjs/gulp
|
|
|
|
|
2019-04-14 20:07:37 +03:00
|
|
|
.. _AWS: https://aws.amazon.com/s3/
|
2019-05-19 02:24:29 +03:00
|
|
|
.. _GCP: https://cloud.google.com/storage/
|
2019-04-14 20:07:37 +03:00
|
|
|
|
2020-03-22 20:31:52 +03:00
|
|
|
.. _Amazon SES: https://aws.amazon.com/ses/
|
2020-02-07 04:18:49 +03:00
|
|
|
.. _Mailgun: https://www.mailgun.com
|
|
|
|
.. _Mailjet: https://www.mailjet.com
|
|
|
|
.. _Mandrill: http://mandrill.com
|
|
|
|
.. _Postmark: https://postmarkapp.com
|
|
|
|
.. _SendGrid: https://sendgrid.com
|
|
|
|
.. _SendinBlue: https://www.sendinblue.com
|
|
|
|
.. _SparkPost: https://www.sparkpost.com
|
2020-03-22 20:31:52 +03:00
|
|
|
.. _Other SMTP: https://anymail.readthedocs.io/en/stable/
|
2020-02-07 04:18:49 +03:00
|
|
|
|
2020-02-06 12:37:31 +03:00
|
|
|
.. _Django Rest Framework: https://github.com/encode/django-rest-framework/
|
|
|
|
|
2018-03-05 13:54:35 +03:00
|
|
|
.. _Django Compressor: https://github.com/django-compressor/django-compressor
|
2018-03-05 13:12:33 +03:00
|
|
|
|
2015-10-14 22:59:14 +03:00
|
|
|
.. _Celery: https://github.com/celery/celery
|
2018-03-05 13:54:35 +03:00
|
|
|
|
2015-11-18 14:16:25 +03:00
|
|
|
.. _MailHog: https://github.com/mailhog/MailHog
|
2018-03-05 13:54:35 +03:00
|
|
|
|
2015-10-14 22:59:14 +03:00
|
|
|
.. _Sentry: https://github.com/getsentry/sentry
|
2018-03-05 13:54:35 +03:00
|
|
|
|
|
|
|
.. _WhiteNoise: https://github.com/evansd/whitenoise
|
|
|
|
|
2016-06-29 00:16:07 +03:00
|
|
|
.. _Heroku: https://github.com/heroku/heroku-buildpack-python
|
2018-03-05 13:54:35 +03:00
|
|
|
|
2018-03-05 13:12:33 +03:00
|
|
|
.. _Travis CI: https://travis-ci.org/
|
2019-12-06 10:55:00 +03:00
|
|
|
|
|
|
|
.. _GitLab CI: https://docs.gitlab.com/ee/ci/
|
|
|
|
|
2020-09-21 13:20:24 +03:00
|
|
|
.. _Github Actions: https://docs.github.com/en/actions
|