hello , i want to download zip file from web into my django-project and save all it's file content to model ...So how should i go?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5e9c632f-4b38-43be-900f-0f5b65188f49%40googlegroups.com.
Hi,If you only want to save the content "as is" to a model - just use the FileField on the model. See here:You can then also use different types of storage backends to save the file to either the server itself or to the cloud (Amazon S3 for example). See:If you want to unzip the contents and save each file seperately, that is also possible - but will require more work from your part. You can easily unzip a file with the zipfile module:Hope some of that helps,Regards,
Andréas
2017-09-07 9:57 GMT+02:00 vishnu bhand <bhand...@gmail.com>:
hello , i want to download zip file from web into my django-project and save all it's file content to model ...So how should i go?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6507cb33-30c0-403b-8115-cb0b3126ca1e%40googlegroups.com.