#20968: Error creating Indexes on Syncdb
-------------------------------------+-------------------------------------
     Reporter:  burton449geo@…       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  GIS                  |                  Version:  1.5
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  geodjango,           |             Triage Stage:
  spatialite, indexes                |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by ramiro):

 * resolution:  needsinfo => invalid


Comment:

 Actually I can reproduce the issue if I don't create the spatial tables
 with `spatialite db.sqlite3 "SELECT InitSpatialMetaData();"` then the
 index creation fails.

 So comment:1 is right. I'm wrong in the last comment because I assumed
 these tables were created automatically  if not present. That's only true
 then creating the test DB to run the !GeoDjango tests.

 So what one needs to do is actually follow the documentation
 
(https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/spatialite/#creating-a
 -spatial-database-for-spatialite) because at no point it describes that
 step as optional.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20968#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.564edc30706f7231ca4fb8d964bc1825%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to