Closed imincik closed 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:
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/
Put form code to 'forms.py' file and merge Your code to trunk.
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/
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.
Application: mapdata
Notes: