zoukankan      html  css  js  c++  java
  • windows下django1.7 +python3.4.2搭建记录2

    TEMPLATE_DIRS=( os.path.join(BASE_DIR,'templates'),)

    问题解决

    如何定位basedir呢?我用的笨办法,setting.py中有一句配置:
    'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

    我把db.sqlite3的目录给找出来了

    应该还有别的办法,欢迎探讨,下期研究数据库或auth认证。
     
  • 相关阅读:
    「题解」300iq Contest 2 B Bitwise Xor
    「题解」agc031_e Snuke the Phantom Thief
    「题解」agc031_c Differ by 1 Bit
    「题解」NWRRC2017 Joker
    「题解」NWRRC2017 Grand Test
    「题解」USACO15FEB Fencing the Herd G
    zsh: command not found:xxx 解决方法
    curl
    redis搭建
    http 缓存分为客户端缓存/服务端缓存/数据库缓存
  • 原文地址:https://www.cnblogs.com/slqt/p/4319138.html
Copyright © 2011-2022 走看看