Admin Image With remote Cloud Storage With Local Web Admin Page
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
application
config
deploy
tests
upload
.gitignore
LICENSE
README.md
commands.py
manage.py
pylintrc
requirements.txt
running-info.log
wsgi.py

README.md

Image Admin

Admin image by upload them to cloud storage and show them in local web admin page

Usage

prepare

pip install -r requirements.txt

make sure you have run a mongodb anywhere and config in config/default.py

run server

python manager -c production runserver

upload api

import requests

url = "http://localhost:5000"
files = {'smfile': open(local_path, 'rb')}
resp = json.loads(requests.post(url, files=files).text)
if resp.get('code') == 'success':
	print "success"
else:
    print "fail"

Dependence

MongoDB >= 3.0.0

Where to used

Windows

you can use it by SharedX, and i have push an customer uploader config: sm.ms.json

Run alone

you can only run it alone for manager your uploaded images.

TODO

visit http://localhost:5000/images can view all images you ever uploaded.