Commit Graph

387 Commits

Author SHA1 Message Date
masavini
1ed6d6e03b
VS Code Dev Container (#4198)
* 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>
2023-07-03 11:55:33 +02: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
pyup.io bot
ba9d73ce21
Update myst-parser from 1.0.0 to 2.0.0 (#4388) 2023-06-17 19:38:53 +01:00
pyup.io bot
34e97530de
Update sphinx-rtd-theme from 1.2.1 to 1.2.2 (#4375) 2023-06-07 17:14:04 +01:00
pyup.io bot
1be71b8b95
Update sphinx-rtd-theme from 1.2.0 to 1.2.1 (#4348) 2023-05-23 13:10:26 -03:00
dependabot[bot]
5bc3df7650
Upgrade to node v18 (#4294)
* 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>
2023-04-26 08:06:56 +01:00
pyup.io bot
50364f9d10
Update sphinx to 6.2.1 (#4292)
* Update sphinx from 6.2.0 to 6.2.1

* Update sphinx from 6.2.0 to 6.2.1
2023-04-25 18:49:21 +01:00
pyup.io bot
7d4dd98534
Update sphinx to 6.2.0 (#4285)
* Update sphinx from 6.1.3 to 6.2.0

* Update sphinx from 6.1.3 to 6.2.0
2023-04-24 07:28:46 +01:00
Birtibu
1a9d301550
Document how to add 3rd party packages with Docker (#4279)
* Update developing-locally-docker.rst

Add 3rd party python packages

* Update docs/developing-locally-docker.rst

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

* Update docs/developing-locally-docker.rst

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

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-18 20:42:15 +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
Bruno Alla
0dcc4c4b4c
Add more pre-commit hooks (#4266)
* 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
2023-04-15 12:15:15 +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
Jelmer
42c30dafcb
Upgrade Python to version 3.11 (Faster CPython) (#4256)
* 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>
2023-04-15 11:42:33 +01:00
Morten Kaae
f55b30bb29
Remove deprecated security setting (#4247)
* Remove deprecated setting

* Update documentation
2023-04-04 10:31:08 +01:00
pyup.io bot
c19957604a
Update myst-parser to 1.0.0 (#4197) 2023-03-07 20:40:54 +00:00
pyup.io bot
6e7355a8c9
Update myst-parser to 0.19.1 (#4193) 2023-03-04 18:57:53 +00:00
Bruno Alla
6e782bff33
Include contributing page to the docs (#4144)
* Add MyST parser

* Include contributing page to the docs
2023-03-04 18:45:25 +00:00
Arkadiusz Michał Ryś
06369bfd4c
Add option to serve media files locally using nginx (#2457)
* 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>

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-03-04 18:36:11 +00:00
pyup.io bot
9eb480f60f
Update sphinx to 6.1.3 (#4148)
* Update sphinx from 5.3.0 to 6.1.3

* Update sphinx from 5.3.0 to 6.1.3
2023-02-08 23:31:25 +00:00
pyup.io bot
aee68f3e8a
Update sphinx-rtd-theme from 1.1.1 to 1.2.0 (#4145) 2023-02-07 22:58:44 +00:00
duffn
1f300e0ca2
Add note about which service to request when running locally with Docker & Webpack or Gulp (#4130)
* Add note about running Webpack locally with Docker

* Add note about running Gulp locally with Docker
2023-02-05 10:00:28 +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
Patrick Tran
dfd8164ef8
Update postgres and redis to point to mini tiers (#4099)
* Update postgres and redis to point to mini tiers

* Update deployment-on-heroku.rst

* Update deployment-on-heroku.rst
2023-01-25 09:50:41 -03:00
Pamela Fox
470eb70069
Update Celery instructions (#4061)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-01-11 17:38:38 +00:00
Pamela Fox
66be5ceab4
Fix link, add non-Docker commands (#4036) 2023-01-06 17:48:39 +00:00
Omer-5
ed90ead15f
Improve documentation for Getting started with Docker (#4003)
Fix https://github.com/cookiecutter/cookiecutter-django/issues/3971
2022-12-13 21:32:57 +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
pyup.io bot
d1d6ee4dd7
Update sphinx-rtd-theme to 1.1.1 (#3935) 2022-11-06 11:24:07 +00:00
pyup-bot
9cc2a202d2 Update sphinx-rtd-theme from 1.0.0 to 1.1.0 2022-11-01 13:37:23 -07:00
Jelmer
4ea0e98f3f
Upgrade Python version from 3.9 to 3.10 (#3913) 2022-10-24 21:41:00 +01: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
pyup.io bot
0c98640a0b
Update sphinx to 5.3.0 (#3905) 2022-10-19 19:48:41 +01:00
pyup.io bot
4edbc804f6
Update sphinx to 5.2.3 (#3887) 2022-09-30 20:23:33 +01:00
pyup.io bot
68f21b6028
Update sphinx to 5.2.2 (#3884)
* Update sphinx from 5.2.1 to 5.2.2

* Update sphinx from 5.2.1 to 5.2.2
2022-09-27 22:07:21 +01:00
pyup.io bot
928836ee89
Update sphinx to 5.2.1 (#3879) 2022-09-26 14:11:30 +01:00
monosans
9cf280d343
Reload uvicorn on html file change (#3866) 2022-09-23 21:28:11 +01:00
Marcio Mazza
28a06b12af
Fix typo in docs (#3850) 2022-08-26 15:00:57 +01:00
pyup-bot
b1cea690b9 Update sphinx from 5.1.0 to 5.1.1 2022-07-26 16:55:57 -07:00
pyup.io bot
bb4012b6ce
Update sphinx to 5.1.0 (#3808) 2022-07-26 23:51:25 +01:00
pyup.io bot
6f351155de
Update sphinx to 5.0.2 (#3801) 2022-07-22 17:11:56 +01:00
pyup-bot
4e830b1575 Update sphinx from 5.0.0 to 5.0.1 2022-06-04 18:44:40 +01:00
pyup-bot
246f8a4361 Update sphinx from 4.5.0 to 5.0.0 2022-06-04 18:31:06 +01:00
Jimmy Gitonga
bc71a326da
Update postgres versions (#3712)
* REFACTOR: Update PostgreSQL versions that fix some security issues.

* CHORE: Update PostgreSQL versions that fix some security issues.
2022-05-16 11:39:19 +01:00
Bruno Alla
96b9b95af7
Add pyupgrade to pre-commit config (#3702)
* Add pyupgrade to pre-commit config

* Exclude hooks folder from pyupgrade

* Autofix: run pyupgrade

* Autofix: run pyupgrade on template files
2022-05-07 19:21:15 +01:00
pyup.io bot
a31a60eca5
Update sphinx to 4.5.0 (#3654) 2022-03-27 18:50:59 +01:00
Bruno Alla
dc8ad895bb Fix link, formatting & a typo 2022-03-20 15:43:37 +00:00
Bruno Alla
ab4a32d558
Unify compressor, gulp and custom bootstrap options (#3535) 2022-03-20 15:00:40 +00:00
Bruno Alla
bd12be3b38 Fix a typo in the docs 2022-03-19 18:37:48 +00:00
Cebrail Yılmaz
61f16e5224
Fix incorrect createdb instruction in documentation (#3606)
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-02-20 13:21:06 +00:00
Andrew Chen Wang
85ee3c921a
Change docs port to 9000 from 7000 (#3590)
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2022-02-13 12:49:05 +00:00