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