This Django application runs the Editors' Notes API and authentication server.
Editors' Notes uses PostgreSQL and Elasticsearch. Consult the documentation of those applications for installation instructions.
Editors' Notes currently uses Python 2.7.
This project depends on the Python package lxml
, which has two dependencies:
libxml2
, and libxslt1
. They can be installed with your OS's package manager.
- Ubuntu (aptitude):
apt-get install libxml2-dev libxslt1-dev
- Fedora (yum):
yum install libxml2-devel libxslt-devel
- OSX (homebrew):
brew install libxml2 libxslt && brew link libxml2 libxslt
See editorsnotes/editorsnotes.org for instructions on how to deploy Editors' Notes on a server using nginx and uWSGI.
Setting up a local environment requires the Python task runner Fabric, which can be installed with your package manager. Once it and the dependencies above have been installed, perform the following steps:
-
Run
fab setup
at the project root directory. This will set up a virtual environment for python packages, install all dependencies, make a skeleton configuration file, and collect all necessary static files. -
Edit the skeleton settings file
editorsnotes/settings_local.py
with information about your system. The only setting you must fill out is your database configuration. -
Run
fab sync_database
to execute all database migrations -
Start the development server with
fab runserver
FIXME: Add section about required editorsnotes-markup-renderer