行李箱工作标签不行吗? ---导入错误:没有名为 2.1.2 的模块
很困惑。在我的工作区中,当我执行以下操作时,trunk
工作正常:
python ./manage.py runserver 9090
但是,当我标记
它@2.1.2
时然后将其从存储库中干净地检查到桌面上的临时目录。我收到以下错误:
Traceback (most recent call last): File "./manage.py", line 33, in execute_manager(settings) File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 360, in execute_manager setup_environ(settings_mod) File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 343, in setup_environ project_module = import_module(project_name) File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) ImportError: No module named 2.1.2
是否有明显的我丢失的东西?
Very confused. In my workspace
, the trunk
works fine when I do a:
python ./manage.py runserver 9090
However when I tag
it @ 2.1.2
and then check it out clean from the repository to a temporary directory on my desktop.. I get the following error:
Traceback (most recent call last): File "./manage.py", line 33, in execute_manager(settings) File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 360, in execute_manager setup_environ(settings_mod) File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 343, in setup_environ project_module = import_module(project_name) File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) ImportError: No module named 2.1.2
Is there something obvious I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当项目目录包含句点时,Django不喜欢它。在运行项目之前重命名它。
Django does not like it when the project directory contains periods. Rename it before running the project.