Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:22:36+00:00 2026-05-28T17:22:36+00:00

Hi Stackoverflow people, In the past, I always developed my Django projects locally with

  • 0

Hi Stackoverflow people,

In the past, I always developed my Django projects locally with sqlite as database platform. Now, I wanted to move to PostgreSQL to take advantage of GIS features, but the transition gives me huge grief.

I have installed postgresql similar to this post and then followed the GeoDjango description for the creation of the database.

Furthermore, I replaced the models class by

from django.contrib.gis.db import models

and add

geolocation = models.PointField(_('Geo Location'), 
                geography=True, 
                help_text=_('Geolocation with Longitude and Latitude'))

objects = models.GeoManager()

Now, before diving deeper into the postgreSQL sphere, I wanted to test the model access through the Django Admin, and I encountered the first error.

When I select the model (which i just modified as mentioned above) in the Admin, I get the following error:

**InternalError at /admin/remap/project/**
current transaction is aborted, commands ignored until end of transaction block 

This error is connected with a wrong sql query, but I am surprised that the Django Admin creates wrong sql statements (used by million developers and it worked fine in the earlier sqlite config).

When I check the django sql statement, I can see the entry for the PointField

"geolocation" geography(POINT,4326) NOT NULL,

but when I check psql \d projects, I can’t see the change to the PointField (this is what should cause the error). Since I am using South, I executed

./manage.py schemamigration projects --initial
./manage.py migrate projects

but I get the message

Running migrations for projects:
- Nothing to migrate.
- Loading initial data for projects.

How can I convince south / postgresql that there is something to migrate?
Do you see any other problem with the transition form SQLite to PostgreSQL?

Thank you for your answer & help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:22:37+00:00Added an answer on May 28, 2026 at 5:22 pm

    A possible answer:

    Did you syncdb? Often when I’m having trouble with south, I just delete the database and run manage.py syncdb from scratch to make sure all my columns are in line. If you want south to ignore migration-enabled apps and just syncdb up to the current version, you can use manage.py syncdb --all

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Stackoverflow people, I am trying to write my own contact form in Django,
Hi Stackoverflow people, I am irritated by the the Django Form handling, if the
Every now and again I see people on StackOverflow promote the use of autodie
Hi Stackoverflow people, I am confused with m2m queries in Django. I have a
Hi Stackoverflow people, I am implementing the MarkerCluster function for google map markers. I
Hello stackoverflow people! I've got a problem which I haven't been able to solve
Hi Stackoverflow people, I would like to change the m2m widget in the admin
Hello again Stackoverflow people! Assume I have these words: smartphones, smartphone I want to
Hi people stackoverflow. I'm working with MVVM, I have ViewModel call UserViewModel with a
Hello people of StackOverflow! I have used the searrch option, I've found some related

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.