- [fileinput](https://docs.python.org/3/library/fileinput.html) – pomocný modul pro čtení z několika souborů v jednom `for`-cyklu
NOTE: this approach is for some old Django version... 1. Použít atribut `multiple` pro značku `<input type="file">`. V objektovém světě Django se to provede následovně: ```python class UploadFileForm(forms.Form): file = forms.FileField(widget=forms.ClearableFileInput( attrs={"multiple": True})) ``` 2. Zpracovat seznam souborů ve funkci ve `views.py`: ```python def upload(request): ... # do something with the uploaded files for file in request.FILES.getlist("file"): save_uploaded_file(file) ... ```
- umožnit uživatelům využití našich služeb bez použití cookies
## TODO: [session ID](https://en.wikipedia.org/wiki/Session_ID) - A session ID is typically granted to a visitor on their first visit to a site. It is different from a user ID in that sessions are typically short-lived (they expire after a preset time of inactivity which may be minutes or hours) and may become invalid after a certain goal has been met (for example, once the buyer has finalized their order, they cannot use the same session ID to add more items). [session (web analytics)](https://en.wikipedia.org/wiki/Session_(web_analytics))