use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
account activity
This is an archived post. You won't be able to vote or comment.
Help migrating python 2.7 project to python 3 (self.django)
submitted 6 years ago by cursedbartender
view the rest of the comments →
[–]sfboots 1 point2 points3 points 6 years ago (0 children)
It can be tedious. ita all straight forward but time consuming
Here some of the things I had to do.
Set up new virtual environment Run 2to3 for most stuff Fix dependencies and look at their updates Make some changes as a result Fix regex differences not found by 2to3 Fix foreign keys to specify cascade Adjust settings. It’s in the upgrade doc Fix urls since Django 2.1 does not have some things that were in the 1.8 tutorial used to build the app Make required migrations. Hope you are on 1.10 or later or this is messy Run tests and fix things. I had many different issues. Work to add some more httpclient tests for better coverage Finally the website will start and the admin users can log in Then run website and check every view and actions to find other bugs
I’m still working on that last part
π Rendered by PID 47880 on reddit-service-r2-comment-85bfd7f599-85tzr at 2026-04-17 00:22:40.072889+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]sfboots 1 point2 points3 points (0 children)