Skip to content

Commit 5a04bab

Browse files
committed
chore: account settings cleanup
1 parent d785641 commit 5a04bab

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

arena_account/settings.py

+17-10
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = True
2929

30-
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "[::1]", "arena-account", "host.docker.internal", "localhost"]
30+
ALLOWED_HOSTS = ["localhost", "127.0.0.1", "[::1]", "arena-account", "host.docker.internal", "localhost"]
3131

3232
X_FRAME_OPTIONS = "SAMEORIGIN"
3333
MQTT_TOKEN_PRIVKEY = os.getenv("MQTT_TOKEN_PRIVKEY")
@@ -129,7 +129,7 @@
129129
"DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
130130
}
131131

132-
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
132+
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
133133

134134
# allauth general config
135135
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "http" # https for docker, http for localhost:8000
@@ -151,7 +151,10 @@
151151
"secret": os.getenv("GAUTH_CLIENTSECRET"),
152152
"key": "",
153153
},
154-
"SCOPE": ["profile", "email", ],
154+
"SCOPE": [
155+
"profile",
156+
"email",
157+
],
155158
"AUTH_PARAMS": {
156159
"access_type": "online",
157160
"prompt": "select_account",
@@ -180,7 +183,7 @@
180183
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
181184
"class": "logging.StreamHandler",
182185
"stream": sys.stdout,
183-
"formatter": "verbose"
186+
"formatter": "verbose",
184187
},
185188
},
186189
"loggers": {
@@ -241,9 +244,15 @@
241244
{
242245
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
243246
},
244-
{"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator", },
245-
{"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator", },
246-
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator", },
247+
{
248+
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
249+
},
250+
{
251+
"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
252+
},
253+
{
254+
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
255+
},
247256
]
248257

249258

@@ -278,9 +287,7 @@
278287
PUBSUB = {
279288
"mqtt_server": {
280289
"host": "localhost",
281-
"port": 1883,
282-
"ws_port": 9001,
283-
"wss_port": 8083,
290+
"port": 8883,
284291
},
285292
"mqtt_realm": "realm",
286293
"mqtt_username": "arena_account",

0 commit comments

Comments
 (0)