usgo / agagd

American Go Association Games Database (AGAGD)
https://agagd.usgo.org
MIT License
47 stars 30 forks source link

fix: upgrading to django 4.0.6 #255

Closed Twooey closed 2 years ago

Twooey commented 2 years ago

This updates the codebase to django 4.0.6.

The only change needed was due to django.conf.urls.url() being deprecated in 3.0 and removed in 4.0. django.url,re_path() can be used here as a drop-in replacement.

I also removed django.conf.urls.static.static() as it was unused.

I tested locally, and everything appears to be working as intended.

I set a primary key type to ratings to avoid future issues.

I rewrote the urls.py for consistency purposes.