It is easy to make local copy of this project. All you need is Python 2.7!
If you've never used virtualenv before, you'll advise you to read about
virtualenv and
virtualenvwrapper
virtualenv is not required for this project, but you should use it as a good python development practice
- Install all requirements by running
pip install -r requirements.txt
in project root- To install some python libraries like
python-ldap
orpsycopg2
you might need to install some OS based packages. Please refer to their individual installation guideline on their homepages.
- To install some python libraries like
- Copy configurable settings file
sso/settings_user.py.sample
tosso/settings_user.py
- Edit
sso/settings_user.py
and add configurations and credentials - If you are planning to run in production, you should add database settings in
sso/settings_user.py
- Add
SECRET_KEY
insso/settings_user.py
- Run migrations by
python manage.py migrate
- Create superuser by running
python manage.py createsuperuser
- Run
python manage.py runserver
. Open browser athttp://localhost:8000/
- Congrats! Installation is complete!
- Install python3-pip and necessary LDAP libraries:
sudo apt-get install python3-pip libsasl2-dev libldap2-dev libssl-dev
- Install requirements:
pip3 install -r requirements/base.txt
Proceed as above for the remainder.