migrating from 2.7 to 3.x on Ubuntu

35 views
Skip to first unread message

Mike Dewhirst

unread,
Mar 4, 2019, 11:41:06 PM3/4/19
to Django users
On the same host, is it viable to switch my Django projects away from
vhosts under Apache2/mod_wsgi/py2.7 to Gunicorn and Nginx running with
Python 3.x ...

AND SIMULTANEOUSLY

... leave Trac running on Apache2 mod_wsgi/py2.7?

Trac is not yet released for Python 3.x. There is also a Subversion
server running via Apache2 so it looks like I need to keep Apache2
anyway.  I also have Buildbot running under Python 2.7 on that machine
but it runs on Twisted so I expect that will be a regular migration.

As a bonus question,  if this is even possible, would you
do-release-upgrade Ubuntu 16.04 to 18.04 before or after such a migration.

Thanks for any sympathy as well as advice.


Ryan Nowakowski

unread,
Mar 7, 2019, 8:34:59 AM3/7/19
to django...@googlegroups.com
Seems doable. I would leave nginx out of it and just run gunicorn Python 3 with Apache. Also I would do the release upgrade before.

Mike Dewhirst

unread,
Mar 7, 2019, 5:12:57 PM3/7/19
to django...@googlegroups.com
On 8/03/2019 12:34 am, Ryan Nowakowski wrote:
> Seems doable. I would leave nginx out of it and just run gunicorn
> Python 3 with Apache. Also I would do the release upgrade before.

Thanks Ryan - that makes a lot of sense to me. Should simplify the
process and give me confidence to start sooner rather than later.

:)

Mike

>
> On March 4, 2019 10:40:21 PM CST, Mike Dewhirst
> <mi...@dewhirst.com.au> wrote:
>
> On the same host, is it viable to switch my Django projects away from
> vhosts under Apache2/mod_wsgi/py2.7 to Gunicorn and Nginx running with
> Python 3.x ...
>
> AND SIMULTANEOUSLY
>
> ... leave Trac running on Apache2 mod_wsgi/py2.7?
>
> Trac is not yet released for Python 3.x. There is also a Subversion
> server running via Apache2 so it looks like I need to keep Apache2
> anyway.  I also have Buildbot running under Python 2.7 on that machine
> but it runs on Twisted so I expect that will be a regular migration.
>
> As a bonus question,  if this is even possible, would you
> do-release-upgrade Ubuntu 16.04 to 18.04 before or after such a migration.
>
> Thanks for any sympathy as well as advice.
>
> --
> 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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@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/13C53DB6-22AB-419D-B11E-3B606B9C3B68%40fattuba.com
> <https://groups.google.com/d/msgid/django-users/13C53DB6-22AB-419D-B11E-3B606B9C3B68%40fattuba.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages