Skip to content

Telling Archetype to Load Changes

Peter Stokes edited this page Feb 13, 2020 · 1 revision

How do I tell Archetype to load my changes?

In most cases, for instance when changing details in the Mezzanine interface, Archetype will automatically pick up any changes. However, if you are changing files such as local_settings.py, you will normally need to restart the server. After changing local_settings.py, for example, you can restart the docker instance so it picks up your changes the next time you run it.

However, editing Python files like local_settings.py is time-consuming and risky as it can easily break the startup sequence of your instance. If you are confident with the terminal it is advised that you try the following process instead:

  1. In kitematic, click the "Exec" button to start the terminal within your Archetype container
  2. Test the validity of your changes with the following line: python manage.py check
  • If there are no errors, you should just see something like System check identified no issues (0 silenced)., then go to step 3.
  • If there is an error, it will be generated by python and will give you hints on how to correct it, just edit your local_settings.py and returns to step 2 until it works
  • If you don't manage to fix the error, then undo your change (or restore local_settings.py from a copy) and go to step 3
  1. to quickly reload your changes without restarting the whole Docker instance (which can be very slow), just type the following command and wait for approximately 10 seconds before testing your changes on the site: pkill uwsgi
Clone this wiki locally