django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

error 500 DEBUG=False in production

Open alejandrohdo opened this issue 2 years ago • 1 comments

Hello, I have my application that works fine in development mode and in production only with the DEBUG=True option, when I try to set this to False in production, it always gives me a 500 error for all my custom templates; however normally I can access the django admin panel(/admin). Everything tells me that the STATIC something is wrong. For example, in the case of MEDIA, I see that it is created correctly in each tenant. Has anyone experienced this problem? Thanks a lot

Error:

Error 500
Server Error
There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience.

alejandrohdo avatar Nov 14 '22 14:11 alejandrohdo

Apparently it is some problem of this type https://github.com/django-tenants/django-tenants/issues/544

I just did it, however it does the same as django's collectstatic ./manage.py tenant_command collectstatic

alejandrohdo avatar Nov 15 '22 00:11 alejandrohdo