P
P
Peter Pavlyuk2016-02-16 14:03:06
Django
Peter Pavlyuk, 2016-02-16 14:03:06

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

2 answer(s)
R
Roman Kitaev, 2016-02-16
@deliro

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).

S
Sergey Gornostaev, 2016-02-16
@sergey-gornostaev

Maybe restart the project?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question