• 大小: 13.52MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: Python
  • 标签: django  

资源简介

win10,python3.7,django2.2.3。首先你得自己激活自己的虚拟环境,然后python manage.py runserver就可以在localhost:8000/topics中看到了。相应的内容按照自己的需要更改对应的html文件即可

资源截图

代码片段和文件信息

#!/usr/bin/env python
“““Django‘s command-line utility for administrative tasks.“““
import os
import sys


def main():
    os.environ.setdefault(‘DJANGO_SETTINGS_MODULE‘ ‘learning_log.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)


if __name__ == ‘__main__‘:
    main()

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

     文件     143360  2019-07-18 17:41  learning_log\db.sqlite3

     文件        165  2019-07-18 17:39  learning_log\learing_logs\admin.py

     文件        103  2019-07-18 16:53  learning_log\learing_logs\apps.py

     文件        580  2019-07-18 17:12  learning_log\learing_logs\migrations\0001_initial.py

     文件        828  2019-07-18 17:37  learning_log\learing_logs\migrations\0002_entry.py

     文件          0  2019-07-18 16:53  learning_log\learing_logs\migrations\__init__.py

     文件        678  2019-07-18 17:13  learning_log\learing_logs\migrations\__pycache__\0001_initial.cpython-37.pyc

     文件        872  2019-07-18 17:37  learning_log\learing_logs\migrations\__pycache__\0002_entry.cpython-37.pyc

     文件        138  2019-07-18 17:12  learning_log\learing_logs\migrations\__pycache__\__init__.cpython-37.pyc

     文件        713  2019-07-19 00:36  learning_log\learing_logs\models.py

     文件        176  2019-07-19 10:49  learning_log\learing_logs\templates\learing_logs\base.html

     文件        226  2019-07-19 14:12  learning_log\learing_logs\templates\learing_logs\index.html

     文件        401  2019-07-19 00:38  learning_log\learing_logs\templates\learing_logs\topic.html

     文件        321  2019-07-19 10:49  learning_log\learing_logs\templates\learing_logs\topics.html

     文件        269  2019-07-19 14:11  learning_log\learing_logs\templates\learning_logs\index.html

     文件         63  2019-07-18 16:53  learning_log\learing_logs\tests.py

     文件        644  2019-07-19 10:57  learning_log\learing_logs\urls.py

     文件        682  2019-07-19 01:09  learning_log\learing_logs\views.py

     文件          0  2019-07-18 16:53  learning_log\learing_logs\__init__.py

     文件        277  2019-07-18 17:39  learning_log\learing_logs\__pycache__\admin.cpython-37.pyc

     文件       1273  2019-07-19 00:36  learning_log\learing_logs\__pycache__\models.cpython-37.pyc

     文件        494  2019-07-19 10:57  learning_log\learing_logs\__pycache__\urls.cpython-37.pyc

     文件        917  2019-07-19 01:09  learning_log\learing_logs\__pycache__\views.cpython-37.pyc

     文件        127  2019-07-18 17:12  learning_log\learing_logs\__pycache__\__init__.cpython-37.pyc

     文件       3274  2019-07-18 17:12  learning_log\learning_log\settings.py

     文件        905  2019-07-18 18:33  learning_log\learning_log\urls.py

     文件        417  2019-07-18 16:41  learning_log\learning_log\wsgi.py

     文件          0  2019-07-18 16:41  learning_log\learning_log\__init__.py

     文件       2265  2019-07-18 17:12  learning_log\learning_log\__pycache__\settings.cpython-37.pyc

     文件       1042  2019-07-18 18:33  learning_log\learning_log\__pycache__\urls.cpython-37.pyc

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

评论

共有 条评论