David Williamson @ Varilink Computing Ltd
Configuration to enable the use of the Django admin interface to manage the Derby Arts and Theatre Association website's database. This has been put in place as a retro fit for the application's database.
As well as enabling the use of the Django admin interface this also facilitates the use of Django migrations, which I use specifically for the publication of news items on the website.
The steps for publishing a news item are as follows:
- Add a migration file for the news item in
whatson/migrations/
by copying the previous migration file. - Change the file name to something meaningful for the planned news item and increment the prefix number in the file name also.
- Edit the content of the file, remembering to update the published date, title, image, precis, item text and dependencies.
- Copy the new migration file to the deployment environment.
- Run the migration
python3 manage.py migrate whatson
, which you must do withroot
privilege in the Django project's home folder.