* decontainer setup
* update
* fix typo
* keep .envs
* add info
* typo
* minor fixes
* keep compose/production
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add isort and lint
* choose editor and configure devcontainer
* choose editor and configure devcontainer
* add ssh client
* Remove isort arguments duplicated with base config
* End of file
* Only keep black as code formatter
* Add note about black not being accepted as formatter in devcontainer
* Avoid empty lines in devcontainer.json
* Move bash_history into .devcontainer folder
* Remove .prettierignore file
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* 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>
* Populate user name field in social auth
* Add docstring for populate_user
* Fix missing def
* Fix missing def
* Add some type hints to the SocialAccountAdapter class
---------
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Remove prettier webpack in pre-commit
* Update {{cookiecutter.project_slug}}/.pre-commit-config.yaml
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* Tweak vertical spacing
---------
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Update readme on internationalization
* Run compilemessages when building production image
* Run compilemessages when deploying to Heroku
* Always keep Heroku post-compile hooks
* Add empty po file for en-US language
* Update instructions for Docker
* Update default po file
* Convert locale readme to markdown and expand a bit the instructions
* Don't compile translations for 3rd party packages
* Use simplified settings & set env variables for compiling translations
* Update README for translations
* Improve metadata for Brazilian Portuguese translations
* Fix condition for django compressor on Heroku
* Fix condition for Django Compressor
This reverts commit f93a9f78d9
In #4255, `runserver_plus` was replaced by `runserver` due to some bugs in django-extensions, preventing us to upgrade Django.
In #4372, django-extensions was upgraded to a version with a fix, so we can go back to using `runserver_plus`.
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update django-anymail from 9.2 to 10.0
* Update the 'extra' for Amazon SES
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Update django-anymail from 9.1 to 9.2
* Bump node in /{{cookiecutter.project_slug}}/compose/local/node
Bumps node from 16-bullseye-slim to 18-bullseye-slim.
---
updated-dependencies:
- dependency-name: node
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update to node 18 in prod Dockerfile
* Update to node 18 in package.json
* Update node version in CI
* Update node version in documentation
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* 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>
* Add more hooks from pre-commit-hooks repo
* Add pre-commit hook for prettier
* Format with prettier
* Remove check-docstring-first hook
* Run prettier in the template
* Tweak formatting of dependabot file
* Fix formatting of GitHub files for prettier
* More format fixes of ci.yml
* 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>
* Upgrade Python to version 3.11 (Faster CPython)
* Update pyupgrade config for Python 3.11
* Update tox env to Python 3.11
* Update to latest Python 3.11.3
* Add a note about lack of support in PythonAnywhere
* Rephrase note
* Fix casing
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* Upgrade to Django 4.1
* Bump django-environ back to 0.10.0
---------
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Replace runserver_plus with runserver since it is not compatible with django >= 4.1
* Replace runserver_plus with runserver in post_gen_hooks
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Add option to serve media files locally using nginx
* Fix nginx media location and storage issue
* Fix traefik django-media typo
* Add certresolver property to web-media-router
* Add trailing slash in nginx configuration to avoid path traversal exploits
* Remove autoindexing from nginx configuration so nginx uses its default off setting
* Use nginx to serve media files if cloud provider is None
* Add back warning about lack of media files without Docker or Cloud providers
* Update documentation
* Fix typos and rephrase
Co-authored-by: Arkadiusz Ryś <arkadiusz.michal.rys@gmail.com>
* Change Traefik media router rule generation to force priority
The web-secure-router could end up having priority over the web-media-router when the www subdomain was used.
This fix adds the www subdomain to the web-media-router if it's also present in the web-secure-router rule.
Traefik looks at the length of rules to determine priority when no explicit priority is set.
The web-media-router needs to always have priority over the web-secure-router in order for the media files to be served.
* Add space to Traefik rule
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>