I am creating an application that allows users to submit jobs. I want to be able to have an admin function that prevents users from submitting a new job and puts up a site-wide warning with a message like ‘not currently accepting jobs’. In a perfect world, an admin could log in and have a form that will allow for the site to either be accepting or not accepting new jobs. If not accepting jobs, the admin can select the text the warning banner will display at the top of each page.
I was thinking of putting a global variable in settings called ACCEPTING_JOBS that, when false, displays a banner in the base.html template and hides the option to submit a new job in the job_create.html template. However, I have read that changing the settings file while the site is running is not best practice.
I remember using Django package that allowed defining settings that would be then accessible in admin to change and could be accessed in views, templates which would be great for this. But I cannot think of the name and my googling did not find it Hopefully someone else knows the name