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

资源简介

完整版Python-Django项目,调试通过,直接下载即可运行包括:登陆、注册、浏览、搜索、发布资源、评论等多个功能。可作为新手练习,课程设计,毕业设计,代码注释详细,便于理解。

【调试说明】遇到【ModuleNotFoundError: No module named 'crispy_forms'】,请执行 pip install django-crispy-forms

然后命令行运行(8888为端口号,可自定义) python manage.py runserver 8888

资源截图

代码片段和文件信息

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

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-15 18:08  代码\
     目录           0  2018-10-15 18:08  代码\GuLiEdu\
     目录           0  2018-10-15 18:08  代码\GuLiEdu\.idea\
     文件        1343  2018-09-21 15:09  代码\GuLiEdu\.idea\GuLiEdu.iml
     文件         398  2018-09-29 15:39  代码\GuLiEdu\.idea\dataSources.local.xml
     文件         979  2018-09-29 15:34  代码\GuLiEdu\.idea\dataSources.xml
     目录           0  2018-10-16 16:09  代码\GuLiEdu\.idea\inspectionProfiles\
     文件         302  2018-09-21 09:50  代码\GuLiEdu\.idea\misc.xml
     文件         266  2018-09-21 09:46  代码\GuLiEdu\.idea\modules.xml
     文件       34572  2018-10-15 16:12  代码\GuLiEdu\.idea\workspace.xml
     目录           0  2018-10-15 18:08  代码\GuLiEdu\GuLiEdu\
     文件           0  2018-09-21 09:46  代码\GuLiEdu\GuLiEdu\__init__.py
     目录           0  2018-10-15 18:08  代码\GuLiEdu\GuLiEdu\__pycache__\
     文件         140  2018-09-21 09:46  代码\GuLiEdu\GuLiEdu\__pycache__\__init__.cpython-36.pyc
     文件        3192  2018-10-09 17:23  代码\GuLiEdu\GuLiEdu\__pycache__\settings.cpython-36.pyc
     文件        1427  2018-10-09 17:29  代码\GuLiEdu\GuLiEdu\__pycache__\urls.cpython-36.pyc
     文件         544  2018-09-21 09:50  代码\GuLiEdu\GuLiEdu\__pycache__\wsgi.cpython-36.pyc
     文件        4410  2018-10-09 17:23  代码\GuLiEdu\GuLiEdu\settings.py
     文件        1335  2018-10-09 17:29  代码\GuLiEdu\GuLiEdu\urls.py
     文件         408  2018-09-21 09:46  代码\GuLiEdu\GuLiEdu\wsgi.py
     目录           0  2018-10-15 18:08  代码\GuLiEdu\apps\
     文件           0  2018-09-21 10:16  代码\GuLiEdu\apps\__init__.py
     目录           0  2018-10-15 18:08  代码\GuLiEdu\apps\courses\
     文件           0  2018-09-21 10:13  代码\GuLiEdu\apps\courses\__init__.py
     目录           0  2018-10-15 18:08  代码\GuLiEdu\apps\courses\__pycache__\
     文件         145  2018-09-21 10:22  代码\GuLiEdu\apps\courses\__pycache__\__init__.cpython-36.pyc
     文件         186  2018-09-21 10:22  代码\GuLiEdu\apps\courses\__pycache__\admin.cpython-36.pyc
     文件        1147  2018-09-21 16:04  代码\GuLiEdu\apps\courses\__pycache__\adminx.cpython-36.pyc
     文件         400  2018-09-21 16:33  代码\GuLiEdu\apps\courses\__pycache__\apps.cpython-36.pyc
     文件        4004  2018-09-30 10:16  代码\GuLiEdu\apps\courses\__pycache__\models.cpython-36.pyc
     文件        1146  2018-09-28 09:38  代码\GuLiEdu\apps\courses\__pycache__\urls.cpython-36.pyc
............此处省略1389个文件信息

评论

共有 条评论