GithubHelp home page GithubHelp logo

hirdyansh05 / django-googlecloud-storage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sureshvv/django-googlecloud-storage

0.0 0.0 0.0 22 KB

Enabled googlecloud storage with django based websites.

License: GNU General Public License v2.0

Python 100.00%

django-googlecloud-storage's Introduction

Project:Django-Googlecloud-Storage

Google Cloud Storage file backend for Django

Based on an django-google-cloud-storage but now made simpler because it uses the python google-cloud package.

If you run your projects on Google's appengine and you are using the django framework you might need this file backend since there is no way to upload files, images, etc on appengine. The other solution is using django-storages and apache libcloud but that soon descended into a debugging rabbit hole.

Prerequisites

This version works with the google-cloud package from google. It is listed as a dependency.

Installation

pip install django-googlecloud-storage

Configuration

On your django settings.py file you need to add the following settings:

GOOGLE_CLOUD_STORAGE_PROJECT = '<name-of-project>'
GOOGLE_CLOUD_STORAGE_BUCKET = '<name-of-bucket>'
DEFAULT_FILE_STORAGE = 'django.googlecloud.storage.GoogleCloudStorage'
MEDIA_URL = "https://storage.googleapis.com/<name-of-bucket>/"

Credits

In historical order:

Christos Kopanos (@ckopanos) - original work using an older version of the google client libs 
Richard Caceres (@rchrd2) - packaged the original into python module
Suresh V(@sureshvv) - used the new google-cloud package and namespace packages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.