文件名称:pyhton的orm项目开发实践
文件大小:29KB
文件格式:ZIP
更新时间:2022-09-12 07:50:09
orm 图书管理系统
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myorm.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()
【文件预览】:
myorm
----manage.py(646B)
----myorm()
--------settings.py(4KB)
--------urls.py(949B)
--------__init__.py(101B)
--------__pycache__()
--------wsgi.py(403B)
----.idea()
--------misc.xml(210B)
--------workspace.xml(54KB)
--------encodings.xml(182B)
--------inspectionProfiles()
--------modules.xml(391B)
--------myorm.iml(1KB)
----app03()
--------apps.py(90B)
--------tests.py(63B)
--------migrations()
--------admin.py(66B)
--------__init__.py(0B)
--------models.py(553B)
--------__pycache__()
--------views.py(2KB)
----app04()
--------apps.py(90B)
--------tests.py(63B)
--------migrations()
--------admin.py(66B)
--------__init__.py(0B)
--------models.py(130B)
--------__pycache__()
--------views.py(66B)
----db.sqlite3(0B)
----templates()
--------books.html(2KB)
--------addbook.html(2KB)