Answer the question
In order to leave comments, you need to log in
Django model not showing up in admin?
I create a new application, then a model for it and an admin.py file.
But the model does not appear in the admin panel, or rather it does not appear immediately, but approximately the next day after creation (if you correct the existing model, the same story). Maybe I need to update the site?
The site is on the server.
Answer the question
In order to leave comments, you need to log in
No need to develop in production!
You need to develop on your local computer and run it through runserver, which immediately reboots when changes are made.
Your changes appear when the worker is restarted, and that's just a side effect, because this is the easiest way to avoid memory leaks (reload the worker every ~1000 requests).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question