ba-thesis/app/core/README.md

27 lines
720 B
Markdown
Raw Normal View History

# Core
2023-08-02 14:17:46 +01:00
This module is the main entrypoint for the application.
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/).
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 14:17:46 +01:00
**Warning:** files stored in this directory are publicly available.
2023-08-02 14:17:46 +01:00
You can access static files in your Django template as follows:
```html
2023-08-02 14:17:46 +01:00
{% load static %}
...
<img src="{% static 'medwings/images/devices/withings-scanwatch.webp' %}" alt="A Withings Scanwatch.">
```