Commit Graph

232 Commits

Author SHA1 Message Date
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
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
Bruno Alla
9db2752598
Upgrade to Django 4.0 (#3848) 2022-10-19 20:01:43 +01:00
Dani Hodovic
122ebfc3a8
Simplify database access in tests (#3807) 2022-07-26 23:44:34 +01:00
github-actions[bot]
419f6b0e87
Auto-update pre-commit hooks (#3780)
* Auto-update pre-commit hooks

* Run 'pre-commit run -a'

* Fix pyupgrade into generated project

Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2022-07-26 23:37:02 +01:00
Andrew Chen Wang
c7a8b6498c
Update view test should set user to form instance (#3776) 2022-07-22 00:09:12 +01:00
Bruno Alla
cf6fc443bb Fix type error 2022-06-04 14:49:26 -03: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
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
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
Bruno Alla
b58f0e726c
Fix out-of-sync sequence for Site ID (#3511) 2022-01-13 21:23:28 +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
e99120d87d Fix typo and trailing whitespaces 2022-01-04 17:49:40 +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
Douglas
867bb9d5dc
Added Django's current language to the lang attribute of the html tag (#3174)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-12-24 10:09:57 +00:00
pyup.io bot
70329ecb01
Update django-stubs to 1.9.0 (#3439)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-11-30 11:13:53 +00:00
Bruno Alla
0db415ad3b
Fix pre-commit config (#3435) 2021-11-29 11:16:05 +00:00
Arnav Choudhury
0790929e7e
Add an assertion to fix mypy type error (#3150)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-11-25 18:10:33 +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
Bruno Alla
9f359939a9
Upgrade JS dependencies and upgrade to node 16 (#3400) 2021-11-16 20:29:43 +00:00
Bruno Alla
1aded6fafe Fix alerts for messages 2021-11-11 23:01:14 +00:00
Bruno Alla
90088116ff Add fluid container to fix horizontal padding 2021-11-11 21:08:44 +00:00
Bruno Alla
ab81e122d1 Fix navigation on mobile 2021-11-11 21:07:29 +00:00
Bruno Alla
46d453578b Merge branch 'upstream-master' into bootstrap5 2021-11-11 20:32:11 +00:00
Dani Hodovic
8483bbbdf2
refactor: remove user API methods parameter
`methods` defaults to ["GET"] if not specified. There is no need to
explicitly set this in the action.

71e6c30034/rest_framework/decorators.py (L145)
2021-11-08 21:08:32 +01:00
Dalton Rardin
00ff825b8c
Add djangorestframework-stubs
Add djangorestframework-stubs to local.txt requirements
Modify setup.cfg to add stubs to mypy settings
Fix new type error in DRF

`./users/api/views.py:19: error: Incompatible type for lookup 'id': (got "Union[AutoField[Union[Combinable, int, str], int], Any]", expected "Union[str, int]")`

by asserting that `self.request.user.id` is an int
2021-10-11 20:41:32 -05:00
Bruno Alla
3274ff1673 Update to latest Bootstrap 5 2021-09-11 18:16:54 +01:00
Bruno Alla
7412a3e4a7 Replace .sr-only by .visually-hidden 2021-09-11 18:10:22 +01:00
Bruno Alla
aceae00f0e Merge branch 'master' into bootstrap5 2021-09-11 17:57:13 +01:00
Andrew-Chen-Wang
88c487dfbd Convert trans to translate in templates
Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:20:30 -04:00
Andrew Chen Wang
cc28195e38
Merge branch 'master' into bootstrap5 2021-07-27 01:16:15 -04:00
Andrew-Chen-Wang
7a87b1bd1f Fix gulp package installation (dropped jQuery)
* Add defer

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
2021-07-27 01:15:22 -04: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
Kuo Chao Cheng
28544cb247 Wrap jQuery event after DOMContentLoaded 2021-06-25 12:05:12 +08:00
Fabio C. Barrionuevo da Luz
d76fe09163 Replaced ugettext_lazy by gettext_lazy 2021-05-15 21:37:03 -03:00
Bruno Alla
ea84b6ccab Merge branch 'master' into update_tests_deprecation
# Conflicts:
#	{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py
2021-04-08 18:47:47 +01:00
Bruno Alla
675cef0a95 Fix linting issues in template 2021-04-07 20:57:04 +01:00
Bruno Alla
c382894934 Fix pre-commit hook issues 2021-04-07 20:57:04 +01:00
Arnav Choudhury
1371d6a3e6 Reverting the use of get_absolute_url method in getting the detail view url. Purpose was to test if the url could be created correctly and not if the view was working correctly. 2021-03-04 19:34:58 +05:30
Arnav Choudhury
fa0b278225 Updated test_urls and views to re-use User.get_absolute_url method instead of using reverse on the user:detail view 2021-02-26 12:04:48 +05:30
Bruno Alla
4e96b64261 Merge branch 'master' into fix_django_31
# Conflicts:
#	{{cookiecutter.project_slug}}/requirements/base.txt
2021-02-23 19:10:52 +00:00
Bruno Alla
ddc102d0f1
Merge pull request #2992 from Andrew-Chen-Wang/patch-3
Use exception var in status code pages if available
2021-02-23 08:43:33 +00:00
Andrew Chen Wang
1aa4c31b87
Change confusing CSRF 403 message
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2021-02-22 15:45:05 -05:00
Areski Belaid
26540f4cc9
Merge branch 'master' into fix_django_31 2021-02-21 17:56:24 +01:00
areski
86f79e08b2 Update Django to 3.1.7 2021-02-21 17:55:05 +01:00
Andrew Chen Wang
8aeee881bb
Remove email from User API Test 2021-02-16 18:35:47 -05:00
Andrew Chen Wang
17499a12c9
Remove email from User API 2021-02-16 18:33:27 -05:00
Bruno Alla
e5bc9af44c
Merge pull request #3041 from arnav13081994/update_test_case 2021-02-06 17:07:00 +00:00