26 lines
722 B
Markdown
26 lines
722 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/)[/app/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 publically available.
|
|
|
|
You can access static files in your template as follows:
|
|
|
|
```html
|
|
`{% load static %}`
|
|
|
|
...
|
|
|
|
<img src="{% static 'medwings/images/devices/withings-scanwatch.webp' %}" alt="A Withings Scanwatch.">
|
|
```
|