Skip to main content

Django firebase support.

Project description

Django Firebase

Install

pip3 install django_firebase

Usage

settings.py

# Add application
INSTALLED_APPS = [
    <...>
    'django.contrib.staticfiles',
    'django_firebase',
]

# Set Default media storage
DEFAULT_FILE_STORAGE = 'django_firebase.storage.FirebaseStorage'

# Set Bucket name
FIREBASE_STORAGE_BUCKET = 'example.appspot.com'

# Set Firebase cert data
# Note: it can be dict or json file
# You can get credentials in firebase console
FIREBASE_CERT_DATA = os.path.join(BASE_DIR, './firebase-cert.json')

Feature

  • Firebase storage support

Requirements

Python >= 3

  • Django >= 2.0
  • firebase-admin >= 5.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-firebase-0.0.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page