gista / summer-cesta-snp

Web mapping application for 'Cesta SNP' project. Gista Open Summer 2011
http://opensummer.cestasnp.sk/
2 stars 1 forks source link

URL '/mapdata/poi' #42

Closed imincik closed 13 years ago

imincik commented 13 years ago

Application: mapdata

Notes:

  1. Use Django forms with custom form templates to solve ExtJS related issues.
lOlIl commented 13 years ago

Currenly working status: (created own branch - Django-ExtJS-form)

1) made Django form (no photo yet) 2) possible to send & validate the form 3) the response back to ExtJS with JSON (succes/failure)

Problems:

lOlIl commented 13 years ago

OK.

I mixed Django custom template with ExtJS Ajax request/response (the same as in Django_ExtJS by Revolunet). Added very similar CSS as ExtJS has. Created custom JS, which allow user to add mutliple files to upload.

Try on: http://mapa.cestasnp.sk:8001/

imincik commented 13 years ago

Put form code to 'forms.py' file and merge Your code to trunk.

lOlIl commented 13 years ago

OK.

Form added into 'forms.py' & merged into master. There're still some issues, which needs to be fixed.

FIXES: save photo to db, set area automatically

Updated our master on http://mapa.cestasnp.sk:8000/

lOlIl commented 13 years ago

Fixes fixed. Special thanks to Matus.

Problem: there's still problem by default uploading into temp directory defined in db model: https://github.com/gista/summer-cesta-snp/blob/master/djcode/mapdata/models.py#L45

By me, I changed it to custom directory & works correctly.