Forums

Poetry, Django 3, Python 3.8

I have locally switched the development of my project to django 3 and python-poetry, from django 2 and virtualenv. I can see from the forums there are some gotchas using django 3 here, anybody have any experience with poetry before I clear one of my apps to try it out on PA?

Also - any update on Django 3, Python 3.8 and postgreSQL working together well in PA?

Thanks.

We don't know of any issues related to running poetry on PythonAnywhere. I would suggest installing it and doing a few small experiments. Use it a similar way to the way you've used it locally and see whether that would work for you.

We're actively working on bringing a Postgres update out soon.

I had a bit of a play with it.

Poetry does install and seems to mostly work. The most useful thing, poetry shell does not work as it should, it can't spawn a shell (unable to detect current shell), dunno why, echo $SHELL returns /bin/bash however, but no biggie really I am fine with using virtualenv for now.

edit ...the shell does seem to work if I source the activate script that poetry creates in the virtualenv directly. so in all it seems to be ok with workarounds. Will update as I learn more /edit

Thanks for the update re Postgres. :)

Do we have any update on poetry working well here in pythonanywhere? I also use Django and looking at a better way to manage my dependencies - either poetry or pip-tools - any recommendations?

What is your problem with poetry on PythonAnywhere?

I am quite new to poetry, but I want to set it up to manage my dependencies in an easier manner and I want to set up poetry on PA - that is why I want to know whether this is possible

We don't directly test it ourselves, but we think we have the pieces in place for it to work OK. I think the best bet would be for you to try it and let us know if you have any problems.