CodeForAfrica / sensors.AFRICA-api

The sensors.AFRICA API receiving, storing, and processing data received from sensors across the continentent. Accessible at https://api.sensors.africa/
https://api.sensors.africa/
18 stars 7 forks source link

FIx database router issue #136

Open gideonmaina opened 3 months ago

gideonmaina commented 3 months ago

The cannot assign "<>": the current database router prevents this relation. ValueError in some routes arises because the DATABASE setting uses a router that points to Read Replica DB, which is no longer in use.

Screenshot 2024-08-16 at 11 17 12

Troubleshoot

gideonmaina commented 3 months ago

The cannot assign "<>": the current database router prevents this relation. ValueError in some routes arises because the DATABASE setting uses a router that points to Read Replica DB, which is no longer in use.

Screenshot 2024-08-16 at 11 17 12

Troubleshoot

  • [x] Removing the DATABASE variable in settings.py.
  • [x] Test all routes

Issue resolved