Forums

Got error after setting the database

Hi All,

I am the beginner of python and i try to use django to build a web apps. I try to set up the databases. And I ran the following in consoles "python ./manage.py syncdb" and python manage.py run server . It is still fine. But, when i go to the site. I got "Not Found The requested URL / was not found on this server." When i see the error log , it got blank. So, do i missing any setting ? Any advise for me?

Thanks

Dave

That's usually because you don't have a view configured for /. For Django that means you need an entry in one of your urls.py and that urls.py needs to be in an app that is installed in settings.py.

Thanks Glenn!

I just forgot to set the url. But, there are new errors "Server Error (500)" in the page which i want to display the data. And the error log is below: "2014-07-26 11:02:59,074 :IOError: write error 2014-07-26 11:02:59,075 :RuntimeError: generator ignored GeneratorExit"

Any suggestion?

Thanks Dave

Please ignore my questions!

I just fix it now!

Thanks for well supporting !

That's usually not something to worry about. We think it means the client disconnected before the page was fully delivered.