S
S
Sergey Nizhny Novgorod2016-02-09 04:07:25
Django
Sergey Nizhny Novgorod, 2016-02-09 04:07:25

How to properly copy django project on Cent OS 7?

Hello.
I use as a guide: https://www.digitalocean.com/community/tutorials/h...
What I do:
Created a virtual environment.
Created a Django project in it.
Connected under SFTP
Replaced the created project with mine via SFTP.
I'm trying to run the manage.py file.
An error appears:
/usr/bin/env: python3: No such file or directory
1) Before the replacement, the manage.py file was running. 2) in the new folder, the manage.py file is located exactly the same way ( proof ) 3) If you create another Django project, it also starts.
Ps There are suspicions that the error is due to the fact that I developed under python 3.5, and the server is 2.7. Does it affect? And how can I update 2.7 to 3.5 on cent OS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-02-09
@vintello

the error says that you have a different version of python installed in the virtual environment. most likely 2.7
check :
you need to dig in this direction

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question