thanks, i have DEBUG = True in my settings.py the 404 error page is white,jsut like v8X8y.png the school.access.log show 404 209 the school.error.log don't have any info for localhost:82/board localhost:82 is work,but localhost:82/board return 404
James Schneider於 2016年5月10日星期二 UTC+8下午1時09分32秒寫道: > > >> > You need to determine whether Django or Nginx is responding with the 404 > error. > > Do you have DEBUG = True in your settings.py? > > What does the 404 error page look like? Assuming you haven't customized > the 404 error page, the default Nginx 404 page is white, and actually says > Nginx on it (http://i.stack.imgur.com/v8X8y.png). > > With DEBUG = True enabled in Django, you should receive the yellow Django > error page that has more details relating to the error (hopefully). ( > http://i.stack.imgur.com/V2f7f.jpg) > > Does /home/minom/project/school/school/uwsgi.log contain any useful > information (or at least show the request was made)? If so, Django is to > blame and we need to further examine your URL's/views. > > Does /var/log/nginx/school.error.log contain any useful information? > Nginx may secretly be complaining about something behind the scenes. > > Does your other URL/view also return a 404? (http://localhost:82) If that > one works, then the issue definitely lies with Django. > > -James > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/67f8227f-9f2b-433f-9ee1-37ae69480235%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.