OpenUpSA / wazimap

Wazimap is a Django application for exploring census data.
http://wazimap.readthedocs.org/en/latest/
Other
30 stars 31 forks source link

Upgrade Wazimap to Python 3 #148

Closed DavidLemayian closed 5 years ago

DavidLemayian commented 5 years ago

Just seen #147 . Here's our candidate too for Python 3 that we're using in production.

knightebsuku commented 5 years ago

Thanks @DavidLemayian, I'll be looking into this today.

knightebsuku commented 5 years ago

@DavidLemayian I get a TypeError: __init__() missing 1 required positional argument: 'on_delete' This is for the Column class in wazimap/census/models.py

I guess django 2 now enforces this.

DavidLemayian commented 5 years ago

@ebsuku That sounds right. :)

knightebsuku commented 5 years ago

Also all instances of django.core.urlresolvers need to be changed to django.urls

I'm busy running this pull on an instance of wazimap, thats why I'm picking these things up now.

DavidLemayian commented 5 years ago

cc @kilemensi

kilemensi commented 5 years ago

Yes @ebsuku, a few things will need to be updated for Django 2.2 since we’re still running Django 1.11 on Python 3.... the migration to Django 2.2 was next