推荐学习书目
› 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
python30
V2EX  ›  Python

问个 django 时间问题.谢谢

  •  
  •   python30 · Apr 14, 2018 · 3687 views
    This topic created in 3094 days ago, the information mentioned may be changed or developed.
    在 models.py 定义

    jiezhi_date = models.DateTimeField(blank = True, null = True, db_index = True, verbose_name = _(u'信息截止时间'))

    模板里这样:

    <div style="color: #A8B1BA;" class="text">截止时间: {{form.jiezhi_date}}</div>

    在前台.html 显示:



    怎么样让它变成后台那样:



    后面有选择时间与日期的按钮?

    多谢?
    5 replies  •  2018-04-15 08:40:52 +08:00
    python30
        1
    python30  
    OP
       Apr 14, 2018
    图片怎么不显示.
    quartet
        2
    quartet  
       Apr 14, 2018
    js 日期时间选择控件
    SingeeKing
        4
    SingeeKing  
       Apr 14, 2018
    1. 请学会使用 Markdown,至少养成发帖前「预览」的习惯
    2. 这是前端问题,可以以关键字「 js 日期选择」等进行查找(加个提示,选好后在响应式下测试。。。)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2444 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:41 · PVG 20:41 · LAX 05:41 · JFK 08:41
    ♥ Do have faith in what you're doing.