Simple, single-user Python CMS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
.gitignore
LICENSE.md
README.md
config.py
main.py
schema.sql
site.wsgi

README.md

py-mCMS

Intro

This is a simple single-user CMS which stores the pages in a SQLite database.

Created with Python & Flask. Requires Python 2.6 or higher. Doesn't work with Python 3.

For an example site, see my website: Mark Mäkinen

Installation

  1. Clone the repo
  • Optional: Install virtualenv

    Linux:

    $ sudo apt-get install python-virtualenv
    $ cd repo/
    $ virtualenv venv
    $ . venv/bin/activate
    
  1. Install Flask

    pip install Flask

  2. Create the database

    sqlite3 site.db < schema.sql

  3. Configure by editing config.py

    • Remember to generate the secret key by using os.urandom(24)!
    • Also remember to set configured to True
  4. Run in debug mode with python main.py OR configure WSGI by editing site.wsgi and your webserver configuration.

  5. Visit admin page to add/edit/show/hide/remove pages (http://localhost/admin). (You can also click the small "A" on the bottom left corner of any page!)