• 大小: 2.28M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-05-06
  • 语言: Python
  • 标签: django  go  分页  

资源简介

实现商品分页

资源截图

代码片段和文件信息

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


def main():
    “““Run administrative tasks.“““
    os.environ.setdefault(‘DJANGO_SETTINGS_MODULE‘ ‘Yu_lin_homework.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()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-12-06 13:51  Yu_lin_homework\
     目录           0  2020-12-06 13:51  Yu_lin_homework\.idea\
     目录           0  2020-12-06 13:51  Yu_lin_homework\.idea\inspectionProfiles\
     文件         174  2020-11-29 14:47  Yu_lin_homework\.idea\inspectionProfiles\profiles_settings.xml
     文件         289  2020-11-29 14:47  Yu_lin_homework\.idea\modules.xml
     文件        2434  2020-12-02 11:44  Yu_lin_homework\.idea\workspace.xml
     文件         291  2020-11-29 14:47  Yu_lin_homework\.idea\Yu_lin_homework.iml
     目录           0  2020-12-06 13:51  Yu_lin_homework\.vscode\
     文件         645  2020-12-04 11:09  Yu_lin_homework\.vscode\launch.json
     文件      180224  2020-12-04 11:21  Yu_lin_homework\db.sqlite3
     文件         693  2020-11-17 21:11  Yu_lin_homework\manage.py
     目录           0  2020-12-06 13:51  Yu_lin_homework\page\
     文件         267  2020-11-19 23:06  Yu_lin_homework\page\admin.py
     文件          88  2020-11-17 21:13  Yu_lin_homework\page\apps.py
     文件         585  2020-11-29 15:53  Yu_lin_homework\page\forms.py
     目录           0  2020-12-06 13:51  Yu_lin_homework\page\migrations\
     文件         649  2020-11-19 14:22  Yu_lin_homework\page\migrations\0001_initial.py
     文件         686  2020-11-19 14:24  Yu_lin_homework\page\migrations\0002_goods.py
     文件        1186  2020-11-19 14:25  Yu_lin_homework\page\migrations\0003_address_orders.py
     文件         876  2020-11-19 14:28  Yu_lin_homework\page\migrations\0004_order.py
     文件           0  2020-11-17 21:13  Yu_lin_homework\page\migrations\__init__.py
     目录           0  2020-12-06 13:51  Yu_lin_homework\page\migrations\__pycache__\
     文件         743  2020-11-21 12:01  Yu_lin_homework\page\migrations\__pycache__\0001_initial.cpython-36.pyc
     文件         744  2020-11-20 08:30  Yu_lin_homework\page\migrations\__pycache__\0001_initial.cpython-38.pyc
     文件         788  2020-11-21 12:01  Yu_lin_homework\page\migrations\__pycache__\0002_goods.cpython-36.pyc
     文件         781  2020-11-20 08:30  Yu_lin_homework\page\migrations\__pycache__\0002_goods.cpython-38.pyc
     文件        1030  2020-11-21 12:01  Yu_lin_homework\page\migrations\__pycache__\0003_address_orders.cpython-36.pyc
     文件        1027  2020-11-20 08:30  Yu_lin_homework\page\migrations\__pycache__\0003_address_orders.cpython-38.pyc
     文件         893  2020-11-21 12:01  Yu_lin_homework\page\migrations\__pycache__\0004_order.cpython-36.pyc
     文件         886  2020-11-20 08:30  Yu_lin_homework\page\migrations\__pycache__\0004_order.cpython-38.pyc
     文件         171  2020-11-21 12:01  Yu_lin_homework\page\migrations\__pycache__\__init__.cpython-36.pyc
............此处省略143个文件信息

评论

共有 条评论