Skip to content

Tag: django

Object is not subscriptable python error django

I have this function where i am using models ‘Start’ and ‘End’ that contain fields latitude and longitude.. and I am trying to match them with a field called elements that I am using subscript to extract the start_id and end_id and match them with ‘Start’ and ‘End&#82…

Django: Horizontal scaling with a single database

I have a single django instance about to hit its limits in terms of throughput. Id like to make a second instance and start scaling horizontally. I understand when dealing with database read replicas there is some minimal django configuration necessary, but in the instance of only using a single database: is …

Need to have the correct url path in Django

I am trying to get my Django app to point to the correct URL in my chatserver/urls.py file. I am getting this error when I start my django app: Using the URLconf defined in chatserver.urls, Django tried these URL patterns, in this order: admin/ join [name=’join’] The empty path didn’t match any of…