Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# TODO convert this to using ModelForm with a custom Django FileField # For now we just stick an uploaded shapefile into a project directory
if request.method == 'POST': form = UploadForm(request.POST, request.FILES) if form.is_valid(): form.handle(request.FILES['file_obj']) #form.save() # if a modelform #form.cleaned_data['user'] = request.user return render_to_response('uploaded.html', RequestContext(request,{})) else: form = UploadForm() return render_to_response('upload.html', RequestContext(request,{'form': form})) |