-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
841ac63
commit bfde916
Showing
13 changed files
with
165 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Django Base Monumento Pull Request | ||
|
||
### What I did: | ||
|
||
- <thing I’ve done> | ||
- <detailing> | ||
|
||
### How to test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import pytest | ||
from model_bakery import baker | ||
|
||
from django.contrib.auth import get_user_model | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
- [26/09/2024](#26092024) | ||
- [Django 5.0](#django-50) | ||
- [Storages](#storages) | ||
- [Django REST Framework 3.15.2](#django-rest-framework-3152) | ||
- [Updated dependencies](#updated-dependencies) | ||
|
||
# 26/09/2024 | ||
|
||
Major Update. | ||
|
||
## Django 5.0 | ||
We updated Django to version 5.0. This update brings new features and improvements to the project. | ||
|
||
### Storages | ||
Some settings were updated to use the new storages configuration. | ||
Now we have: | ||
```python | ||
# Default STORAGES from Django documentation | ||
# See: | ||
# https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-STORAGES | ||
STORAGES = { | ||
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"}, | ||
"staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"}, | ||
} | ||
``` | ||
|
||
## Django REST Framework 3.15.2 | ||
We updated Django REST Framework to version 3.15.2. | ||
It solves some issues with the collect static command. | ||
|
||
## Updated dependencies | ||
Django==5.0 | ||
boto3==1.35.28 | ||
django-simple-history==3.7.0 | ||
djangorestframework==3.15.2 | ||
model-bakery==1.19.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from .common import * | ||
from .common import * # noqa | ||
|
||
|
||
# Email settings | ||
|
||
EMAIL_BACKEND = 'anymail.backends.amazon_ses.EmailBackend' | ||
ANYMAIL = { | ||
'AMAZON_SES_CLIENT_PARAMS': { | ||
'aws_access_key_id': env.str('AWS_ACCESS_KEY_SES', ''), | ||
'aws_secret_access_key': env.str('AWS_SECRET_KEY_SES', ''), | ||
'region_name': env.str('AWS_REGION_NAME_SES', ''), | ||
'aws_access_key_id': env.str('AWS_ACCESS_KEY_SES', ''), # noqa | ||
'aws_secret_access_key': env.str('AWS_SECRET_KEY_SES', ''), # noqa | ||
'region_name': env.str('AWS_REGION_NAME_SES', ''), # noqa | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import os | ||
from .common import * | ||
from .common import * # noqa | ||
|
||
# Storages | ||
|
||
MEDIA_ROOT = os.path.join(BASE_DIR, 'tmp/media') | ||
MEDIA_ROOT = os.path.join(BASE_DIR, 'tmp/media') # noqa | ||
|
||
|
||
# Email settings | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' | ||
EMAIL_FILE_PATH = os.path.join(BASE_DIR, 'tmp/mailbox') | ||
EMAIL_FILE_PATH = os.path.join(BASE_DIR, 'tmp/mailbox') # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.