Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 500 DEBUG=False in production #692

Open
alejandrohdo opened this issue Nov 14, 2022 · 1 comment
Open

error 500 DEBUG=False in production #692

alejandrohdo opened this issue Nov 14, 2022 · 1 comment

Comments

@alejandrohdo
Copy link

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
Copy link
Author

alejandrohdo commented Nov 15, 2022

Apparently it is some problem of this type django-tenants/django-tenants#544

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant