• 大小: 1.58M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-05-10
  • 语言: Python
  • 标签: django  实例  

资源简介


资源截图

代码片段和文件信息

#!/usr/bin/env python
import os
import sys

if __name__ == “__main__“:
    os.environ.setdefault(“DJANGO_SETTINGS_MODULE“ “myblog.settings“)
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            “Couldn‘t import Django. Are you sure it‘s installed and “
            “available on your PYTHONPATH environment variable? Did you “
            “forget to activate a virtual environment?“
        ) from exc
    execute_from_command_line(sys.argv)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-20 16:01  Django-myblog-master\
     文件       11357  2019-01-20 16:01  Django-myblog-master\LICENSE
     文件        3514  2019-01-20 16:01  Django-myblog-master\README.md
     文件       29178  2019-01-20 16:01  Django-myblog-master\admin.jpg
     文件       80049  2019-01-20 16:01  Django-myblog-master\adminshow.png
     文件       83189  2019-01-20 16:01  Django-myblog-master\article.jpg
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\Templates\
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\
     文件        9202  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\article_page.html
     文件         311  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\article_page0.html
     文件         597  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\edit_page.html
     文件       17922  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\index.html
     文件       14257  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\list.html
     文件        9790  2019-01-20 16:01  Django-myblog-master\blog\Templates\blog\view.html
     文件           0  2019-01-20 16:01  Django-myblog-master\blog\__init__.py
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\
     文件         135  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\__init__.cpython-37.pyc
     文件         494  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\admin.cpython-37.pyc
     文件         635  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\models.cpython-37.pyc
     文件         467  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\urls.cpython-37.pyc
     文件        1366  2019-01-20 16:01  Django-myblog-master\blog\__pycache__\views.cpython-37.pyc
     文件         256  2019-01-20 16:01  Django-myblog-master\blog\admin.py
     文件          83  2019-01-20 16:01  Django-myblog-master\blog\apps.py
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\migrations\
     文件         560  2019-01-20 16:01  Django-myblog-master\blog\migrations\0001_initial.py
     文件         375  2019-01-20 16:01  Django-myblog-master\blog\migrations\0002_article_pub_time.py
     文件         382  2019-01-20 16:01  Django-myblog-master\blog\migrations\0003_auto_20181229_2333.py
     文件           0  2019-01-20 16:01  Django-myblog-master\blog\migrations\__init__.py
     目录           0  2019-01-20 16:01  Django-myblog-master\blog\migrations\__pycache__\
     文件         692  2019-01-20 16:01  Django-myblog-master\blog\migrations\__pycache__\0001_initial.cpython-37.pyc
............此处省略103个文件信息

评论

共有 条评论