A
A
Alexander2017-07-19 17:29:40
Django
Alexander, 2017-07-19 17:29:40

Django admin not displaying model fields in production?

I have an app blog with an Article model . Everything worked before but when I commented out change_form_template = 'admin/custom_change.html' in admin.py

class ArticleAdmin(TranslatableAdmin):
    list_display = ('title', 'author', 'category')

    # change_form_template = 'admin/custom_change.html'
...
admin.site.register(Article, ArticleAdmin)

Then all the fields of the model disappeared somewhere:
511c4f58246040c59387694d2ca4264f.png
And on the locale they are as they should be:
8a29ebf4b4284de99ef6a070c6d1afc4.png
It is with this model that such nonsense happens. Thought NGINX was caching, turned off sendfile off but didn't help
How to clear the cache of nginx?
Then we proceeded to completely demolish Env and reinstall all packages, but that didn't help.
Djnago communicates with nginx using UWSGI . https://www.digitalocean.com/community/tutorials/h...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-07-21
@kentuck1213

I think I found a bug in django-parler https://github.com/django-parler/django-parler/iss...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question