I am trying to install the django autocomplete light examples : django autocomplete docs
with the following step (from the docs above):
virtualenv autocomplete_light_env
source autocomplete_light_env/bin/activate
git clone https://[email protected]/yourlabs/django-autocomplete-light.git
cd django-autocomplete-light/test_project
pip install -r requirements.txt
./manage.py runserver (also tried "python manage.py runserver")
But even on a clean environment, I am getting the following error when I try the to run the server (last step):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
I have tried a bunch of the suggestions from stackoverflow on how to fix this but nothing seems to work.
I ended up installing django as suggested (I need to use django 1.5 for GAE compatibility):
pip install -e git+https://github.com/django/[email protected]#egg=django
So I got further, but now it is saying:
ImportError: No module named autocomplete_light.example_apps.non_admin_add_another
I see that the module is referenced in settings.py:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'cities_light',
'autocomplete_light',
'autocomplete_light.example_apps.basic',
'autocomplete_light.example_apps.music',
'autocomplete_light.example_apps.autocomplete_test_case_app',
'autocomplete_light.example_apps.security_test',
'autocomplete_light.example_apps.dependant_autocomplete',
'autocomplete_light.example_apps.non_admin_add_another',
'navigation_autocomplete',
)
But I don't know how to resolve this problem.
UPDATE: Doing the "python setup.py install" as suggested did the trick!