Commit Graph

299 Commits

Author SHA1 Message Date
quroom
f79c89d928
Add options to reload django when file changes in windows docker (#4971)
* Add options to reload django when file changes in windows docker

* Fix Reloader interval as default and make code with indent to be only in docker
2024-04-16 19:23:05 +01:00
JAEGYUN JUNG
94269f8c7f
Add a prefix setting so that swagger tags are generated in a readable way (#4975)
* feat: Add a prefix setting so that swagger tags are generated in a readable way

* feat: Change `auth-token` URLs
2024-04-16 13:18:05 +01:00
Bruno Alla
8f2b894176
Merge branch 'master' into allauth
# Conflicts:
#	{{cookiecutter.project_slug}}/requirements/base.txt
2024-02-24 18:03:38 +01:00
Jelmer Draaijer
0fc4ea6165 Apply ruff to codebase 2024-02-13 11:59:55 +01:00
Jelmer Draaijer
44ca412dc1 Enable allauth.mfa for two-factor authentication 2024-02-08 16:52:16 +01:00
Jelmer Draaijer
e87b6fad33 'webpack_loader.loader' module has been renamed to 'webpack_loader.loaders' 2024-01-28 12:38:24 +01:00
pyup.io bot
6301fcc603
Update black to 24.1.0 (#4806)
* Update black from 23.12.1 to 24.1.0

* Update black from 23.12.1 to 24.1.0

* Update black pre-commit hooks

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

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

* Fix a few styling issues for black v24

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-26 10:49:52 +00: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
Michael V. Battista
4bb612f83e
Update allauth settings documentation links (#4769)
* 💡 Update allauth settings documentation links

* Apply suggestions from code review

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2024-01-09 18:56:10 +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
pyup.io bot
e389c0b554
Update django-allauth to 0.56.0 (#4571)
* Update django-allauth from 0.55.2 to 0.56.0

* Add required allauth middleware

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-09-07 20:19:19 +01:00
Vageeshan Mankala
73137e1764
Replace Mailhog with Mailpit (#4551)
* modifying cookiecutter.json with new config

* updated docker image and its local settings

* replacing  use_mailhog conditions

* replacing use_mailhog condition in docs

* Updating docs with mailpit
2023-09-06 20:41:01 +01:00
Bruno Alla
c67f5ee27c
Add French translations (#4454) 2023-08-28 19:09:54 +01:00
itisnotyourenv
b117f003fb
Change MEDIA_URL to an absolute URL in tests (#4460)
* fixture for changing media url

* Customise MEDIA_URL setting instead of using fixture

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-08-28 19:02:09 +01:00
Bruno Alla
de2f108ec2
Fix code style 2023-07-12 11:03:05 +01:00
tildebox
5610d854f5
Add missing trailing space in EMAIL_SUBJECT_PREFIX (#4434) 2023-07-10 17:20:36 +01:00
Will Gordon
397100dcab
Allow django-admin to optionally use django-allauth login workflow (#1921)
* Allow django-admin to optionally use django-allauth login workflow

* Fix mypy and add a comment to allauth documentation

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-06-30 10:50:20 +01:00
Matheus Jardim Bernardes
72887ed673
add pt_BR .po file (#4367)
* add pt_BR .po file

* add ptBR strings

* update docs

* add README.rst info for i18n

* Update {{cookiecutter.project_slug}}/locale/pt_BR/LC_MESSAGES/django.po

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

---------

Co-authored-by: Matheus Jardim <matheus.jardim@conceptu.ind.br>
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
2023-06-07 09:50:30 +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
Andrew Chen Wang
1783257ed3
Add username_type option (#3958)
* Add username_type option

* Update docs

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Fix errors and lint

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Try linting again

* Try linting again

* Handle signup

* Fix url reverse in template

* Fix migration file

* Remove extra line in factories

* E2E tests for email username

* Fix style in users api views and serializers

* Fix style in users api views and serializers

* Add conditions for fields in UserAdminCreationForm

* Consistent Jinja tag conditions

* Fix more empty lines issues

* Tweak options order

* Test username email

* Fix code style

* Fix kwargs to reverse user details view

* Remove comment in template

* Fix error messages dict in user form

* Fix line wrapping

* Move custom manager into a separate module and add tests

---------

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:53:15 +01:00
Morten Kaae
f55b30bb29
Remove deprecated security setting (#4247)
* Remove deprecated setting

* Update documentation
2023-04-04 10:31:08 +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
Bruno Alla
4080e9a86d
Fix django-webpack-loader setup when running tests (#4128)
* Add an integration test

This should cover the problem raised for webpack loader issues

* Add a DummyWebpackLoader for running tests

* Replace DummyWebpackLoader by the one from webpack_loader package

* Fix post-gen hook

* Remove integration test
2023-02-06 16:16:48 +00:00
Bruno Alla
cbb0e19de7
Add Webpack support (#3623)
* Add support for Webpack as frontend pipeline

* Rename CI jobs

* Fix a couple of issues with Webpack + Docker

* Don't include Boostrap CSS from CDN with Webpack

* Rename variable

* Set publicPath in prod webpack config

* Fix removal of SASS files in post-gen hooks

* Add Webpack to readme usage section

* Run Django + Webpack dev server concurrently without Docker

* Fix async runserver command with Gulp/Webpack

* Upgrade django-webpack-loader to 1.5.0

* Pass variables required by Webpack at build time

* Upgrade django-webpack-loader to 1.7.0

* Add missing condition

* Add support for Azure Storage + Webpack

* Whitespaces

* Rename ROOT_DIR -> BASE_DIR

* Rename jobs

* Bump django-webpack-loader to latest

* Document limitation of Docker + Webpack + no Whitenoise

* Update section on custom Bootstrap compilation in generated readme
2023-01-29 12:12:12 +00:00
Bruno Alla
977ffd91a3
Remove BrokenLinkEmailsMiddleware (#4112) 2023-01-29 11:45:13 +00:00
tildebox
70014c2b45
Rename ROOT_DIR to BASE_DIR (#4086)
Co-authored-by: example <example@example.com>
Fix https://github.com/cookiecutter/cookiecutter-django/issues/4075
2023-01-25 22:55:08 +00:00
Thomas Booij
ebcee95c8b
Fix typo on the test settings (#4049) 2023-01-04 12:33:02 -03:00
Dani Hodovic
93c0769516
Retry when trying to store a Celery result in backend (#3996)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2022-12-21 14:39:54 +00: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
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