You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``autoload`` subcommand scans every installed Django app for a ``thesauri/`` directory
235
+
at the top level of the app package, then loads all ``.rdf`` files it finds there.
236
+
This is how GeoNode and third-party apps can ship thesauri that are loaded automatically at start-up.
237
+
238
+
```bash
239
+
python manage.py thesaurus autoload
240
+
```
241
+
242
+
For each ``.rdf`` file discovered, the command runs the equivalent of ``thesaurus load --action update``,
243
+
so the operation is **idempotent**: running it multiple times will not create duplicates; instead,
244
+
existing records are updated and missing ones are created.
245
+
246
+
**Convention for app-provided thesauri**
247
+
248
+
Place one or more ``.rdf`` files inside a ``thesauri/`` directory at the root of your app package:
249
+
250
+
```
251
+
my_geonode_app/
252
+
thesauri/
253
+
my_vocabulary.rdf
254
+
another_vocab.rdf
255
+
models.py
256
+
...
257
+
```
258
+
259
+
All ``.rdf`` files in that directory are picked up automatically whenever ``thesaurus autoload``
260
+
(or ``invoke loadthesauri``) is executed.
261
+
262
+
!!! note
263
+
The ``autoload`` command is automatically run during GeoNode's Docker container start-up sequence (see [Initialization at boot](#initialization-at-boot)).
264
+
265
+
266
+
## Initialization at boot { #initialization-at-boot }
267
+
268
+
When GeoNode starts (e.g. via the Docker entrypoint), the following initialization steps are executed in order:
269
+
270
+
1.**Database migrations** – applies any pending schema migrations.
271
+
2.**Fixtures** – loads default OAuth2 apps, admin user, and site data (only on first boot or when ``FORCE_REINIT=true``).
272
+
3.**Static files** – collects static assets.
273
+
4.**Thesauri autoload** – runs ``thesaurus autoload`` to load or update all ``.rdf`` files found in any installed app's ``thesauri/`` directory. This step runs on **every** boot so that thesaurus updates shipped with an upgraded app are applied automatically.
Copy file name to clipboardExpand all lines: docs/src/setup/docker/vanilla-docker-installation.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,15 @@ Executing UWSGI server uwsgi --ini /usr/src/app/uwsgi.ini for Production
81
81
[uWSGI] getting INI configuration from /usr/src/app/uwsgi.ini
82
82
```
83
83
84
+
The container performs these initialization steps before starting the application server:
85
+
86
+
1.**Database migrations** – applies any pending schema migrations.
87
+
2.**Fixtures** – loads default OAuth2 apps, admin user and site data (only on first boot or when ``FORCE_REINIT=true``).
88
+
3.**Static files** – collects static assets.
89
+
4.**Thesauri autoload** – scans all installed apps for a ``thesauri/`` directory and loads (or updates) any ``.rdf`` files found there. This makes sure thesauri shipped by GeoNode apps are always up-to-date.
90
+
91
+
See [Thesauri – Initialization at boot](../../../admin/thesauri/thesauri.md#initialization-at-boot) for more details on the thesaurus autoload step.
92
+
84
93
To exit just hit `CTRL+C`.
85
94
86
95
This message means that the GeoNode containers have been started. Browsing to `http://localhost/` will show the GeoNode home page. You should be able to successfully log with the credentials of admin user which are defined in the .env file and start using it right away.
0 commit comments