harsh7in / Blogger

Blogger is a basic blogging application which includes user to create an account and post their views.
MIT License
50 stars 77 forks source link

server error 500 after debug=false #221

Open harsh7in opened 3 years ago

harsh7in commented 3 years ago

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.

Amit366 commented 3 years ago

I am interested

harsh7in commented 3 years ago

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

Amit366 commented 3 years ago

The program is DWOC

Amit366 commented 3 years ago

Can you tell me which file should I look into?

harsh7in commented 3 years ago

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

Amit366 commented 3 years ago

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

Amit366 commented 3 years ago

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

Amit366 commented 3 years ago

Could you please help me in this

harsh7in commented 3 years ago

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

Amit366 commented 3 years ago

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

harsh7in commented 3 years ago

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

Amit366 commented 3 years ago

Ok I will show it tomorrow

Amit366 commented 3 years ago

![Uploading IMG_20201228_154223.jpg…]() This is the error.

radhikasingh13 commented 3 years ago

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

Amit366 commented 3 years ago

IMG_20201228_154223 This is the error.

radhikasingh13 commented 3 years ago

@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 commented 3 years ago

Do we need to signup on heroku for this.

harsh7in commented 3 years ago

Do we need to signup on heroku for this.

no you don't need to do this.

harsh7in commented 3 years ago

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

radhikasingh13 commented 3 years ago

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

harsh7in commented 3 years ago

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

radhikasingh13 commented 3 years ago

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