Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Add "shop" Table to Django Admin

Give Feedback

In this video we will add our shop database table to our admin view and load some initial records.

At this point you should have most of your app set up along with a superuser account for Django authentication.

What you will do now is register your shop model in the Admin interface. To do so you will subclass a GeoDjango class called OSMGeoAdmin and specifying the list of columns to display for the view.

Comments & Discussion

abairy on June 4, 2019

Hello When I try to migrate the data exported from overpass its giving me this error

File “C:\Users\13154\Anaconda3\lib\encodings\cp1252.py”, line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x9d in position 26427: character maps to <undefined>

snandw on June 22, 2019

please help I am getting the same error on a windows machine ,a quick reply would be appreciated i need to submit this as a project

Jackie Wilson RP Team on June 24, 2019

I am traveling with limited access. Do you mean to say your map data (location data in JSON) is causing the error?

Become a Member to join the conversation.