-
Notifications
You must be signed in to change notification settings - Fork 9
Home
APIS has some dependencies that will need to be installed on the server.
This is usually available through apt if using an Ubuntu server. For other servers or additional installation instructions see: https://www.postgresql.org/download/
See the full installation script below for additional steps
Optional - If you want to be able to administer the database from outside the server, see the docs here: https://www.postgresql.org/docs/9.3/static/admin.html
Installation instructions are available here: https://docs.djangoproject.com/en/1.9/ref/databases/#postgresql-notes
This is available through apt if using an Ubuntu server. See https://httpd.apache.org/ for instructions and documentation.
Installation instructions are available here: https://docs.djangoproject.com/en/1.9/topics/install/#install-apache-and-mod-wsgi
For Ubuntu, installation and configuration instructions are here: https://help.ubuntu.com/lts/serverguide/git.html
This is usually available through apt if using an Ubuntu server.
Additional installation and setup documentation for this admin plugin is available here: https://django-import-export.readthedocs.io/en/latest/installation.html
The current implementation is Square. If you'd like to use a different account, replace the square implementations on checkout templates and change the payments.py file as needed to perform transactions.
DO NOT check in your production merchant account keys.
Some of this might be in the full installation script below. Werkzeug should not be installed on production servers unless you know how to secure it properly.
sudo apt-get install python-dev libffi-dev libssl-dev sendmail python-configobj zlib1g libx11-6 fontconfig libfreetype6 libxext6 libxrender1
sudo pip install pytz authorizenet django-import-export django-mathfilters django-nested-inline django-extensions Werkzeug
cd /tmp
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo tar -C /usr/local -xJvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz wkhtmltox
We try to keep this as up-to-date as possible. YYMV.
apt-get update
sudo apt-get install postgresql-9.3 python-psycopg2
sudo -u postgres psql postgres
create database <db>;
create user <user>;
alter user <user> with password 'something-here';
ALTER ROLE <user> SET client_encoding TO 'utf8';
ALTER ROLE <user> SET default_transaction_isolation TO 'read committed';
ALTER ROLE <user> SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE <db> TO <user> ;
sudo service postgresql start
sudo update-rc.d postgresql enable
sudo apt-get install libapache2-mod-wsgi git
sudo apt-get install python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-dev
sudo apt-get install python-pip build-essential
sudo pip install pytz django-import-export django-mathfilters django-nested-inline
sudo pip install Django==1.9.8
sudo pip install pyxb==1.2.4
sudo pip install -U pip
The following are general steps to getting the site running. See the Django tutorial for more information.
cd ~
mkdir projects
cd projects
git clone https://github.com/furthemore/APIS.git
--change settings in APIS/fm_eventmanager/settings.py as needed--
--DEBUG to true or false (depending on server role)
--Mail service settings
--change path in wsgi.py--
--create superuser--
--migrate database--
--collect static--