我的HTML代码
<html>
{% for d in name %}
<li><a id = {{d}} alt={{d|slugify }} href ="/hindi_guitarchords/{{d}}"
class = "click">{{d}}</a> </li>
{% endfor %}
</html>url.py代码
url(r'^hindi_guitarchords/(?P<d>.*)/$', 'guitarchordsapp.views.hindi_guitarchords'),views.py
def hindi_guitarchords(request, d):
msg = request.POST.get('d')
#msg= get_object_or_404(Post,slug=d)
return render_to_response('hindi_guitarchords.html',{'song_name':msg})如果我错过了什么,请告诉我
发布于 2014-09-03 06:36:41
将msg = request.POST.get('d')替换为msg = d
https://stackoverflow.com/questions/25631745
复制相似问题