Skip to main content

django-github-s3

Installation

Installing from PyPi:

    $ pip install django-github-s3

Once the installation is done, setup the following in the settings.py file.

Include the following package in the INSTALLED_APPS

   INSTALLED_APPS = [
        ....
        'github_storages',
   ]

After including the package setup the following in the settings.py

   DEFAULT_FILE_STORAGE = "github_storages.backend.BackendStorages"
   GITHUB_HANDLE = "Your Github Handle"
   ACCESS_TOKEN = "Your Github Access Token"
   GITHUB_REPO_NAME = "Your New Github Public Repository Name"
   MEDIA_BUCKET_NAME = "Your media bucket name"

For Example:

   DEFAULT_FILE_STORAGE = "github_storages.backend.BackendStorages"
   GITHUB_HANDLE = "vivekchandrabs"
   ACCESS_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
   GITHUB_REPO_NAME = "Example-Test-Repo"
   MEDIA_BUCKET_NAME = "media"

Here is a video on how to get the GitHub Access Token

If you are using ImageField or FileField upload_to parameter can be specified for better organization of files.

   photo = models.ImageField(upload_to="pics/", null=True, blank=True)

About

django-github-s3 is a project to provide beginners a storage backend on github for free.

Since other simple-storage-services requires credit-card information to setup an account and get started. There is a lot of traction in between for the beginners.

Therefore django-github-s3 helps beginners to store the media files on github with very less number of steps required in the initial setup.

Found a Bug? Something Unsupported?

Issues are tracked via GitHub issues at the project issue page.

Contributing

  1. Check for open issues at the project issues page or open a new issues to start a discussion about a feature or bug
  2. Fork the django-github-s3 repository on GitHub to start making changes in your own branch.

Warning !!!

The github repository that you have to create should be public. Storing any confidential information is not recommended.

Thanks To:

Metadata

Release files for django-github-s3 0.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-github-s3 0.25
File Size Uploaded Provenance Actions
django-github-s3-0.25.tar.gz 4.9 kB Without provenance Details for django-github-s3-0.25.tar.gz

Release files / django-github-s3-0.25.tar.gz

Download URL django-github-s3-0.25.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d083fb876ec4b1eed96d00b9fab13813c7cf94a83041fbd5c234a1f2022f01f2
BLAKE2b-256 checksum
How to use checksums
5bb69e575929a53a2ac1709911073d1cf2f14f578c569b5f57ccbd2da44eedc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for django-github-s3 0.25

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page