Commit Graph

15 Commits

Author SHA1 Message Date
Min ho Kim
62df724c8c Fix typo 2019-06-15 06:37:58 +10:00
Nikita Shupeyko
3f8aa26d0f
Group environment variables by the corresponding directories (#1295)
* Update generated project's .gitignore

* Post-gen gitignore .env/ and .env

* Fix linesep between gitignored entries

* Persist `.env/**/*` files into cookiecutter-django's VCS

* Rename .env/ to .envs/

* Reference the newly created .envs/**/.* files in local.yml

* Reference the newly created .envs/**/.* files in production.yml

* Delete .env.example

* Refactor post-gen-project.py

Closes #1299.

* Implement production-dotenv-files-to-dotenv-file merge script

* Create shared PyCharm Run Configuration for the automation script

* Randomize POSTGRES_PASSWORD in ./envs/(.local|.production)/.postgres

* Default POSTGRES_PASSWORD and POSTGRES_USER to random values

* Fix jinja linebreaks in local.yml

* Spaces in production.yml

* Fix post-merge leftovers & set DJANGO_ADMIN_URL automatically

* Prettify here and there

* Fix FileNotFoundError

* Leave a TODO in post_gen_hook.py

* Introduce keep_local_envs_in_vcs option

* Remove envs when not opted for

* Inline pre_gen_project.py if-condition

* Get rid of PROJECT_DIR_PATH in post_gen_project.py

* Clean up the docs

* Match copyright notices

* Document envs ins and outs
2018-03-08 15:56:15 +03:00
Bruno Alla
82dcd2d30c Simplify Mailgun settings
When creating a Mailgun add-on on Heroku, the app gets some environment
variables by default:

    MAILGUN_API_KEY
    MAILGUN_DOMAIN

However, the cookiecutter names do not match and requires a manual step
from the user deploying. It's used elsewhere but shouldn't harm the
other deployment methods to rename these variables.

While updating the docs I noticed a variable that appear unused
DJANGO_MAILGUN_SERVER_NAME so this removes it from the documentation.
2018-03-05 17:56:45 +00:00
Bruno Alla
baf08b2f5f Document Gunicorn worker concurrency 2018-03-05 17:30:13 +00:00
Reggie Riser
f7bd7a5814 Fixing leftovers from migration to Django 1.11 and Python 3.6. 2018-01-03 08:44:54 -05:00
Daniel Roy Greenfeld
6aced9ba73 Remove Python 2.7 support per #1129 (#1130)
* Remove Python 2.7 support per

* Remove Python 2.7 references

* Remove Python 2.7 references

* remove python 2 entirely
2017-04-21 12:31:45 -07:00
Rafael Laverde
4156a99b6a Docs: Add missing MAILGUN_SENDER_DOMAIN setting in pythonanywhere wsgi configuration. (#1075) 2017-03-13 18:18:14 -07:00
Audrey Roy Greenfeld
c72ac58300 Add missing string import 2017-02-13 10:39:43 -08:00
Sebastian Reyes Espinosa
e4d1f4dae6 An small pythonic approach to password (#949)
Providing a more pythonic line for password generation using for that the string content.
2017-02-13 10:37:36 -08:00
Delio Castillo
3d25befb3f Updates to anymail 0.5 and adds new config setting for MAILGUN_SENDER_DOMAIN 2016-09-22 11:42:16 -07:00
Harry
fee825e889 another formatting tweak 2016-04-25 17:38:45 +01:00
Harry
54503562f8 formatting tweak 2016-04-25 17:36:38 +01:00
Harry
1224ae9e5b fix a few typos and syntax errors 2016-04-25 17:33:42 +01:00
Harry
55faf7fd2c Update instructions for latest version of cookiecutter 2016-04-25 17:24:41 +01:00
Harry
0e979f3470 First cut of pythonanywhere deployment instructions. need updating for mailgun. 2016-04-25 15:47:13 +01:00