-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #513 from GhostManager/feature/sso-json-and-file-api
Release: SSO, JSON field types, and File Upload Mutations
- Loading branch information
Showing
89 changed files
with
2,576 additions
and
797 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
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,2 +1,2 @@ | ||
v4.2.5 | ||
9 August 2024 | ||
v4.3.0 | ||
23 September 2024 |
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,2 @@ | ||
/* | ||
!/.gitignore |
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,2 @@ | ||
/* | ||
!/.gitignore |
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 |
---|---|---|
|
@@ -6,10 +6,7 @@ | |
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key | ||
SECRET_KEY = env("DJANGO_SECRET_KEY") | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts | ||
hosts = env( | ||
"DJANGO_ALLOWED_HOSTS", | ||
default="ghostwriter.local localhost host.docker.internal" | ||
) | ||
hosts = env("DJANGO_ALLOWED_HOSTS", default="ghostwriter.local localhost host.docker.internal") | ||
ALLOWED_HOSTS = hosts.split(" ") | ||
|
||
# DATABASES | ||
|
@@ -48,9 +45,7 @@ | |
# TODO: set this to 60 seconds first and then to 518400 once you prove the former works | ||
SECURE_HSTS_SECONDS = 60 | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains | ||
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool( | ||
"DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True | ||
) | ||
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool("DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True) | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-preload | ||
SECURE_HSTS_PRELOAD = env.bool("DJANGO_SECURE_HSTS_PRELOAD", default=True) | ||
# https://docs.djangoproject.com/en/dev/ref/middleware/#x-content-type-options-nosniff | ||
|
@@ -75,9 +70,7 @@ | |
# ------------------------------------------------------------------------------ | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email | ||
DEFAULT_FROM_EMAIL = env( | ||
"DJANGO_DEFAULT_FROM_EMAIL", default="Ghostwriter <[email protected]>" | ||
) | ||
DEFAULT_FROM_EMAIL = env("DJANGO_DEFAULT_FROM_EMAIL", default="Ghostwriter <[email protected]>") | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#server-email | ||
SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL) | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix | ||
|
@@ -92,7 +85,7 @@ | |
# ------------------------------------------------------------------------------ | ||
# https://anymail.readthedocs.io/en/stable/installation/#installing-anymail | ||
INSTALLED_APPS += ["anymail"] # noqa F405 | ||
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend" | ||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" | ||
# https://anymail.readthedocs.io/en/stable/installation/#anymail-settings-reference | ||
ANYMAIL = { | ||
"MAILGUN_API_KEY": env("MAILGUN_API_KEY"), | ||
|
@@ -127,12 +120,7 @@ | |
"version": 1, | ||
"disable_existing_loggers": False, | ||
"filters": {"require_debug_false": {"()": "django.utils.log.RequireDebugFalse"}}, | ||
"formatters": { | ||
"verbose": { | ||
"format": "%(levelname)s %(asctime)s %(module)s " | ||
"%(process)d %(thread)d %(message)s" | ||
} | ||
}, | ||
"formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s " "%(process)d %(thread)d %(message)s"}}, | ||
"handlers": { | ||
"mail_admins": { | ||
"level": "ERROR", | ||
|
@@ -162,3 +150,8 @@ | |
|
||
# Your stuff... | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Include files in `production.d`. These are added in alphabetical order - using a numeric prefix | ||
# like `10-subconfig.py` can be used to order inclusions | ||
|
||
include_settings("./production.d/*.py") |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.