python - Django: 404 on every request -
i have django 1.6.5 application runs on development environment. when deploying production server gives me error on every request:
warning 2014-06-20 14:35:40,085 base of operations not found: /
not found: /
[20/jun/2014 14:35:40] "get / http/1.1" 404 1600
and happens same every mapped url works on development:
warning 2014-06-20 14:39:59,151 base of operations not found: /vars
not found: /vars
[20/jun/2014 14:39:59] "get /vars http/1.1" 404 1608
my urls.py looks this:
urlpatterns = patterns('', url(r'^$', indexview.as_view(), name='index'), url(r'^facebook/', include('django_facebook.urls')), url(r'^accounts/', include('django_facebook.auth_urls')), url(r'^vars/', varsview.as_view(), name='vars'), url(r'^admin/', include(admin.site.urls)), url(r'^main/', mainview.as_view(), name='main'), url(r'^logout/', logoutview.as_view(), name='logout'), url(r'^about/', aboutview.as_view(), name='about'), )
i appreciate help this. i'm stucked here days.
thanks lot.
i sense dumb now.
the problem had get_list_or_404 in index view. , other request redirected index.
strange thing have debug = true on settings file, , wasn't able see total error log in html, simple 404 instead.
thanks , regards.
python django http
No comments:
Post a Comment