D
D
Danny2014-08-13 15:34:03
linux
Danny, 2014-08-13 15:34:03

How to make Django1.6.5 work with Python3.1?

In general, I try to understand everything myself, but, to be honest, Moscow has already melted, but I have to work.
In general, I have Debian 6 (Squeezy), without a desktop, with two pythons: 2.6 and 3.1. I need to install Django 1.6.5 on Python3.1, but it only works fine on 2.6. When I create a project with the third python, everything is fine, but when I create it inside the project, it gives me a number of errors like ImportError: no module named django.core.management. What I just didn’t try to do, rummaged through a bunch of foreign sites (I almost didn’t find the necessary materials on Russian-speaking ones) - none of the options work. Now I don't even remember everything I tried, so can someone please describe how to put Django on the third python, right from the very beginning, step by step. I will be very grateful for your help.
UPD: In general, I demolished everything and put it again. Right now I have three pythons: 2.6 (python command), 3.1 (python3 command) and 3.4 (python3.4 command). This happened because aptitude does not download python higher than version 3.1, and janga only supports the third python from version 3.2. So, how do I put django exactly on 3.4? It is immediately clear that not with the help of aptitude, and even, probably, not with pip. That is, only if by hand. Can anyone suggest the best way to do this so as not to spoil anything?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Filatov, 2014-08-13
@i_dozi

1. Do you use virtualenv? Look like you're running django with another python.

G
gimntut, 2014-08-14
@gimntut

If there is a need to use different versions of python or different versions of libraries for one version of python on the same computer, then virtualenv should be used.
Should virtualenv be used in Django projects?
habrahabr.ru/post/203516
habrahabr.ru/search/?target_type=posts&q=virtualen...

A
alternativshik, 2014-08-13
@alternativshik

It would be nice to write everything in detail, it would be generally good ... What and how are you doing, what specific mistakes are in which places?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question