Hi, If you only want to save the content "as is" to a model - just use the FileField on the model. See here:
https://docs.djangoproject.com/en/1.11/ref/models/fields/#filefield 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: https://django-storages.readthedocs.io/en/latest/ 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: https://stackoverflow.com/questions/3451111/unzipping-files-in-python Hope some of that helps, Regards, Andréas 2017-09-07 9:57 GMT+02:00 vishnu bhand <[email protected]>: > 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 [email protected]. > To post to this group, send email to [email protected]. > 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 > <https://groups.google.com/d/msgid/django-users/5e9c632f-4b38-43be-900f-0f5b65188f49%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAK4qSCe9nS3YoUOYmh-tsFv6_qNeobeNx5dcp%2BtcQbrWCSK%3DOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

