Форум сайта python.su
можно ли передать данные конки таким кодом
#views.py
def hello(request):
return HttpResponse('some.html')
def good(request,id):
return HttpResponse('anther.html',{'id':id})
#urls.py
urlpatterns = patterns('',
(r'^hello/$', 'proj.app.views.hello'),
(r'^hello/good/$', 'proj.app.views.good'),
)
# html
<button id="somebutton" onClick="window.open('good','id':'1')">
Офлайн
Noreccesэто и есть ответ на вопрос
а то кнопка становится просто не активной
Norecces
можно ли передать данные конки таким кодом
Офлайн