Commit Graph

414 Commits

Author SHA1 Message Date
farwill
5916cf0d30
Fix start command for docs (#4978) 2024-04-09 14:53:08 +01:00
Patrick Zhang
349679ef33
Use main over master for branch name in deployment-on-heroku instruction 2024-04-02 02:11:25 +08:00
Abe Hanoka
bca7d02f0a
Add instruction for adding a django app (#4944)
* feat(docs): add instruction for adding a django app

Following the the steps outlined in:
https://github.com/cookiecutter/cookiecutter-django/discussions/4339#discussioncomment-5922166
this PR adds a "Creating Your First Django App" section to the docs
breifly expalins the file structure and outlines the steps to add a new
app.

* Update docs/developing-locally.rst

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

* Update docs/developing-locally.rst

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

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2024-03-29 09:48:14 +00:00
Nix Siow
ad6faa617d
Add PostgreSQL 16, remove Postgres 10 and 11 (#4935)
Add support for PostgreSQL 16 and remove support for version 10 & 11
2024-03-21 14:00:32 +01:00
Jelmer
3b3cf416f3
Merge pull request #4930 from foarsitter/py312
Upgrade Python to version 3.12
2024-03-19 10:41:04 +01:00
Jelmer
bb2c1c9952
Merge pull request #4898 from SukiCZ/docs/postgres-upgrade
Add documentation to upgrade Postgres in Docker environment. Fix: #461
2024-03-19 10:40:52 +01:00
Shayan Karimi
a1d34a08af
Split the docs from local.yml and build the service in CI (#4909)
* Split the docs from local.yml and build the service in CI

* Change docs build in our CI docker tests
2024-03-18 19:26:18 +00:00
Jelmer Draaijer
b488056b63 Upgrade Python to version 3.12 2024-03-18 20:07:24 +01:00
Jakub Boukal
fa44078ca6 Add documentation to upgrade Postgres in Docker environment. Fixes: #461 2024-03-01 13:31:04 +01:00
Jelmer
074ebce0c7
Merge pull request #4884 from browniebroke/maintainer-guide
Add a maintainer guide to the docs
2024-03-01 09:35:04 +01:00
JAEGYUN JUNG
81a1fc8a38
Fix broken "Two scoops of django" link in FAQ (#4892) 2024-02-28 09:36:39 +00:00
Bruno Alla
899a1915cd
Add paragraph about automated updates 2024-02-23 15:53:03 +01:00
Bruno Alla
a76656aba1
Add a maintainer guide to the docs 2024-02-22 10:39:45 +01:00
Jelmer Draaijer
6ba6104f09 Ruff as formatter & linter 2024-02-13 11:59:54 +01:00
henningbra
cce9c0ee00
Update mention of coverage config file to pyproject.toml in documentation (#4816)
* Update testing.rst - coverage config file is now pyproject.toml

* Update docs/testing.rst

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2024-01-29 13:09:00 +00:00
pyup.io bot
55597c9a50
Update sphinx-rtd-theme to 2.0.0 (#4700) 2023-11-28 11:21:55 +00:00
Jakub Boukal
a849a6968f
Add rmbackup script to remove backups from postgres/backups. Fixes: #4663 (#4664) 2023-11-06 19:45:58 +00:00
pyup.io bot
17f9c270d3
Update sphinx to 7.2.6 (#4583)
* Update sphinx from 7.2.5 to 7.2.6

* Update sphinx from 7.2.5 to 7.2.6
2023-09-14 11:58:53 +01:00
pyup.io bot
402ee60f42
Update sphinx to 7.2.5 (#4569)
* Update sphinx from 6.2.1 to 7.2.5

* Update sphinx from 6.2.1 to 7.2.5

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-09-06 22:18:05 +01:00
pyup.io bot
a9ce921ecc
Update sphinx-rtd-theme from 1.2.2 to 1.3.0 (#4570) 2023-09-06 21:47:35 +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
Shayan Karimi
40ddc4b6af
Add support for Drone (#4382)
* Add overall config for drone.io support

* Update docs

* Configure basic CI setup

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

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

* Fix python image version for tests step

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-28 13:03:47 +01:00
Imran Rahman
0ecb9ce299
Explicitly state that docker exec does not work for running management commands (#4487)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-27 14:42:04 +01:00
hleroy
01962fb3a1
Add Webpack instructions for developping locally with HTTPS (#4486)
* Add Webpack instructions for developping locally with HTTPS

* Fix formatting of code blocks

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-07-27 12:28:49 +01:00
Imran Rahman
f567b5f685
update docs docker-compose -> docker compose (#4463)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-24 10:42:51 +01:00
villancikos
1507360b1f
Added webpack tip for port 3000 instead of 8000 in developing-locally… (#4413)
* Added webpack tip for port 3000 instead of 8000 in developing-locally.rst

* Rework Webpack/Gulp documentation to be more consistent across the board

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-07-10 18:35:57 +01:00
Joseph Hanna
d604fd7db1
Add Postgresql 15 (#4431)
* Add Postgresql 15

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

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

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-04 21:14:28 +01:00
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