我正在使用未经我编码的Django服务器.我已经安装了所有依赖项pip install -r requirements
,但是当我尝试执行时,manage.py
我得到了这个错误.
Traceback (most recent call last): File "./manage.py", line 10, inexecute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 327, in execute django.setup() File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named dal
解决方案应该是这样的pip install dal
,但是当我尝试它时,我得到另一个错误:没有dal
模块.
我正在使用Python 2.7和Django 1.9.8
UPDATE
我当前的INSTALLED_APPS
INSTALLED_APPS = ( #'dal', #'dal_select2', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'django_extensions', 'rosetta', 'corsheaders', 'rest_framework', 'rest_framework.authtoken', 'geoposition', 'cities', 'core', 'api', 'dal', 'dal_select2' )
latsha.. 15
问题是您正在尝试安装django自动完成灯pip install dal
,但您应该通过键入来安装它pip install django-autocomplete-light
问题是您正在尝试安装django自动完成灯pip install dal
,但您应该通过键入来安装它pip install django-autocomplete-light