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

资源简介


资源截图

代码片段和文件信息

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

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-10 11:52  DjangoBlog-master\
     文件         177  2019-03-10 11:52  DjangoBlog-master\.coveragerc
     文件          93  2019-03-10 11:52  DjangoBlog-master\.gitattributes
     文件        1042  2019-03-10 11:52  DjangoBlog-master\.gitignore
     文件         690  2019-03-10 11:52  DjangoBlog-master\.travis.yml
     目录           0  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\
     文件          43  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\__init__.py
     文件        2015  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\admin_site.py
     文件        3921  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\blog_signals.py
     文件        1413  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\feeds.py
     文件        4596  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\logentryadmin.py
     文件        8262  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\settings.py
     文件        1488  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\sitemap.py
     文件         953  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\spider_notify.py
     文件        1356  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\tests.py
     文件        2365  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\urls.py
     文件        8057  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\utils.py
     文件       35313  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\whoosh_cn_backend.py
     文件         398  2019-03-10 11:52  DjangoBlog-master\DjangoBlog\wsgi.py
     文件        1075  2019-03-10 11:52  DjangoBlog-master\LICENSE
     文件        4347  2019-03-10 11:52  DjangoBlog-master\README.md
     目录           0  2019-03-10 11:52  DjangoBlog-master\accounts\
     文件           0  2019-03-10 11:52  DjangoBlog-master\accounts\__init__.py
     文件         264  2019-03-10 11:52  DjangoBlog-master\accounts\admin.py
     文件          91  2019-03-10 11:52  DjangoBlog-master\accounts\apps.py
     文件        1561  2019-03-10 11:52  DjangoBlog-master\accounts\forms.py
     目录           0  2019-03-10 11:52  DjangoBlog-master\accounts\migrations\
     文件           0  2019-03-10 11:52  DjangoBlog-master\accounts\migrations\__init__.py
     文件         942  2019-03-10 11:52  DjangoBlog-master\accounts\models.py
     目录           0  2019-03-10 11:52  DjangoBlog-master\accounts\templatetags\
     文件         237  2019-03-10 11:52  DjangoBlog-master\accounts\templatetags\__init__.py
............此处省略387个文件信息

评论

共有 条评论