Fixes for using pypi package

- Fix static path for manifest and login logo.
- Use insecure=True (required to serve static files via development
  server with DEBUG=False).
This commit is contained in:
Emanuel Schütze 2019-01-20 09:29:19 +01:00
parent 034a4d2a67
commit 23f7dce6a2
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<!-- The actual form -->
<header>
<mat-toolbar class="login-logo-bar" color="primary">
<a routerLink="/login"><img src="/assets/img/openslides-logo-h-dark-transparent.svg" alt="OpenSlides-logo"></a>
<a routerLink="/login"><img src="assets/img/openslides-logo-h-dark-transparent.svg" alt="OpenSlides-logo"></a>
</mat-toolbar>
</header>
<main>

View File

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/img/favicon.png">
<link rel="manifest" href="manifest.json" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#317796">
</head>

View File

@ -89,7 +89,7 @@ class IndexView(View):
requested, the index.html is delivered.
"""
try:
response = serve(request, path, **kwargs)
response = serve(request, path, insecure=True, **kwargs)
except Http404:
response = static.serve(
request,