This is a Python3 and Django powered backend for FMF.si, student community of Faculty of Mathematics and Physics, University of Ljubljana.
You will need the following things properly installed on your computer.
git clone https://github.com/FMF-studenti/backend.git
- change into the new directory
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt
- copy
sample.env
to.env
and adapt to your local environment - migrate database
foreman run python manage.py migrate
- (optional) create admin user
foreman run python manage.py createsuperuser
- (optional) install Discourse for local integration development]
- (optional) install foreman for easier local running
- always make sure you are in the correct virtualenv
(
source venv/bin/activate
) foreman start
- visit the backend at http://localhost:5000
- (optional) import fixtures:
foreman run python manage.py loaddata <file>
- (optional) export variables in
.env
and runmanage.py
commands directly
TODO
- follow installation steps and add uwsgi vassal with
uwsgi.ini
- checkout latest tag/stable code on server
foreman run python manage.py collectstatic
- restart
uwsgi-emperor
service
Copyright (C) 2015 Tadej Novak
This project may be used under the terms of the GNU General Public License version 2.0 (or later) as published by the Free Software Foundation and appearing in the file LICENSE.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.