Code

Changes between Initial Version and Version 1 of Ticket #13715


Ignore:
Timestamp:
06/07/10 15:46:12 (4 years ago)
Author:
Alex
Comment:

Fixed up the formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13715

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #13715 – Description

    initial v1  
    11When you start the shell (python manage.py shell) and paste the following code (pasted from http://docs.djangoproject.com/en/dev/ref/contrib/gis/model-api/): 
    2  
     2{{{ 
    33from django.contrib.gis.db import models 
    44 
     
    77    poly = models.PolygonField() 
    88    objects = models.GeoManager() 
    9  
     9}}} 
    1010then you receive the following error 'list index out of range' 
    1111 
    12 line 49:kwargs = {"app_label": model_module.__name__.split('.')[-2]} 
     12line 49:{{{ kwargs = {"app_label": model_module.__name__.split('.')[-2]} }}} 
    1313 
    1414 
    15 the model_module refers to: <module '__main__' from '/Library/Python/2.5/site-packages/IPython/FakeModule.pyc'> 
     15the model_module refers to: {{{ <module '__main__' from '/Library/Python/2.5/site-packages/IPython/FakeModule.pyc'> }}} 
    1616 
    1717This happens with Postgresql 8.4, postgis 1.5.1, OSX 10.5, python 2.5.2