I'm using this in a project that does not have versioned APIs so api_root = reverse("api-root", kwargs={"version": get_major_version()}) throws an exception. It would be nice if this also worked with non-versioned apis.
This is just one possible solution to this but I'm sure there are other ways to do this. Let me know if you prefer a different solution :)
I'm using this in a project that does not have versioned APIs so
api_root = reverse("api-root", kwargs={"version": get_major_version()})
throws an exception. It would be nice if this also worked with non-versioned apis.This is just one possible solution to this but I'm sure there are other ways to do this. Let me know if you prefer a different solution :)