Commit Graph

270 Commits

Author SHA1 Message Date
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
Fábio C. Barrionuevo da Luz
9cf0d7561c
Merge pull request #3961 from adinhodovic/celery-send-sent-task-event
feat(celery): Enable sending the sent task event by default
2022-11-22 21:58:31 -03:00
Andrew Chen Wang
b5ad2fc232
Remove USE_L10N due to deprecation (#3960) 2022-11-22 22:51:31 +00:00
adinhodovic
de48e31517 feat(celery): Enable sending the sent task event by default 2022-11-22 20:28:52 +01:00
adinhodovic
7d517dc677 feat(celery): Send task events for Celery by default
Is useful for e.g Flower and Celery-exporter
2022-11-22 20:08:02 +01:00
Dani Hodovic
ca82618526
Store extended Celery task attributes in backend (#3855) 2022-11-06 12:40:16 +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
Sebastian Reyes Espinosa
b2b082d8d8
Fix warning from django-coverage-plugin in tests (#3790)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-07-22 00:06:35 +01:00
Bruno Alla
91c931273c
Update domain for Celery docs (#3663) 2022-04-01 17:32:05 +01:00
Bruno Alla
ab4a32d558
Unify compressor, gulp and custom bootstrap options (#3535) 2022-03-20 15:00:40 +00:00
ghazi-git
c22f2c7e9e
Fix Swagger schema API endpoint & add a test for it (#3592)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-02-16 12:25:32 +00:00
ghazi-git
ca5411af9a
fix typo in servers settings for drf-spectacular
update the local dev server url to use http instead of https
2022-02-15 15:52:20 +01:00
Ryan Fitch
c76b413d91
Fixed some typos in drf-spectacular description and comments (#3579) 2022-02-08 19:36:36 +00:00
Bruno Alla
150e1d8bed
Update black to 22.1.0 (#3572)
Co-authored-by: pyup-bot <github-bot@pyup.io>
2022-02-07 15:40:53 +00:00
Vikas Yadav
721b86723c
Add swagger API documentation when DRF is enabled (#3536)
* Adds swagger api documentation when drf is enabled

Changes
* Integrate drf-spectacular module
* Added routes and tests for swagger-ui

* Removes swagger ui tests when drf is not enabled

* Changes url names and documentation title

* Apply suggestions from code review

Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>

* Fixes typos and linting issues

* Update domain in swagger description

Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>

Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-01-19 18:14:36 +00:00
mpoli
9f8820241f
Add UserSignupForm and UserSocialSignupForm (#3515)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-01-13 18:38:35 +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
Will Gordon
785df85c4d
Hides 'sign up' elements when ACCOUNT_ALLOW_REGISTRATION is disabled (#1914)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-12-27 11:37:33 +00:00
Bruno Alla
d0d6ebd892
Simplify TEMPLATES settings with APP_DIRS=True (#3488) 2021-12-24 19:35:09 +00:00
Bruno Alla
315ead02e4
Upgrade to Django 3.2 (#3425)
* Upgrade to Django 3.2

* Set DEFAULT_AUTO_FIELD setting

* Use auto AppConfig discovery for users app
2021-11-24 08:05:53 +00:00
Arnav Choudhury
0fc1f6804f
Removed unnecessary custom context processor exposing the DEBUG Template Context Variable (#3042) 2021-11-22 13:56:09 +00:00
Andrew-Chen-Wang
ba2f423600 Add bootstrap5 support + drop IE support
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:10:18 -04: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
Bruno Alla
4acba3dddd
Merge pull request #2865 from lcd1232/patch-1 2021-02-22 20:26:05 +00:00
Dani Hodovic
977e033352
refactor: remove default cache settings in test.py
It's LocMemCache by default, there is no need to specify this in test.py
```python
django.core.cache.backends.locmem.LocMemCache
```

https://docs.djangoproject.com/en/dev/ref/settings/#caches
2021-02-21 19:25:32 +02:00
Bruno Alla
9969f8fa0d
Handle error if node hasn't started yet 2021-01-28 09:19:14 +00:00
Bruno Alla
26a424e09c Merge branch 'master' into patch-1 2021-01-24 21:49:00 +00:00
vascop
fcbe4f5f86
Sentry Redis integration enabled by default in production. 2020-12-31 14:02:53 +01:00
lcd1232
f5bfa97f6e
Update {{cookiecutter.project_slug}}/config/settings/local.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2020-10-04 19:31:09 +03:00
lcd1232
86e9a90d4e
Add node to INTERNAL_IPS 2020-09-30 11:14:21 +03: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
Aadith PM
ff69126087
Update {{cookiecutter.project_slug}}/config/settings/base.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2020-07-20 11:21:06 -05:00
Aadith PM
20986bafb7 Fix style error with quotes 2020-07-18 20:37:03 -05:00
Aadith PM
eafe74262a Added django-cors-headers setup steps to base settings 2020-07-18 19:53:55 -05:00
Tano Abeleyra
70f6471c75 Allow to use a CDN with S3 2020-05-17 12:37:35 -03:00
Fabio C. Barrionuevo da Luz
1247f06395 Make sure to resolve symbolic links, uses an absolute path in ROOT_DIR
and raise an error if the path does not exist by using the "resolve" method.

Use "parent.parent.parent" instead of "parents[2]"
2020-04-30 11:33:46 -03:00