konektaz / where-is-when-is

Geodjango bootstrap integration
www.konektaz.info
8 stars 4 forks source link

New Area models and import script #19

Closed paparent closed 11 years ago

paparent commented 11 years ago

Hi,

Here's the work about the new models! I've create a new one, Area. So I didn't change anything in the frontend. That will be another step. I wanted to know if it's working like that on Rudi's computer, and maybe try to find some bug in it or things that we didn't think of it yet.

Once you migrate the schema, you can import the shape file with:

python manage.py import_shape 0 path/to/IND_adm0.shp
python manage.py import_shape 1 path/to/IND_adm1.shp
python manage.py import_shape 2 path/to/IND_adm2.shp
python manage.py import_shape 3 path/to/IND_adm3.shp

Don't mess the 2nd argument ! hehe It happened to me!

One that done (you can make a coffee, it's quite long), you can view it in the admin area. I disabled the map because it's very cpu expensive. We'll find a better way later, but in fact, I don't think it's really helpful in the admin area.

Have fun!