Skip to content

Commit

Permalink
Make title configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Nov 27, 2023
1 parent fec2c73 commit 672c672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/vinywaji/gui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class DashboardView(View):
def get(self, request: HttpRequest):
context = {
"mafiasi_colors": settings.MAFIASI_COLORS,
"title": settings.ORG_NAME,
}
if not request.user.is_anonymous:
context.update({
Expand Down
6 changes: 4 additions & 2 deletions src/vinywaji/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@

VERSION = "2.0.0"

ORG_NAME = env.str("BBD_ORG_NAME", default="Bit-Bots Drinks")

REST_FRAMEWORK = {
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"TITLE": "Mafiasi Drinks API",
"DESCRIPTION": "REST-API for the Mafiasi Drinks service",
"TITLE": "{} API".format(ORG_NAME),
"DESCRIPTION": "REST-API for the {} service".format(ORG_NAME),
"VERSION": VERSION,
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.SessionAuthentication",
Expand Down

0 comments on commit 672c672

Please sign in to comment.