How should i download zip from web into my django-project?

On Thursday, September 7, 2017 at 1:35:04 PM UTC+5:30, Andréas Kühne wrote:
>
> 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 <bhand...@gmail.com <javascript:>>:
>
>> 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 <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to