Andrew Chen Wang
8b35c83500
Lint production.py
2021-04-30 12:50:35 -04:00
Bruno Alla
c382894934
Fix pre-commit hook issues
2021-04-07 20:57:04 +01:00
Bruno Alla
4acba3dddd
Merge pull request #2865 from lcd1232/patch-1
2021-02-22 20:26:05 +00:00
Dani Hodovic
977e033352
refactor: remove default cache settings in test.py
...
It's LocMemCache by default, there is no need to specify this in test.py
```python
django.core.cache.backends.locmem.LocMemCache
```
https://docs.djangoproject.com/en/dev/ref/settings/#caches
2021-02-21 19:25:32 +02:00
Bruno Alla
9969f8fa0d
Handle error if node hasn't started yet
2021-01-28 09:19:14 +00:00
Bruno Alla
26a424e09c
Merge branch 'master' into patch-1
2021-01-24 21:49:00 +00:00
vascop
fcbe4f5f86
Sentry Redis integration enabled by default in production.
2020-12-31 14:02:53 +01:00
lcd1232
f5bfa97f6e
Update {{cookiecutter.project_slug}}/config/settings/local.py
...
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2020-10-04 19:31:09 +03:00
lcd1232
86e9a90d4e
Add node to INTERNAL_IPS
2020-09-30 11:14:21 +03:00
Bruno Alla
cc97340c25
Merge pull request #2777 from foarsitter/sentry_environment_and_performance_tracing
...
Add environment and traces_sample_rate keyword to sentry_sdk.init
2020-09-02 11:51:41 +02:00
Bruno Alla
fe36bb3574
Merge pull request #2781 from pydanny/pyup-update-django-storages-1.9.1-to-1.10
2020-09-01 22:42:12 +02:00
Bruno Alla
53b4371c09
Remove deprecated setting from django-storages
2020-09-01 22:20:02 +02:00
Howie Zhao
2c82c4e1da
chore: update document link
2020-08-29 11:59:29 +08:00
Jelmer Draaijer
688739cb39
Add environment and traces_sample_rate keyword to sentry_sdk.init
2020-08-28 10:25:40 +02:00
Bruno Alla
7e87a92596
Add missing comment over settings
2020-08-14 08:12:55 +01:00
Andrew Chen Wang
d411ed9b6a
Update compressor not check whitenoise condition
2020-08-13 18:45:37 -04:00
Andrew Chen Wang
148d6c2e29
Added noqa F405 to undefined STATIC_ROOT - flake8
...
* This is in addition to the PR for compressor support with AWS S3 and Google Cloud buckets
2020-08-13 10:24:51 -04:00
Andrew Chen Wang
1cb2a0c98e
Set COMPRESS_ROOT to STATIC_ROOT for compressor
...
Django compressor also recommends the `COMPRESS_ROOT` be the STATIC_ROOT. This also makes sure the utils is set up properly so that the CACHE directory is actually publicly available (it'll be inside the static directory as a subdirectory).
2020-08-13 10:13:40 -04:00
Andrew Chen Wang
55d3d95333
Add STATICFILES_STORAGE with compressor support
2020-08-13 10:08:53 -04:00
Aadith PM
ff69126087
Update {{cookiecutter.project_slug}}/config/settings/base.py
...
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2020-07-20 11:21:06 -05:00
Aadith PM
20986bafb7
Fix style error with quotes
2020-07-18 20:37:03 -05:00
Aadith PM
eafe74262a
Added django-cors-headers setup steps to base settings
2020-07-18 19:53:55 -05:00
Tano Abeleyra
70f6471c75
Allow to use a CDN with S3
2020-05-17 12:37:35 -03:00
Fabio C. Barrionuevo da Luz
1247f06395
Make sure to resolve symbolic links, uses an absolute path in ROOT_DIR
...
and raise an error if the path does not exist by using the "resolve" method.
Use "parent.parent.parent" instead of "parents[2]"
2020-04-30 11:33:46 -03:00
Tano Abeleyra
95ca7ca291
Update django-redis links
2020-04-24 21:29:59 -03:00
Tano Abeleyra
0f388a6d96
Fix minor typo
2020-04-11 14:49:04 -03:00
Duda Nogueira
819e9ff273
Adding some spaces to pass build :P
2020-04-07 19:29:46 -03:00
Duda Nogueira
1d2d881aba
Fix INTERNAL_IPS for DOCKER when ip higher than 9
...
previously, for IP ex: 172.19.0.13 becomes: 172.19.0.11
now, it becomes 172.19.0.1
2020-04-07 18:53:09 -03:00
Bruno Alla
56d5e271aa
Remove isort exception in production config & fix issue
2020-03-23 21:46:14 +00:00
Bruno Alla
c4b1666707
Move storages classes into their own module
2020-03-23 21:46:14 +00:00
Bruno Alla
ea5db6c4f4
Django 3.0 support ( #2469 )
...
* Bump Django version to 3.0.x to see what breaks
* Update places where Django 2.2 is mentioned to 3.0
* Update to latest Django 3.0 version
* Bump version in setup.py
2020-03-23 21:41:51 +00:00
Bruno Alla
5498716c74
Fix isort
2020-03-17 15:35:42 +00:00
Bruno Alla
d2988040d5
Merge branch 'master' into pathlib-migration-updated
2020-03-17 14:16:35 +00:00
Bruno Alla
e97573dfda
Merge pull request #2435 from Andrew-Chen-Wang/master
...
Add all supported Anymail Providers
2020-03-16 19:59:25 +00:00
Bruno Alla
ca7fcb8f62
Merge pull request #2442 from jameswilliams1/fix-django-compressor-settings
...
Fix broken Django Compressor setup and enable static files minification
2020-03-16 19:53:02 +00:00
Bruno Alla
530868d072
Move "rest_framework" in THIRD_PARTY_APPS
2020-03-15 19:20:44 +00:00
Bruno Alla
729cd2adab
Merge branch 'master' into drf-auth-token
2020-03-15 19:19:36 +00:00
Andrew-Chen-Wang
5e1d1dd1c3
Fixed tests for mail providers
2020-03-14 15:09:05 -04:00
Andrew-Chen-Wang
3978890502
Adjusted readability
...
* Changed Vanilla/Plain Django-Anymail to Other SMTP
* Made Mailgun default again
* config/production.py adjusted if conditions according to @browniebroke
2020-03-14 13:43:37 -04:00
Andrew-Chen-Wang
9cf72849e6
Merged parent repo and configured refurbished tests
2020-03-14 13:29:08 -04:00
Bruno Alla
fab6b8724a
Test isort flake8-isort & fix issues
...
fixes #2123
2020-03-03 20:04:31 +00:00
jeromecaisip
bfe463fa7c
Update base.py
2020-03-02 19:27:07 +01:00
jeromecaisip
fa6ca7b1c8
Add rest_framework.authtoken on installed apps.
...
Add rest_framework.authtoken on installed apps when the option to use DRF is selected, because the endpoint
'/auth-token/" depends on the said app.
2020-03-02 19:16:33 +01:00
James Williams
89f85f1255
- configure compressor when not using s3
...
- update django start script to compress if using whitenoise and compress enabled
- add to contributors.rst
2020-02-28 15:59:14 +00:00
Andrew-Chen-Wang
ac884f3f75
Updated mail service docs
...
* Trying to appease the Black-linter god...
2020-02-06 20:18:49 -05:00
Andrew-Chen-Wang
0621929cd2
Removed None option for mail service
...
* This is necessary in order to be compatible with Django-allauth
2020-02-06 18:41:30 -05:00
Andrew-Chen-Wang
c8eb5462eb
Configurations and Packages added
...
* Production settings updated for all
* Added env vars from production settings
* Added packages requirements.txt
2020-02-06 16:58:15 -05:00
Bruno Alla
2fb40f3f8c
Option for DRF with extra fixes ( #2410 )
...
Option for DRF with extra fixes
2020-01-28 10:27:26 +00:00
Dani Hodovic
54a38bfb43
Allow rendering custom widgets from root templates dir ( #2356 )
...
* Allow rendering custom widgets from root templates dir
Rendering custom widgets from the projects root template directory
doesn't work out of the box.
See: https://stackoverflow.com/questions/45844032/django-templatedoesnotexist-in-case-of-a-custom-widget/46208414#46-208414
This changes the setting to use the same template finding logic that the
TEMPLATES setting uses.
* update APP_DIRS=True
* fixup! update APP_DIRS=True
2020-01-28 09:55:09 +00:00
Bruno Alla
fa9a8cfe7b
Fix code formatting
2020-01-23 18:10:30 +00:00