简体   繁体   English

Django 1.6无法启动Shell,找不到simple_translation.utils

[英]Django 1.6 cannot start shell, simple_translation.utils not found

I recently started a new Django project from scratch in Django 1.6. 我最近在Django 1.6中从头开始了一个新的Django项目。 When I try to open the shell using manage.py or when I try to run server I am getting this error 当我尝试使用manage.py打开外壳程序或尝试运行服务器时,出现此错误

ImportError: No module named simple_translation.utils

The same thing happens when I try to run south migrations. 当我尝试向南迁移时,也会发生同样的事情。

I searched on the net but I am unable to find anything that says I need to install this module after I create a new Django 1.6 project. 我在网上搜索,但是在创建新的Django 1.6项目后找不到任何需要安装此模块的信息。

I am installing these packages and I don't see any issues when I do a pip install with these - 我正在安装这些软件包,使用pip安装这些软件包时看不到任何问题-

  • Django Django的
  • South
  • django-hero-slider django-hero-slider
  • django-calendarium django-calendarium
  • django-people psycopg2 django-people psycopg2

Edit: When I manually install this module, I am able to get the project working again. 编辑:当我手动安装此模块时,我能够使项目再次工作。 So the question I guess is what changes from 1.5 made this extra step necessary? 所以我想问的问题是,从1.5开始有哪些更改使此额外步骤必要?

This is a third-party module and is not part of django. 这是第三方模块 ,不属于django。

django doesn't need this module, chances are something you have installed needs this module; django不需要此模块,可能您已安装的东西需要此模块。 and if you look at the full traceback, it will have clues as to where it is being imported. 如果您查看完整的回溯,它将提供有关导入位置的线索。

You should look at the requirements for your additional packages. 您应该查看其他软件包的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入错误:无法从“django.utils.translation”导入名称“ugettext_lazy” - ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' 找不到域“ django”的翻译文件 - No translation file found for domain: 'django' 找不到域“django”的翻译文件 - No translation file found for domain 'django' 在 Django4.0 中不能使用 Django-rest-auth; ImportError:无法从“django.utils.translation”导入名称“ugettext_lazy” - Can not use Django-rest-auth in Django4.0 ; ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' 无法启动 docker VM:ImportError:无法从“django.utils.text”导入名称“format_lazy”(Python 错误) - Cannot start docker VM: ImportError: cannot import name 'format_lazy' from 'django.utils.text' (Python Error) 无法使用Django1.6导入名称模式 - cannot import name patterns with Django1.6 无法提供静态文件,Django 1.6 - Cannot serve static files, Django 1.6 Django模型翻译-无法导入名称'Constraint' - Django model translation - cannot import name 'Constraint' 无法在Django 1.9+中解析'django.utils.log.NullHandler' - Cannot resolve 'django.utils.log.NullHandler' in Django 1.9+ 当简单形式在Django 1.6中无效时,is_valid()引发异常 - is_valid() throw exception when a simple form is invalid in django 1.6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM