bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 424 forks source link

error 500 DEBUG=False in production #692

Open alejandrohdo opened 2 years ago

alejandrohdo commented 2 years ago

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 commented 2 years ago

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