Blogger icon indicating copy to clipboard operation
Blogger copied to clipboard

server error 500 after debug=false

Open harsh7in opened this issue 3 years ago • 22 comments

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.

harsh7in avatar Dec 23 '20 14:12 harsh7in

I am interested

Amit366 avatar Dec 26 '20 15:12 Amit366

Go ahead @Amit366 and can you plz tell me the program under you are participating.

harsh7in avatar Dec 26 '20 17:12 harsh7in

The program is DWOC

Amit366 avatar Dec 26 '20 19:12 Amit366

Can you tell me which file should I look into?

Amit366 avatar Dec 27 '20 08:12 Amit366

Can you tell me which file should I look into? settings.py looks like creating this problem.

harsh7in avatar Dec 27 '20 08:12 harsh7in

I am getting error that the python version needs to be updated

Amit366 avatar Dec 27 '20 15:12 Amit366

The error is No name 'config' in module 'decouple'pylint(no-name-in-module)

Amit366 avatar Dec 27 '20 15:12 Amit366

Could you please help me in this

Amit366 avatar Dec 27 '20 15:12 Amit366

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

harsh7in avatar Dec 27 '20 19:12 harsh7in

I did install the packages but still it is showing this error

Amit366 avatar Dec 27 '20 19:12 Amit366

can you show me the screenshot of error so that it will be easier for Me to solve

harsh7in avatar Dec 27 '20 19:12 harsh7in

Ok I will show it tomorrow

Amit366 avatar Dec 27 '20 19:12 Amit366

Uploading IMG_20201228_154223.jpg… This is the error.

Amit366 avatar Dec 28 '20 10:12 Amit366

@harsh-9in i am interested in this issue.

radhikasingh13 avatar Dec 29 '20 11:12 radhikasingh13

IMG_20201228_154223 This is the error.

Amit366 avatar Dec 29 '20 11:12 Amit366

@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 .

radhikasingh13 avatar Dec 31 '20 11:12 radhikasingh13

Do we need to signup on heroku for this.

radhikasingh13 avatar Dec 31 '20 11:12 radhikasingh13

Do we need to signup on heroku for this.

no you don't need to do this.

harsh7in avatar Dec 31 '20 14:12 harsh7in

@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?

harsh7in avatar Dec 31 '20 14:12 harsh7in

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()

radhikasingh13 avatar Dec 31 '20 14:12 radhikasingh13

okk fine can you create a pr so i can review the code.

harsh7in avatar Dec 31 '20 15:12 harsh7in

@harsh-9in ,I have made the PR. Please check it out.

radhikasingh13 avatar Jan 02 '21 11:01 radhikasingh13