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

server error 500 after debug=false #221

Open
harsh7in opened this issue Dec 23, 2020 · 22 comments
Open

server error 500 after debug=false #221

harsh7in opened this issue Dec 23, 2020 · 22 comments
Assignees
Labels
DWOC DWOC 20 Level-4 nwoc NJACK'20

Comments

@harsh7in
Copy link
Owner

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 harsh7in added the nwoc NJACK'20 label Dec 25, 2020
@Amit366
Copy link

Amit366 commented Dec 26, 2020

I am interested

@harsh7in
Copy link
Owner Author

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

@Amit366
Copy link

Amit366 commented Dec 26, 2020

The program is DWOC

@harsh7in harsh7in added the DWOC DWOC 20 label Dec 27, 2020
@Amit366
Copy link

Amit366 commented Dec 27, 2020

Can you tell me which file should I look into?

@harsh7in
Copy link
Owner Author

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

@Amit366
Copy link

Amit366 commented Dec 27, 2020

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

@Amit366
Copy link

Amit366 commented Dec 27, 2020

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

@Amit366
Copy link

Amit366 commented Dec 27, 2020

Could you please help me in this

@harsh7in
Copy link
Owner Author

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

Amit366 commented Dec 27, 2020

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

@harsh7in
Copy link
Owner Author

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

@Amit366
Copy link

Amit366 commented Dec 27, 2020

Ok I will show it tomorrow

@Amit366
Copy link

Amit366 commented Dec 28, 2020

Uploading IMG_20201228_154223.jpg…
This is the error.

@radhikasingh13
Copy link

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

@Amit366
Copy link

Amit366 commented Dec 29, 2020

IMG_20201228_154223
This is the error.

@radhikasingh13
Copy link

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

Do we need to signup on heroku for this.

@harsh7in
Copy link
Owner Author

Do we need to signup on heroku for this.

no you don't need to do this.

@harsh7in
Copy link
Owner Author

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

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

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

@radhikasingh13
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DWOC DWOC 20 Level-4 nwoc NJACK'20
Projects
None yet
Development

No branches or pull requests

3 participants