Hi, I generally disagree.
Compiling Python on production can take some time (e.g. you may get some compilation parameters wrong) and makes security upgrades harder; instead of "apt update && apt upgrade" you'll be needing to recompile Python. It might not seem like a big deal, but if today you have one production machine, next year you will have three and the year after that you will have ten or more. Don't use practices that don't scale well. What I'd do would be to install Python 3.6 on my development machine and deploy on whatever Python version Ubuntu 14.04 has. I'd be careful to not use any post-3.4 features while developing (that's easy as the Python docs clearly have the versions marked). If an error occurs during deployment, chances are way higher the error will be elsewhere than in the Python version. Besides, upgrades are always a little risky, and if you can't allow the downtime, you'll need to have a staging environment as well. Of course, if there is any compelling reason to use a Python 3.6 feature, that's another story; but using a couple of f-strings is not compelling enough. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-08-13 18:10, Avraham Serour wrote: > I suggest using 3.6, which is the current stable release > if your machine or the server doesn't have this version installed you may > compile it yourself and create the virtualenv for the project from there > > There are some projects that help you with that, I like > pythonz https://github.com/saghul/pythonz > > > On Sun, Aug 13, 2017 at 9:33 AM, Seo Brain <seob...@gmail.com > <mailto:seob...@gmail.com>> wrote: > > Hi, the question is about which python version suppose to use. On web > server is ubuntu 14.4 - python v3.4 (i assume) with virtualenv, my local > is python v3.5 or may be using v3.4 if i have to keep the same version on > web server ? v3.4 seems has issue to install on one of my windows 7, but > no issue on mac. or may be i suppose to use virtual-box to keep the > environment same everywhere dev and production server ? > thanks in advance. Ross > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-users > <https://groups.google.com/group/django-users>. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/django-users/7937063c-e3cb-44b7-b524-097b82d05d87%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/7937063c-e3cb-44b7-b524-097b82d05d87%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAFWa6tJi0OTi9sQbd23AxSuXZ12b6-YtNFp8J-q%2BuP_aPhji4w%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFWa6tJi0OTi9sQbd23AxSuXZ12b6-YtNFp8J-q%2BuP_aPhji4w%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d457e387-f9f4-716f-440a-a68426706ad2%40djangodeployment.com. For more options, visit https://groups.google.com/d/optout.