27 lines
720 B
Markdown
27 lines
720 B
Markdown
# Core
|
|
|
|
This module is the main entrypoint for the application.
|
|
It provides global configuration variables and shared files.
|
|
|
|
## Templates
|
|
|
|
Shared template files are defined in [./templates/core/](./templates/core/).
|
|
|
|
These include the base template, which all others inherit from, as well as the navigation bar and footer of the site.
|
|
|
|
## Static files
|
|
|
|
Static files are stored in [/app/static/](../app/static/) and served here by the webserver.
|
|
|
|
**Warning:** files stored in this directory are publicly available.
|
|
|
|
You can access static files in your Django template as follows:
|
|
|
|
```html
|
|
{% load static %}
|
|
|
|
...
|
|
|
|
<img src="{% static 'medwings/images/devices/withings-scanwatch.webp' %}" alt="A Withings Scanwatch.">
|
|
```
|