zoukankan      html  css  js  c++  java
  • Django

    # LANGUAGE_CODE = 'en-us'
    LANGUAGE_CODE = 'zh-hans'
    
    # datetime.datetime.now() / datetime.datetime.utcnow() => utc时间
    # TIME_ZONE = 'UTC'
    
    # datetime.datetime.now() - 东八区时间 / datetime.datetime.utcnow() => utc时间
    TIME_ZONE = 'Asia/Shanghai'
    
    USE_I18N = True
    
    USE_L10N = True
    
    # 影响自动生成数据库时间字段;
    #       USE_TZ = True,创建UTC时间写入到数据库。
    #       USE_TZ = False,根据TIME_ZONE设置的时区进行创建时间并写入数据库
    USE_TZ = False
    
    # Static files (CSS, JavaScript, Images)
    # https://docs.djangoproject.com/en/1.11/howto/static-files/
    
  • 相关阅读:
    软链接
    yum
    vm
    tengine
    创智LIUNX
    作业11
    作业10
    作业9
    作业8
    作业7
  • 原文地址:https://www.cnblogs.com/zgboy/p/12746575.html
Copyright © 2011-2022 走看看