Total Pageviews

Monday, 24 March 2014

Quokka -基于Flask和MongoDB 的cms程序


Flask and MongoDB powered CMS

Quokka is a flexible content management platform powered by Python, Flask and MongoDB.

Quick start

You need a MongoDB instance running locally or remotely to connect. Quokka runs on Python 2.7
  1. Get Quokka
$ git clone https://github.com/pythonhub/quokka
$ cd quokka
$ pip install -r requirements.txt
  1. Define your MongoDB settings
$ $EDITOR quokka/local_settings.py
===============quokka/quokka/local_settings.py===============
MONGODB_SETTINGS = {'DB': 'your_mongo_db'}
DEBUG = True
=============================================================
  1. Populate with sample data (optional)
$ python manage.py populate 

  1. Create a superuser
$ python manage.py createsuperuser
you@email.com
P4$$W0Rd
  1. Run
$ python manage.py runserver
  1. Access on http://localhost:5000
  2. Admin on http://localhost:5000/admin
or by making your server reachable on other networks
$ python manage.py run0
  1. Access on http://0.0.0.0:8000
  2. Admin on http://0.0.0.0:8000/admin

Docs on Wiki

from https://github.com/pythonhub/quokka