推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yearliny
V2EX  ›  Python

Django 如何分多次提交一个表单?

  •  
  •   yearliny · Nov 17, 2017 via Android · 2546 views
    This topic created in 3106 days ago, the information mentioned may be changed or developed.
    近期学习 Django,想要使用 Django 造一个 Feed43 的轮子练手,经常使用 RSS 阅读的人应该知道,这是一个制作 RSS 的网站。

    Feed43 在制作 RSS 时的填入表单页面拥有多个字段,一共需要提交三次,第一次提交一个网址返回页面源码,第二次提交搜索规则返回页面中提取的项目,第三次提交剩下的并包括之前的字段,保存所有内容完成了一个 feed 制作。

    feed43 是使用 JS 完成这样的功能,然而我在学习 Django 时已经不可避免的额外学习了其他的相关知识,已经没有时间精力能力再学习 JS 了。

    是否有其他方式可以在一个页面,多次只提交一个或多个表单并保存。对 Django 和前端所知甚少,这个问题想了很多也无从下手,提问问题时也受制于我的无知不能更精确专业的描述,真心希望能得到前辈指点,给几个关键词,有个解决问题的方向。
    4 replies    2017-11-17 21:27:13 +08:00
    p2pCoder
        1
    p2pCoder  
       Nov 17, 2017   ❤️ 1
    ajax
    tinypig
        2
    tinypig  
       Nov 17, 2017   ❤️ 1
    如果不用 JS 的话,那就 iFrame 吧。
    xanthuiop
        3
    xanthuiop  
       Nov 17, 2017   ❤️ 1
    花点时间看看 jquery 吧,不用去看 js,花不了多长时间的
    sunyaxiongnn
        4
    sunyaxiongnn  
       Nov 17, 2017   ❤️ 1
    有个 model_form_factory 可以查查文档,多个 form
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1029 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 19:01 · PVG 03:01 · LAX 12:01 · JFK 15:01
    ♥ Do have faith in what you're doing.