• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: Python
  • 标签: python  t  Python3  

资源简介

1. 运行 python manager.py runserver 

2. 打开网址 http://localhost:8000/manager

3. 运行成功

资源截图

代码片段和文件信息

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

if __name__ == “__main__“:
    os.environ.setdefault(“DJANGO_SETTINGS_MODULE“ “Manager.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.a

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      135168  2018-08-05 00:15  1160300117
     目录           0  2018-08-24 21:32  Manager\
     目录           0  2018-08-24 21:32  Manager\.vs\
     目录           0  2018-08-24 21:32  Manager\.vs\Manager\
     目录           0  2018-08-24 21:32  Manager\.vs\Manager\v15\
     文件       10752  2018-08-05 00:15  Manager\.vs\Manager\v15\.suo
     文件         104  2018-08-05 00:15  Manager\.vs\VSWorkspaceState.json
     文件       77824  2018-08-05 00:15  Manager\.vs\slnx.sqlite
     文件           0  2018-08-05 00:15  Manager\__init__.py
     目录           0  2018-08-24 21:32  Manager\__pycache__\
     文件         142  2018-08-24 21:32  Manager\__pycache__\__init__.cpython-36.pyc
     文件         824  2018-08-05 00:15  Manager\__pycache__\search.cpython-36.pyc
     文件        2416  2018-08-24 21:32  Manager\__pycache__\settings.cpython-36.pyc
     文件        3392  2018-08-05 00:15  Manager\__pycache__\testdb.cpython-36.pyc
     文件        1200  2018-08-24 21:32  Manager\__pycache__\urls.cpython-36.pyc
     文件         406  2018-08-24 21:32  Manager\__pycache__\view.cpython-36.pyc
     文件         546  2018-08-24 21:32  Manager\__pycache__\wsgi.cpython-36.pyc
     文件        3324  2018-08-05 00:15  Manager\settings.py
     文件        1106  2018-08-05 00:15  Manager\urls.py
     文件         230  2018-08-05 00:15  Manager\view.py
     文件         392  2018-08-05 00:15  Manager\wsgi.py
     目录           0  2018-08-24 21:32  ScoreManager\
     文件           0  2018-08-05 00:15  ScoreManager\__init__.py
     目录           0  2018-08-24 21:32  ScoreManager\__pycache__\
     文件         147  2018-08-24 21:32  ScoreManager\__pycache__\__init__.cpython-36.pyc
     文件         188  2018-08-24 21:32  ScoreManager\__pycache__\admin.cpython-36.pyc
     文件        1228  2018-08-24 21:32  ScoreManager\__pycache__\form.cpython-36.pyc
     文件        3220  2018-08-24 21:32  ScoreManager\__pycache__\manager.cpython-36.pyc
     文件         595  2018-08-24 21:32  ScoreManager\__pycache__\models.cpython-36.pyc
     文件        1785  2018-08-24 21:32  ScoreManager\__pycache__\views.cpython-36.pyc
     文件          63  2018-08-05 00:15  ScoreManager\admin.py
............此处省略24个文件信息

评论

共有 条评论