No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 11 commits ahead, 1 commit behind m0she:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cloudinary_django_sample Add support of Django 2.1 Aug 22, 2018
photo_album
.gitignore Add comments and clean ups Apr 30, 2013
.project
.pydevproject
README.md
manage.py
requirements.txt

README.md

Cloudinary Django Sample Project

A simple web application that allows you to uploads photos, maintain a database with references to them, list them with their metadata, and display them using various cloud-based transformations.

This sample project depends on Cloudinary's Python library.

Installation

Run the following commands from your shell.

Project cloning and dependent package installation:

git clone git://github.com/cloudinary/cloudinary-django-sample.git    
cd cloudinary-django-sample
pip install -r requirements.txt

Defining Cloudinary's credentials. The CLOUDINARY_URL value is available in the dashboard of your Cloudinary account. If you don't have a Cloudinary account yet, click here to create your free account.

export CLOUDINARY_URL=cloudinary://<API-KEY>:<API-SECRET>@<CLOUD-NAME>

Creating a local database and running a web server:

python ./manage.py syncdb
python ./manage.py runserver

You can now browse to the following link to start exploring the sample.

http://localhost:8000/

The sample app also supports the Django admin which is available here:

http://localhost:8000/admin

With virtualenv

We recommend and support the usage of virtualenv. All you need to do is create a new virtualenv (if necessary):

virtualenv venv

And then just activate it:

source venv/bin/activate

Now you can go ahead with the instructions above.