程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

A very difficult problem when using Django

編輯:Python

I have a very, very important question to ask you , There is really no way
That's why , I have a project in my internship company , It is directly packaged and installed on the client computer , There's no problem with the project , Because I want to know more about this project , So I also installed my project package on my own computer and company computer , As a result, I suddenly found a problem :
After I installed this project, my django Can't run , My guess is the problem of the company's project documents , Because the company's projects are also based on django To complete
Here are my operations and error reports

C:\Users\Double\Desktop>md django3C:\Users\Double\Desktop>cd django3C:\Users\Double\Desktop\django3>django-admin startproject mypro3C:\Users\Double\Desktop\django3>cd mypro3C:\Users\Double\Desktop\django3\mypro3>python manage.py startapp app03C:\Users\Double\Desktop\django3\mypro3>python manage.py runserverTraceback (most recent call last): File "D:\Program Files\Python38\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv self.execute(*args, **cmd_options) File "D:\Program Files\Python38\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute super().execute(*args, **options) File "D:\Program Files\Python38\lib\site-packages\django\core\management\base.py", line 364, in execute output = self.handle(*args, **options) File "D:\Program Files\Python38\lib\site-packages\django\core\management\commands\runserver.py", line 67, in handle if not settings.DEBUG and not settings.ALLOWED_HOSTS: File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 79, in __getattr__ self._setup(name) File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 66, in _setup self._wrapped = Settings(settings_module) File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 157, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "D:\Program Files\Python38\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlockedModuleNotFoundError: No module named 'ZK3'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "D:\Program Files\Python38\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line utility.execute() File "D:\Program Files\Python38\lib\site-packages\django\core\management\__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "D:\Program Files\Python38\lib\site-packages\django\core\management\base.py", line 336, in run_from_argv connections.close_all() File "D:\Program Files\Python38\lib\site-packages\django\db\utils.py", line 219, in close_all for alias in self: File "D:\Program Files\Python38\lib\site-packages\django\db\utils.py", line 213, in __iter__ return iter(self.databases) File "D:\Program Files\Python38\lib\site-packages\django\utils\functional.py", line 80, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "D:\Program Files\Python38\lib\site-packages\django\db\utils.py", line 147, in databases self._databases = settings.DATABASES File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 79, in __getattr__ self._setup(name) File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 66, in _setup self._wrapped = Settings(settings_module) File "D:\Program Files\Python38\lib\site-packages\django\conf\__init__.py", line 157, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "D:\Program Files\Python38\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlockedModuleNotFoundError: No module named 'ZK3'

I know the project name of our company is ZK3, But I created it later django The project will not be affected , I wonder if anyone can help me solve the following problem , My previous computer can be used normally , But after installing this installation, it will not work , I don't know how to modify it for normal use


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved