Skip to content

Commit 3f5d59b

Browse files
author
Uula Ranta
committed
Fix default discord app & viewport width
1 parent 5d3dd45 commit 3f5d59b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

templates/generic_base.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<html>
44

55
<head>
6-
<meta charset="UTF-8">
6+
<meta charset="UTF-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
78
<title>{% page_attribute "page_title" %}</title>
89
{% render_block "css" %}
910
{% block head %}{% endblock %}

vauhtijuoksu/settings/base.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,20 @@
8787
'allauth.account.auth_backends.AuthenticationBackend',
8888
]
8989

90-
discord_apps = []
90+
9191
if 'DISCORD_CLIENT_ID' in os.environ:
9292
discord_apps = [{
9393
'client_id': os.environ['DISCORD_CLIENT_ID'],
9494
'secret': os.environ['DISCORD_SECRET'],
9595
'key': '',
9696
}]
97+
else:
98+
discord_apps = [{
99+
'client_id': 'whatever',
100+
'secret': 'placeholder',
101+
'key': '',
102+
}]
103+
97104
SOCIALACCOUNT_PROVIDERS = {
98105
"discord": {
99106
"APPS": discord_apps

0 commit comments

Comments
 (0)