I've some problem with access to models defined in my Django application. When I have in settings.py:
DEBUG = True
TEMPLATE_DEBUG = DEBUG
then everything works correctly. If I set DEBUG = False, then in admin panel I see section with my application name, and registered models, but the name of model isn't clickable (link) as normal. Also I don't see icon to add/edit objects to my registered models. Other standard applications as Auth, Flatpages looks ok. When I back set DEBUG = True, then everything works ok. Has anyone any idea what could be a reason of this issue?
OK, I've found reason of my problems. It was caused by registering my models in admin panel from files with models definitions. When I moved all my registrations to one external file admin.py, then everything works correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With