Commit fdf7519b authored by Julien Enselme's avatar Julien Enselme

Add manifest.json

parent 8c7dc054
......@@ -119,4 +119,8 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'djangopwa/static/'),
]
STATIC_URL = '/static/'
{
"name": "Django PWA",
"short_name": "djangopwa",
"start_url": "/",
"scope": ".",
"display": "standalone",
"background_color": "#FFF",
"theme_color": "#493174",
"description": "Test app for Django and PWA",
"dir": "ltr",
"lang": "en-US",
"orientation": "portrait-primary",
"icons": [{
"src": "/static/icons/aurss.96x96.png",
"type": "image/png",
"sizes": "96x96"
}, {
"src": "/static/icons/aurss.512x512.png",
"type": "image/png",
"sizes": "512x512"
}]
}
\ No newline at end of file
{% load static %}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="{% static 'manifest.json' %}">
<title>Test PWA site – A page</title>
</head>
<body>
......
{% load static %}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="{% static 'manifest.json' %}">
<title>Test PWA site – Offline</title>
</head>
<body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment