Blogger
Blogger copied to clipboard
server error 500 after debug=false
Describe the bug The project runs quite fine when debug=True in settings.py but after debug=false it shows server error 500.
Additional context Stackoverflow and other articles are useful for resolving the bug.
I am interested
Go ahead @Amit366 and can you plz tell me the program under you are participating.
The program is DWOC
Can you tell me which file should I look into?
Can you tell me which file should I look into? settings.py looks like creating this problem.
I am getting error that the python version needs to be updated
The error is No name 'config' in module 'decouple'pylint(no-name-in-module)
Could you please help me in this
The error is No name 'config' in module 'decouple'pylint(no-name-in-module)
you need to install requirements so that required packages get istall
I did install the packages but still it is showing this error
can you show me the screenshot of error so that it will be easier for Me to solve
Ok I will show it tomorrow
This is the error.
@harsh-9in i am interested in this issue.
This is the error.
@harsh-9in i want to know that we need run it locally and then correct it or deploying it on heroku and then run it.Because i find that your project is no problem when debug==false and i commented out these two lines import django_heroku and django_heroku.settings(locals()).So the problem is with heroku .
Do we need to signup on heroku for this.
Do we need to signup on heroku for this.
no you don't need to do this.
@harsh-9in i want to know that we need run it locally and then correct it or deploying it on heroku and then run it.Because i find that your project is no problem when debug==false and i commented out these two lines import django_heroku and django_heroku.settings(locals()).So the problem is with heroku .
are you able to run the project locally when debug=false?
yes i am able to run the project locally even when debug==false when i commented out these two lines from setting.py file import django_heroku and django_heroku.settings(locals()
okk fine can you create a pr so i can review the code.
@harsh-9in ,I have made the PR. Please check it out.