GitXplorerGitXplorer
C

django-rest-imageupload-example

public
109 stars
28 forks
8 issues

Commits

List of commits on branch master.
Verified
6f203a3cbea2d740b0884a243489d2865f671cf0

Updated step4 with an ng-if and more instructions on removing filesmodel directive

CChristianKreuzberger committed 7 years ago
Unverified
ffb16d7a1a2d913a9495b3da1c9ce7c4e62c5998

fixed some markup issues in the readme

aanx-ckreuzberger committed 7 years ago
Unverified
696402dabc40414a6fd5fb11b08e88cc666ceb2a

Merge pull request #3 from colinpade/patch-2

CChristianKreuzberger committed 8 years ago
Unverified
b8895187837db522d359d0550427a41c16634134

Merge pull request #2 from colinpade/patch-1

CChristianKreuzberger committed 8 years ago
Unverified
0289315a852c6c77e12a58310a5a0a034dc22b29

making readable

ccolinpade committed 8 years ago
Unverified
8efbce2be66c67576b1f00b21a7bd447dbc93c43

update chapter 2

ccolinpade committed 8 years ago

README

The README file for this repository.

Django REST Image Upload Example

This Django tutorial app was created for the purpose of demonstrating Django and Django Rest Framework. It shows the basics of writing a REST endpoint which allows uploading and retrieving pictures.

I also wrote a tutorial, though if you just want to try my code out, I suggest using using the Quick Start or the Docker Image below (todo).

Be aware that there are multiple branches, one for each chapter of the tutorial.

There is also a YouTube series about this tutorial: https://www.youtube.com/watch?v=hMiNTCIY7dw

Quick Start

Installation Steps if you want to try it out

git clone https://github.com/ChristianKreuzberger/django-rest-imageupload-example.git
cd django-rest-imageupload-example
mkdir uploaded_media # create a directory for the uploaded images
virtualenv -p python3.4 venv # Note: python3.5 should also work
source venv/bin/activate
pip install -r requirements.txt
cd django_rest_imageupload_backend
python manage.py migrate
python manage.py runserver # starts the server 

Requirements

  • Python 3.4+
  • Django 1.10
  • Django Rest Framework 3.5
  • Pillow

Please see requirements.txt for more information.

Docker Image

ToDo

Contributing and Licence

This repo is using the MIT licence and only serves an educational purpose. Feel free to do clone, modify and share this repository. If you find an error or have questions, feel free to write comments or raise an issue. If you want to contribute, feel free to hand in a pull-request.