行李箱工作标签不行吗? ---导入错误:没有名为 2.1.2 的模块

发布于 2024-09-05 06:32:18 字数 792 浏览 2 评论 0原文

很困惑。在我的工作区中,当我执行以下操作时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲影 2024-09-12 06:32:18

当项目目录包含句点时,Django喜欢它。在运行项目之前重命名它。

Django does not like it when the project directory contains periods. Rename it before running the project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文