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-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 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: >> >&

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 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 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