mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
a0c2e1f31f
* Update cookiecutter.json with Brevo for SendInBlue * Change all occurrences of SendinBlue to Brevo
202 lines
5.8 KiB
ReStructuredText
202 lines
5.8 KiB
ReStructuredText
.. _template-options:
|
|
|
|
Project Generation Options
|
|
==========================
|
|
|
|
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
|
|
|
|
project_name:
|
|
Your project's human-readable name, capitals and spaces allowed.
|
|
|
|
project_slug:
|
|
Your project's slug without dashes or spaces. Used to name your repo
|
|
and in other places where a Python-importable version of your project name
|
|
is needed.
|
|
|
|
description:
|
|
Describes your project and gets used in places like ``README.rst`` and such.
|
|
|
|
author_name:
|
|
This is you! The value goes into places like ``LICENSE`` and such.
|
|
|
|
email:
|
|
The email address you want to identify yourself in the project.
|
|
|
|
username_type:
|
|
The type of username you want to use in the project. This can be either
|
|
``username`` or ``email``. If you choose ``username``, the ``email`` field
|
|
will be included. If you choose ``email``, the ``username`` field will be
|
|
excluded. It is best practice to always include an email field, so there is
|
|
no option for having just the ``username`` field.
|
|
|
|
domain_name:
|
|
The domain name you plan to use for your project once it goes live.
|
|
Note that it can be safely changed later on whenever you need to.
|
|
|
|
version:
|
|
The version of the project at its inception.
|
|
|
|
open_source_license:
|
|
A software license for the project. The choices are:
|
|
|
|
1. MIT_
|
|
2. BSD_
|
|
3. GPLv3_
|
|
4. `Apache Software License 2.0`_
|
|
5. Not open source
|
|
|
|
timezone:
|
|
The value to be used for the ``TIME_ZONE`` setting of the project.
|
|
|
|
windows:
|
|
Indicates whether the project should be configured for development on Windows.
|
|
|
|
editor:
|
|
Select an editor to use. The choices are:
|
|
|
|
1. None
|
|
2. PyCharm_
|
|
3. `VS Code`_
|
|
|
|
use_docker:
|
|
Indicates whether the project should be configured to use Docker_, `Docker Compose`_ and `devcontainer`_.
|
|
|
|
postgresql_version:
|
|
Select a PostgreSQL_ version to use. The choices are:
|
|
|
|
1. 16
|
|
2. 15
|
|
3. 14
|
|
4. 13
|
|
5. 12
|
|
|
|
cloud_provider:
|
|
Select a cloud provider for static & media files. The choices are:
|
|
|
|
1. AWS_
|
|
2. GCP_
|
|
3. Azure_
|
|
4. None
|
|
|
|
If you choose no cloud provider and docker, the production stack will serve the media files via an nginx Docker service. Without Docker, the media files won't work.
|
|
|
|
mail_service:
|
|
Select an email service that Django-Anymail provides
|
|
|
|
1. Mailgun_
|
|
2. `Amazon SES`_
|
|
3. Mailjet_
|
|
4. Mandrill_
|
|
5. Postmark_
|
|
6. SendGrid_
|
|
7. `Brevo (formerly SendinBlue)`_
|
|
8. SparkPost_
|
|
9. `Other SMTP`_
|
|
|
|
use_async:
|
|
Indicates whether the project should use web sockets with Uvicorn + Gunicorn.
|
|
|
|
use_drf:
|
|
Indicates whether the project should be configured to use `Django Rest Framework`_.
|
|
|
|
frontend_pipeline:
|
|
Select a pipeline to compile and optimise frontend assets (JS, CSS, ...):
|
|
|
|
1. None
|
|
2. `Django Compressor`_
|
|
3. `Gulp`_
|
|
4. `Webpack`_
|
|
|
|
Both Gulp and Webpack support Bootstrap recompilation with real-time variables alteration.
|
|
|
|
use_celery:
|
|
Indicates whether the project should be configured to use Celery_.
|
|
|
|
use_mailpit:
|
|
Indicates whether the project should be configured to use Mailpit_.
|
|
|
|
use_sentry:
|
|
Indicates whether the project should be configured to use Sentry_.
|
|
|
|
use_whitenoise:
|
|
Indicates whether the project should be configured to use WhiteNoise_.
|
|
|
|
use_heroku:
|
|
Indicates whether the project should be configured so as to be deployable
|
|
to Heroku_.
|
|
|
|
ci_tool:
|
|
Select a CI tool for running tests. The choices are:
|
|
|
|
1. None
|
|
2. `Travis CI`_
|
|
3. `Gitlab CI`_
|
|
4. `Github Actions`_
|
|
5. `Drone CI`_
|
|
|
|
keep_local_envs_in_vcs:
|
|
Indicates whether the project's ``.envs/.local/`` should be kept in VCS
|
|
(comes in handy when working in teams where local environment reproducibility
|
|
is strongly encouraged).
|
|
Note: .env(s) are only utilized when Docker Compose and/or Heroku support is enabled.
|
|
|
|
debug:
|
|
Indicates whether the project should be configured for debugging.
|
|
This option is relevant for Cookiecutter Django developers only.
|
|
|
|
|
|
.. _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/
|
|
.. _VS Code: https://github.com/microsoft/vscode
|
|
|
|
.. _Docker: https://github.com/docker/docker
|
|
.. _Docker Compose: https://docs.docker.com/compose/
|
|
.. _devcontainer: https://containers.dev/
|
|
|
|
.. _PostgreSQL: https://www.postgresql.org/docs/
|
|
|
|
.. _Gulp: https://github.com/gulpjs/gulp
|
|
.. _Webpack: https://webpack.js.org
|
|
|
|
.. _AWS: https://aws.amazon.com/s3/
|
|
.. _GCP: https://cloud.google.com/storage/
|
|
.. _Azure: https://azure.microsoft.com/en-us/products/storage/blobs/
|
|
|
|
.. _Amazon SES: https://aws.amazon.com/ses/
|
|
.. _Mailgun: https://www.mailgun.com
|
|
.. _Mailjet: https://www.mailjet.com
|
|
.. _Mandrill: http://mandrill.com
|
|
.. _Postmark: https://postmarkapp.com
|
|
.. _SendGrid: https://sendgrid.com
|
|
.. _Brevo (formerly SendinBlue): https://www.brevo.com
|
|
.. _SparkPost: https://www.sparkpost.com
|
|
.. _Other SMTP: https://anymail.readthedocs.io/en/stable/
|
|
|
|
.. _Django Rest Framework: https://github.com/encode/django-rest-framework/
|
|
|
|
.. _Django Compressor: https://github.com/django-compressor/django-compressor
|
|
|
|
.. _Celery: https://github.com/celery/celery
|
|
|
|
.. _Mailpit: https://github.com/axllent/mailpit
|
|
|
|
.. _Sentry: https://github.com/getsentry/sentry
|
|
|
|
.. _WhiteNoise: https://github.com/evansd/whitenoise
|
|
|
|
.. _Heroku: https://github.com/heroku/heroku-buildpack-python
|
|
|
|
.. _Travis CI: https://travis-ci.org/
|
|
|
|
.. _GitLab CI: https://docs.gitlab.com/ee/ci/
|
|
|
|
.. _Drone CI: https://docs.drone.io/pipeline/overview/
|
|
|
|
.. _Github Actions: https://docs.github.com/en/actions
|