• 大小: 15KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: Python
  • 标签: python  blog  demo  

资源简介

python 快速搭建blog demo

资源截图

代码片段和文件信息

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

if __name__ == “__main__“:
    os.environ.setdefault(“DJANGO_SETTINGS_MODULE“ “user_workspace.settings“)
    try:
        from django.core.management import execute_from_command_line
    except ImportError:
        # The above import may fail for some other reason. Ensure that the
        # issue is really that Django is missing to avoid masking other
        # exceptions on Python 2.
        try:
            import django
        except ImportError:
            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?“
            )
        raise
    execute_from_command_line(sys.argv)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        228  2017-05-16 09:09  .idea\inspectionProfiles\profiles_settings.xml

     文件        224  2017-05-16 09:10  .idea\misc.xml

     文件        280  2017-05-16 09:09  .idea\modules.xml

     文件       1041  2017-05-16 09:10  .idea\user_workspace.iml

     文件      30175  2017-05-16 11:00  .idea\workspace.xml

     文件         66  2017-05-16 09:09  blog\admin.py

     文件         88  2017-05-16 09:09  blog\apps.py

     文件        680  2017-05-16 09:36  blog\migrations\0001_initial.py

     文件          0  2017-05-16 09:09  blog\migrations\__init__.py

     文件        731  2017-05-16 09:37  blog\migrations\__pycache__\0001_initial.cpython-36.pyc

     文件        128  2017-05-16 09:36  blog\migrations\__pycache__\__init__.cpython-36.pyc

     文件        365  2017-05-16 09:21  blog\models.py

     文件         63  2017-05-16 09:09  blog\tests.py

     文件        296  2017-05-16 09:23  blog\views.py

     文件         44  2017-05-16 09:11  blog\__init__.py

     文件        158  2017-05-16 09:35  blog\__pycache__\admin.cpython-36.pyc

     文件        711  2017-05-16 09:35  blog\__pycache__\models.cpython-36.pyc

     文件        507  2017-05-16 09:36  blog\__pycache__\views.cpython-36.pyc

     文件        166  2017-05-16 09:35  blog\__pycache__\__init__.cpython-36.pyc

     文件        194  2017-05-16 09:25  templates\archive.html

     文件        321  2017-05-16 09:33  templates\base.html

     文件       3381  2017-05-16 09:12  user_workspace\settings.py

     文件        847  2017-05-16 09:24  user_workspace\urls.py

     文件        422  2017-05-16 09:09  user_workspace\wsgi.py

     文件          0  2017-05-16 09:09  user_workspace\__init__.py

     文件       2350  2017-05-16 09:35  user_workspace\__pycache__\settings.cpython-36.pyc

     文件        979  2017-05-16 09:36  user_workspace\__pycache__\urls.cpython-36.pyc

     文件        545  2017-05-16 09:51  user_workspace\__pycache__\wsgi.cpython-36.pyc

     文件        127  2017-05-16 09:09  user_workspace\__pycache__\__init__.cpython-36.pyc

     文件        834  2017-05-16 09:09  manage.py

............此处省略12个文件信息

评论

共有 条评论