Features: 1) Add FormParser and MultiPartParser to DRF DEFAULT_PARSER_CLASSES;
Fixes: 1) Update variable names in PowerShell script to align with expected environment variable naming convention; Extra: 1) None;
This commit is contained in:
parent
81247bde52
commit
45e9ffa143
2 changed files with 8 additions and 6 deletions
|
|
@ -19,6 +19,8 @@ REST_FRAMEWORK: dict = {
|
||||||
"DEFAULT_PARSER_CLASSES": (
|
"DEFAULT_PARSER_CLASSES": (
|
||||||
"djangorestframework_camel_case.parser.CamelCaseJSONParser",
|
"djangorestframework_camel_case.parser.CamelCaseJSONParser",
|
||||||
"djangorestframework_camel_case.parser.CamelCaseMultiPartParser",
|
"djangorestframework_camel_case.parser.CamelCaseMultiPartParser",
|
||||||
|
"rest_framework.parsers.FormParser",
|
||||||
|
"rest_framework.parsers.MultiPartParser",
|
||||||
"rest_framework_xml.parsers.XMLParser",
|
"rest_framework_xml.parsers.XMLParser",
|
||||||
"rest_framework_yaml.parsers.YAMLParser",
|
"rest_framework_yaml.parsers.YAMLParser",
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@ if (Test-Path '.env')
|
||||||
Read-Host "Press Enter to continue or Ctrl+C to abort"
|
Read-Host "Press Enter to continue or Ctrl+C to abort"
|
||||||
}
|
}
|
||||||
|
|
||||||
$PROJECT_NAME = Prompt-Default 'EVIBES_PROJECT_NAME' 'eVibes'
|
$EVIBES_PROJECT_NAME = Prompt-Default 'EVIBES_PROJECT_NAME' 'eVibes'
|
||||||
$FRONTEND_DOMAIN = Prompt-Default 'EVIBES_FRONTEND_DOMAIN' 'evibes.com'
|
$EVIBES_FRONTEND_DOMAIN = Prompt-Default 'EVIBES_FRONTEND_DOMAIN' 'evibes.com'
|
||||||
$BASE_DOMAIN = Prompt-Default 'EVIBES_BASE_DOMAIN' 'evibes.com'
|
$EVIBES_BASE_DOMAIN = Prompt-Default 'EVIBES_BASE_DOMAIN' 'evibes.com'
|
||||||
$SENTRY_DSN = Prompt-Default 'SENTRY_DSN' ''
|
$SENTRY_DSN = Prompt-Default 'SENTRY_DSN' ''
|
||||||
$DEBUG = Prompt-Default 'DEBUG' '1'
|
$DEBUG = Prompt-Default 'DEBUG' '1'
|
||||||
$TIME_ZONE = Prompt-Default 'TIME_ZONE' 'Europe/London'
|
$TIME_ZONE = Prompt-Default 'TIME_ZONE' 'Europe/London'
|
||||||
|
|
@ -97,9 +97,9 @@ $ABSTRACT_API_KEY = Prompt-Default 'ABSTRACT_API_KEY' 'Haha, really? x2
|
||||||
$DEEPL_AUTH_KEY = Prompt-Default 'DEEPL_AUTH_KEY' 'Haha, really? x3'
|
$DEEPL_AUTH_KEY = Prompt-Default 'DEEPL_AUTH_KEY' 'Haha, really? x3'
|
||||||
|
|
||||||
$lines = @(
|
$lines = @(
|
||||||
"EVIBES_PROJECT_NAME=""$PROJECT_NAME"""
|
"EVIBES_PROJECT_NAME=""$EVIBES_PROJECT_NAME"""
|
||||||
"EVIBES_FRONTEND_DOMAIN=""$FRONTEND_DOMAIN"""
|
"EVIBES_FRONTEND_DOMAIN=""$EVIBES_FRONTEND_DOMAIN"""
|
||||||
"EVIBES_BASE_DOMAIN=""$BASE_DOMAIN"""
|
"EVIBES_BASE_DOMAIN=""$EVIBES_BASE_DOMAIN"""
|
||||||
"SENTRY_DSN=""$SENTRY_DSN"""
|
"SENTRY_DSN=""$SENTRY_DSN"""
|
||||||
"DEBUG=$DEBUG"
|
"DEBUG=$DEBUG"
|
||||||
""
|
""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue