Skip to main content

Quokka CMS!

Project description

Quokka CMS

The Happiest CMS in the world

NOTE: QuokkaCMS is being rewritten from scratch to be more simpler and use a flat file DB system the old QuokkaCMS based in MongoDB will be still available in <1.0.0 branch but will no longer be maintained or updated and fixes and improvements will be only community driven. I recommend you to use the migration script if you are using the old QuokkaCMS.

Quokka CMS is a small and simple Content Management System based in Python, Flask, Flask-Admin and TinyDB.

The default database system is TinyDB because it does not require a database system and stores data in a flat JSON file.

Altough you can also use MongoDB if you need to run the CMS in a concurrent admin user environment.

Why use QuokkaCMS?

  • You want a simple but powerful CMS for your website or blog

  • You want a lightweight platform simple to deploy

  • You want to be able to run without a database system

  • You want the possibility to optionally use a powerful NoSQL database

  • You want to have a web admin interface to manage your content and posts

  • You want to optionally generate your CMS as a static HTML website to host on github.io

  • You want to use the already existing and powerful Pelican Themes

  • You want to install and develop plugins easily

  • You like Quokkas (the animal)

  • You like Python

  • You like Flask

Quick Start

Install quokka

$ pip install quokka

NOTE: QuokkaCMS runs only in Python 3.6+

Start a project

$ quokka init mywebsite
Generating new quokka project in ~/mywebsite

The above command will generate your project files as:

theme\       # Pelican theme files
uploads\     # Files uploaded by you via admin interface
database\    # JSON database if using TinyDB (default)
plugins\     # Plugins (some generated by default)
build\       # Whwn static HTML is generated file output goes here
setting.yml  # Configurations
manage.yml   # Command line interface `quokka manage <command name>`

You can optionally pass arguments:

$ quokka init mywebsite --theme http://github.com/user/theme

Run your website

$ quokka manage runserver --port 5000

(optional) Populate with sample database

$ quokka manage sample_database

Access admin interface

http://localhost:5000/admin

Access your site

http://localhost:5000

Deploy

You can deploy your Quokka Website in a WSGI server

Check the wsgi.py and refer to it when deploying in wsgi servers.

gunicorn and uwsgi examples given in examples folder.

Publish Static HTML website

You can generate a static HTML website to host anywhere

Once you have your website running locally you can easily generate a static HTML website from it.

$ quokka freeze
Generating static HTML website on ./build folder

Once you have a ./build folder populated with static website you can deploy it using SCP, FTP or git.

Deploying to github pages from command line.

$ quokka publish --static --git=rochacbruno/mysite --branch=gh_pages

The above is also available in admin under ‘publish’ menu.

Deploying via SCP

$ quokka publish --static --scp --dest='me@hostname:/var/www/mysite'
password : ...
# you can pass --key to use it instead of password

Deploying yo Heroku

$ quokka publish --static --heroku --options

Deploying via FTP

$ quokka publish --static --ftp --host='ftp://server.com' --dest='/var/www/mysite'

Load database from remote deployment (only for TinyDB)

When you publish a static website along with the static files the database also goes to the server under the databases/ folder only as a backup and snapshot.

You can load that remote database locally e.g: to add new posts and then re-publish

$ quokka restoredb --remote --git=rochacbruno/mysite
Creating a backup of local database...
Downloading remote database
Restoring database..
Done...

Now you can run quokka runserver open your localhost:5000/admin write new content and then Publish website again using command line or admin interface.

If you want to restore a local database use –local and –path

Using MongoDB

You can choose to use MongoDB instead of TinyDB, That is useful specially if you deploy or local instance has more than one admin user concurrently and also useful if you want to install plugins which support MongoDB only (because it relies on aggregations and gridfs)

You only need a running instance of Mongo server and change settings.yml on your project from:

db_system: tinydb
db_folder: databases

to:

db_system: mongodb
db_name: my_database
db_host: 127.0.0.1
db_port: 2600
db_username: xxxx
db_password: xxxx

Then when running quokka again it will try to connect to that Mongo Server.

With that you can deploy your site on wsgi server or can also generate static website.

NOTE: Not all commands and plugins works with mongoDB

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quokka-0.3.0.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

quokka-0.3.0-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file quokka-0.3.0.tar.gz.

File metadata

  • Download URL: quokka-0.3.0.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quokka-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c2f7e78e2db8c49bbf3fe97fbccac70440007e6b43e691e1ed06fa6abb254071
MD5 7f66a0f454738f757aaa5afc22bee0fb
BLAKE2b-256 cfe58f79b664c9e42def8f87096b70c6a5ad62ae10849f47693bd82f639258d9

See more details on using hashes here.

File details

Details for the file quokka-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quokka-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 233cad46328cf378af1a39df5420ee610c3e6690bda3fbd7f93774a12766387a
MD5 65b982c2ec8f85ee3aede1c464822e08
BLAKE2b-256 d3c66efc320421029d06c33fc36baa575ea0f9edf20e872b297399ee27964e01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page