Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-17 Thread minom du
thank you very much i remove the try_files line and it work fine thanks again James Schneider於 2016年5月14日星期六 UTC+8下午1時24分06秒寫道: > > >> location / { >> uwsgi_pass unix://tmp/school.sock; >> include uwsgi_params; >> try_files $uri $uri/ =404; >> } >> > > I have a feeling this section is what is ca

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-13 Thread James Schneider
> > > location / { > uwsgi_pass unix://tmp/school.sock; > include uwsgi_params; > try_files $uri $uri/ =404; > } > I have a feeling this section is what is causing you trouble. Do you have a separate "upstream {}" section that you can use with uwsgi_pass? Have you tried removing the try_files li

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-11 Thread minom du
this is apache config ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /static /home/minom/project/school/static Require all granted WSGIScriptAlias / /ho

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-10 Thread Gergely Polonkai
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$',

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-10 Thread minom du
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 >> >>

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-10 Thread Sai K
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'^$', 'noti

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-10 Thread minom du
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秒寫道

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread James Schneider
> > > when i run localhost:82 it will run notice and goto index.html > but when i run localhost:82/board > it will return 404 not found > > 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 lo

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread minom du
i use apache then it work so i guess maybe my nginx setting wrong somewhere below is my nginx+uwsgi setting uwsgi.ini [uwsgi] vhost = true project=school base = /home/minom/project plugins =http, python3 socket = /tmp/school.sock master = true enable-threads = true processes = 4 wsgi-file =/home/m

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread minom du
> thanks ,but it not fix the problem > i write same as your code first but return 404 not found so i try other code -- 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 ema

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread Gergely Polonkai
On May 9, 2016 10:06, "minom du" wrote: > > sorry,my english is not good > my urls.py is > from django.conf.urls import include, url, patterns > from django.contrib import admin > > urlpatterns = [ > url(r'^admin/', include(admin.site.urls)), > ] > > urlpatterns += patterns('bullet.views.notic

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread minom du
now,i try to install apache on ubuntu and run the same code it can return correctly but nginx still return 404 not found -- 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 em

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-09 Thread minom du
sorry,my english is not good my urls.py is from django.conf.urls import include, url, patterns from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), ] urlpatterns += patterns('bullet.views.noticeview', (r'^$', 'notice'), (r'^board', 'board'), ) and this

Re: ubuntu+nginx+django urlpatterns 404 not found

2016-05-08 Thread Gergely Polonkai
What do you mean it doesn't work? What error message you get? Are you sure it is provided by Django and not the webserver? Also, GMail is marking your message as a possible malware; consider pasting your urls.py inline instead of an attachment. On May 8, 2016 15:39, "minom du" wrote: > Hello ,ev