Tuesday, May 10, 2016

Re: ubuntu+nginx+django urlpatterns 404 not found

If your 404 pages are white with DEBUG=True, then the problem lies within the web server config. Could you show us the working apache config, too?

i tried
and still return 404 not found

Sai K於 2016年5月10日星期二 UTC+8下午7時36分57秒寫道:
Can you change the url for board some thing like : url(r'^board$', 'board') , lets try.

On Sunday, May 8, 2016 at 7:10:40 PM UTC+5:30, minom du wrote:
Hello ,every body.
attachment is my code

i set the urls.py below 
urlpatterns += patterns('bullet.views.noticeview',
(r'^$', 'notice'),
(r'^board', 'board'),
)

the urlpatterns ^$ work fine
but ^board not work ,it show 404 not found

i have some code like this but work on windows+apache
it work fine

now i move it to ubuntu+nginx
then it not work

anyone can tell me how fix it ,please
thank you very much

--
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+unsubscribe@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/3d41a71a-480e-49e4-ae49-5fe59d39929a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CACczBUJYAsL_BB80mk7F%3D41HTfLASw2m96UgOEkVaHS0fNC%3D5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment