Meieraha version 2
Project description
Installation
Depending on how you obtain the package, you may install it in different ways. If the package was obtained as a source distribution, you should install it using pip:
$ pip install meieraha2-<version>.zip
If you checked out a development repository, you may install the package by running:
$ python setup.py install
If you are planning on developing the package, a useful alternative to installation is:
$ python setup.py develop
or, if you do not have write access to your Python installation and are not using a virtualenv:
$ python setup.py develop --user
Usage
The package contains a Flask-based web application. To launch the application you need to do the following:
Run:
$ meieraha2-manage sampleconfigFollow the instructions output by the command.
To create a packaged distribution you need to run the following:
$ meieraha2-manage assets build $ python setup.py sdist
Development
In order to run the application in development mode you need to have a full repository checked out. You also should have the compass tool installed and accessible in your path. The server can then be run in development mode as follows:
$ export CONFIG=meieraha2.config.DevConfig $ meieraha2-manage createdb $ meieraha2-manage loaddata $ meieraha2-manage runserver
If you edit CSS or Javascript files, you will need to rebuild the assets bundle via
$ meieraha2-manage assets build
Deployment
There is a starter Fabric configuration file fabfile.py which may help automate deployment. It needs tayloring before used, though. Sample deployment configuration is in deploy/aws.
Copyright
The code was developed by Konstantin Tretyakov and Tanel Kärp with the help from many other people on the Meieraha team (see http://meieraha.ee)
The code is licensed as MIT, feel free to contribute.
The repository includes full distributions of some external libraries (to simplify deployment). Those are subject to their own licences. All are open source, though.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file meieraha2-2.2.2.tar.gz
.
File metadata
- Download URL: meieraha2-2.2.2.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3ab3232baa2735765ea50854731e8993a4bffd69eb60413f66ca5ad07da7f0 |
|
MD5 | 8c014dab073242bb4f5f83104320fa3c |
|
BLAKE2b-256 | 1848a119559e0909f6504149315504e3dc32975cd1461ac0a70470ac8cb89529 |