-2

I have a django project that uses google maps. I wanted to create a GIS application using GeoDjango and Google Maps following this tutorial but went through several issues. Now I'm stuck, although I decided to remove everything but django still throwing this error regardless I removed all the details related to GIS:

AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'

I mean there is nothing at all that relate my django project (in the code) to GIS?!

I feel like installing GIS/postgres must have messed up the django default database system.

Any suggestions?

4
  • question is not clear , you should provide some illustrated error, or more detailed info Commented Apr 11, 2016 at 2:28
  • Thanks @KostiaMololkin, if you are familiar with django then there is no need to put too much details in my question. I was following that tutorial (see above) and once I added 'multiple databases' to my 'settings.py' I received the error in my question. Then I set 'settings.py' back to default but error still shooting out!! Commented Apr 11, 2016 at 2:35
  • I also deleted the 'db.sqlite3' and ran the migration again to get a new migration file, but no luck. Commented Apr 11, 2016 at 2:50
  • you can find solution here stackoverflow.com/questions/46075739/… Commented Sep 9, 2018 at 16:15

1 Answer 1

1

I think I will solve this problem by myself. I found two similar questions here in this place and no one solved them or gave a clear answer. See this:

GeoDjango error: 'DatabaseOperations' object has no attribute 'geo_db_type'

Which means no clear solution and gotta get around it myself. This post is thus closed.

Sign up to request clarification or add additional context in comments.

1 Comment

I changed the default database that used by django and that solve my problem. I used the 'postgis'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.