I am creating a django website and there are a few global variables that should be configurable by the owner through the admin interface. Some examples of these variables are a path to a document (resume, portfolio, ...), email address, social media links... These variables are unique (only 1 resume, 1 link to instagram...). Creating a model specifically for them seems a bit overkill, because there will only ever be 1 entry in the table corresponding to that model.
I know there are a few apps that provide this type of functionality, but I was wondering how this can or should be done in vanilla django?
Aucun commentaire:
Enregistrer un commentaire