New in django | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

New in django

I am trying to run my first project but on server side I am getting error: 1. Page not found error 404 2. Your're seeing this error because you have DEBUG = True When I change it to false I recieved a new error Command Error : You must set settings.Allowed _hosts if DEBUG = False When I changed it , again I get the first error.

17th Dec 2020, 10:14 AM
Swati Ahirwar
Swati Ahirwar - avatar
3 Answers
+ 2
Are you following some tutorials for Django? Follow The Net Ninja step by step: https://youtube.com/playlist?list=PL4cUxeGkcC9ib4HsrXEYpQnTOTZE1x0uc
17th Dec 2020, 3:34 PM
Gordon
Gordon - avatar
+ 1
Please set the DEBUG to TRUE.. Once you do that, check your terminal for any clues of where the traceback/error is.. if you can't locate it try debugging your code..
27th Dec 2020, 4:54 PM
Aryan D'cruz
Aryan D'cruz - avatar
0
Ok thanks
28th Dec 2020, 5:06 PM
Swati Ahirwar
Swati Ahirwar - avatar