This repository is a reference to my blog post:
http://blog.mathocr.com/2017/06/25/store-base64-images-with-Django-REST-framework.html
-
Install Python 3.5:
Windows x86-64 web-based installer or Select & download other installer.
While installing Python please make sure that option 'Add Python 3.5 to PATH' is checked. -
Install virtualenv package:
pip install virtualenv
-
Create new directory:
mkdir digits_operators_recognizer
-
Enter newly created directory:
cd digits_operators_recognizer
-
Clone this repository into current directory:
git clone https://github.com/ThomasLech/digits_operators_recognizer .
-
Create isolated working copy of Python:
virtualenv env
-
Acivate virtual enviroment:
source env/Scripts/activate
(on Windows:env\Scripts\activate
) -
Download missing packages (those that cannot be installed via pip):
scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl: SciPy Download Page,
scikit_image-0.13.0-cp35-cp35m-win_amd64.whl: Scikit-image Download Page,
numpy-1.12.1+mkl-cp35-cp35m-win_amd64.whl: NumPy Download Page. -
Upgrade pip (Python Package Manager) and install three downloaded packages with the following shell command:
python -m pip install --upgrade pip
pip install "scikit_image-0.13.0-cp35-cp35m-win_amd64.whl"
pip install "scipy-0.19.1-cp35-cp35m-win_amd64.whl"
pip install "numpy-1.13.1+mkl-cp35-cp35m-win_amd64.whl"
- Install specified dependencies with pip (Python Package Manager) with the following shell command:
pip install -U -r requirements.txt
- Navigate to folder containing manage.py.
- Create a dabase:
python manage.py migrate
- Run server:
python manage.py runserver
You are good to go! :)