Commit Graph

146 Commits

Author SHA1 Message Date
Jelmer Draaijer
8bf9a8c278 Add a default for REDIS_URL and add it as a variable to the settings 2024-10-21 22:10:42 +02:00
Alex Kanavos
8431c36225
Set allauth email subject prefix (#5278)
* change email subject prefix variable name in settings

* Update {{cookiecutter.project_slug}}/config/settings/production.py

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>

---------

Co-authored-by: Alex Kanavos <alexkanv@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2024-09-17 22:35:57 +01:00
Marlon Castillo
66ebc4ecaa
Remove storages from INSTALLED_APPS (#5361)
"storages" does not need to be added to INSTALLED_APPS: https://github.com/jschneier/django-storages/pull/547
2024-09-08 16:22:16 +01:00
Bruno Alla
8cf31c9317
Migrate from Collectfast to Collestfasta (#5172) 2024-07-09 09:11:15 +01:00
Alexandr Artemyev
310b803f29
Enhancing the security of cookies 2024-05-28 14:10:33 +05:00
Param Kapur
a0c2e1f31f
Rename SendInBlue ESP to Brevo (#5094)
* Update cookiecutter.json with Brevo for SendInBlue

* Change all occurrences of SendinBlue to Brevo
2024-05-27 14:46:12 +01:00
Bruno Alla
e9f029decf
Add noqa to ignore ruff false positive (#5068) 2024-05-13 22:26:26 +01:00
Jens Kaeske
88a9a15dbf
Fix handling of staticfile settings if cloud provider and whitenoise are selected (#5057)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2024-05-13 21:45:55 +01:00
Jelmer Draaijer
0fc4ea6165 Apply ruff to codebase 2024-02-13 11:59:55 +01:00
Jens Kaeske
bda89eaa06
Replace custom static & media storage classes by passing options in the STORAGES setting (#4803)
The custom cloud storages module has been deleted, and the settings have been updated to use the storage backend settings directly from each cloud provider's storage backend libraries. These changes have simplified the cloud storage configuration for each cloud provider in the production settings file.
2024-01-25 09:01:27 +00:00
Bruno Alla
1899b485e6
Migrate to the unified STORAGES setting added in Django 4.2 (#4477)
* changed settings.py vars to reflect django-4.2

* Fix code style

* removed overriding and if block in variable

* Fix code style

* Remove comment

* Add back default file storage

---------

Co-authored-by: Manan Bhavsar <mananbh9@live.com>
2024-01-24 15:32:44 +00:00
pyup.io bot
c27a9a8454
Update django-storages to 1.14 (#4564)
* Update django-storages from 1.13.2 to 1.14

* Update django-storages from 1.13.2 to 1.14

* Update django-storages from 1.13.2 to 1.14

* Migrate to new namespace for S3 Storage class

* Update extra require for django-storages

* Rename our subclasses for S3Storage to match parent naming

* Remove "Root" in our own storage class names

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-09-12 12:07:28 +01:00
tildebox
5610d854f5
Add missing trailing space in EMAIL_SUBJECT_PREFIX (#4434) 2023-07-10 17:20:36 +01:00
Bruno Alla
17fa459dc3
Fix inconsistent line length and move configs to pyproject.toml (#4276)
* Fix inconsistent line length and move config to pyproject.toml

Fix #2720

* Fix running tox with AUTOFIXABLE_STYLES

* Adjust some styles

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Adjust more styles

* Split isort and flake8 tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 15:43:04 +01:00
Adin Hodovic
3db64512c8
fix: Syntax for ignoring specific errors (#4250)
Noticed when started using pygrep-hooks. Syntax is noqa: code with a colon.
2023-04-03 10:34:45 -03:00
ghazi-git
fc081ce1fe
set SERVERS in production settings instead of base settings (#3609)
fixes https://github.com/cookiecutter/cookiecutter-django/issues/3593
2022-12-06 19:26:24 +00:00
Adin Hodovic
33af8e3988
Simplify production DATABASES setting to extend base definition (#3969) 2022-12-06 19:04:38 +00:00
rguptar
49b3bb8ffe
Add Azure Storage as an option to serve static and media files (#3967)
Fix https://github.com/cookiecutter/cookiecutter-django/issues/2301
2022-11-30 18:26:58 +00:00
Dani Hodovic
b623c0f956
Set AWS_S3_MAX_MEMORY_SIZE (#3810)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-10-19 20:15:25 +01:00
krati yadav
f1ef4f85ff
Removed SENDGRID_MERGE_FIELD_FORMAT from production.py (#3885) 2022-09-29 23:07:49 +01:00
Brandon Rumiser
e944a5ffe1
Mailjet default api url does not work out of the box (#3871) 2022-09-23 20:51:05 +01:00
Bruno Alla
ab4a32d558
Unify compressor, gulp and custom bootstrap options (#3535) 2022-03-20 15:00:40 +00:00
Bruno Alla
528a40989f
Fix cache dependency path for linter job in CI workflow (#3520)
* Fix cache dependency path for linter jon in CI workflow

* Reduce potential stylistic issues

* Reduce more potential stylistic issues
2022-01-07 22:26:56 +00:00
Bruno Alla
d0d6ebd892
Simplify TEMPLATES settings with APP_DIRS=True (#3488) 2021-12-24 19:35:09 +00:00
Andrew Chen Wang
8b35c83500
Lint production.py 2021-04-30 12:50:35 -04:00
Bruno Alla
c382894934 Fix pre-commit hook issues 2021-04-07 20:57:04 +01:00
vascop
fcbe4f5f86
Sentry Redis integration enabled by default in production. 2020-12-31 14:02:53 +01:00
Bruno Alla
cc97340c25
Merge pull request #2777 from foarsitter/sentry_environment_and_performance_tracing
Add environment and traces_sample_rate keyword to sentry_sdk.init
2020-09-02 11:51:41 +02:00
Bruno Alla
fe36bb3574
Merge pull request #2781 from pydanny/pyup-update-django-storages-1.9.1-to-1.10 2020-09-01 22:42:12 +02:00
Bruno Alla
53b4371c09 Remove deprecated setting from django-storages 2020-09-01 22:20:02 +02:00
Howie Zhao
2c82c4e1da
chore: update document link 2020-08-29 11:59:29 +08:00
Jelmer Draaijer
688739cb39 Add environment and traces_sample_rate keyword to sentry_sdk.init 2020-08-28 10:25:40 +02:00
Bruno Alla
7e87a92596 Add missing comment over settings 2020-08-14 08:12:55 +01:00
Andrew Chen Wang
d411ed9b6a
Update compressor not check whitenoise condition 2020-08-13 18:45:37 -04:00
Andrew Chen Wang
148d6c2e29
Added noqa F405 to undefined STATIC_ROOT - flake8
* This is in addition to the PR for compressor support with AWS S3 and Google Cloud buckets
2020-08-13 10:24:51 -04:00
Andrew Chen Wang
1cb2a0c98e
Set COMPRESS_ROOT to STATIC_ROOT for compressor
Django compressor also recommends the `COMPRESS_ROOT` be the STATIC_ROOT. This also makes sure the utils is set up properly so that the CACHE directory is actually publicly available (it'll be inside the static directory as a subdirectory).
2020-08-13 10:13:40 -04:00
Andrew Chen Wang
55d3d95333
Add STATICFILES_STORAGE with compressor support 2020-08-13 10:08:53 -04:00
Tano Abeleyra
70f6471c75 Allow to use a CDN with S3 2020-05-17 12:37:35 -03:00
Tano Abeleyra
95ca7ca291 Update django-redis links 2020-04-24 21:29:59 -03:00
Bruno Alla
56d5e271aa Remove isort exception in production config & fix issue 2020-03-23 21:46:14 +00:00
Bruno Alla
c4b1666707 Move storages classes into their own module 2020-03-23 21:46:14 +00:00
Bruno Alla
e97573dfda
Merge pull request #2435 from Andrew-Chen-Wang/master
Add all supported Anymail Providers
2020-03-16 19:59:25 +00:00
Bruno Alla
ca7fcb8f62
Merge pull request #2442 from jameswilliams1/fix-django-compressor-settings
Fix broken Django Compressor setup and enable static files minification
2020-03-16 19:53:02 +00:00
Andrew-Chen-Wang
5e1d1dd1c3 Fixed tests for mail providers 2020-03-14 15:09:05 -04:00
Andrew-Chen-Wang
3978890502 Adjusted readability
* Changed Vanilla/Plain Django-Anymail to Other SMTP
* Made Mailgun default again
* config/production.py adjusted if conditions according to @browniebroke
2020-03-14 13:43:37 -04:00
Andrew-Chen-Wang
9cf72849e6 Merged parent repo and configured refurbished tests 2020-03-14 13:29:08 -04:00
Bruno Alla
fab6b8724a Test isort flake8-isort & fix issues
fixes #2123
2020-03-03 20:04:31 +00:00
James Williams
89f85f1255
- configure compressor when not using s3
- update django start script to compress if using whitenoise and compress enabled

- add to contributors.rst
2020-02-28 15:59:14 +00:00
Andrew-Chen-Wang
ac884f3f75 Updated mail service docs
* Trying to appease the Black-linter god...
2020-02-06 20:18:49 -05:00
Andrew-Chen-Wang
0621929cd2 Removed None option for mail service
* This is necessary in order to be compatible with Django-allauth
2020-02-06 18:41:30 -05:00