hi i have urls.py in my app file:
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = patterns('project.appname.views',
url(r'^picture$','picture'),
url(r'^$', 'index'),
)
urlpatterns += staticfiles_urlpatterns()
Views looks like this:
def index(request):
..........
return redirect('/picture')
def picture(request):
.......
return render(request,'picture.html', content)
it goes to appname.pythonanywhere.com showing index, and when it should redirect, it goes to /pictures, but uses index.html. not picture.html..... It works perfectly on my computer, but not in pythonanywhere page...