python - How can I fix these errors when I run manage.py -


i moving python django project 1 server server. using debian 7, has python 2.7.3 installed standard on target server (the original server using debian 7).

the project trying move has following directories in it's parent folder: -

-env -src 

it has file

install.pip  

the apps running on new webserver, have configured uwsgi, use manage.py project source folder. when run following command:

 python manage.py changepassword user 

i following error

file "manage.py", line 8, in <module>     django.core.management import execute_from_command_line importerror: no module named django.core.management 

to try resolve this, installed virtualenv, , pip , built new virtual environement. ran following command:

pip install -r /sourcefolder/install.pip 

when did received error

failed building wheel pillow 

i researched online , determined possible solution install libjpg, did following command

apt-get install libjpeg8-dev 

i ran pip install -r /sourcefolder/install.pipagain , time completed without errors.

i have tried run command once again: -

 python manage.py changepassword user 

and still getting error, has changed.

  1. if run command outside of virtual environment, receive following error:

    file "manage.py", line 8, in django.core.management import execute_from_command_line importerror: no module named django.core.management

  2. if run command inside virtual environemnt, (which have ran pip inside using install.pip requirements) receive error

i have changed long paths /sourcepath ease of reading etc: -

traceback (most recent call last):   file "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   file "/sourcepath/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line     utility.execute()   file "/sourcepath/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 324, in execute     django.setup()   file "/sourcepath/env/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup     apps.populate(settings.installed_apps)   file "/sourcepath/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate     app_config = appconfig.create(entry)   file "/sourcepath/env/local/lib/python2.7/site-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 

yet more research online has determined due missing dal package, should able install with: -

pip install dal 

however when run command receive following error

(first part of path omitted)

/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: insecureplatformwarning: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail. can upgrade newer version of python solve this. more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.       insecureplatformwarning       not find version satisfies requirement dal (from versions: )     no matching distribution found dal 

my research has been unable find solutions latest error. starting think approach wrong, seem falling pit of ever increasing errors here.

i want move django project 1 server another, , execute manage.py source folder without errors. (i system admin not django coder hope i'm missing easy solution) appreciated.

dal means django-autocomplete-light. may forgot include package in requirements. can check installed_apps see if needed.

to install pip should execute pip install django-autocomplete-light. hope helps.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -