This commit is contained in:
H.T. Kruitbosch 2017-11-28 14:27:32 +01:00
parent 00478e626b
commit eaf409d315
2 changed files with 20 additions and 4 deletions

View File

@ -1,7 +1,23 @@
# RuG website template with SAML2 login # RUG website template and single signon for django
Template and for creating a website in the University of Groningen *style*, which also helps you to get single sign-on
to work.
# CENTOS dependencies ## Getting started
yum install libxml2-devel libxslt-devel python34-devel xmlsec1-devel libmcrypt libmcrypt-devel xmlsec1-openssl ### Dependencies
Make sure these packages are installed on the webhost serving your website.
* **centos** `yum install libxml2-devel libxslt-devel python34-devel xmlsec1-devel libmcrypt libmcrypt-devel xmlsec1-openssl`
* **ubuntu** `sudo apt-get install libxml2-dev libxslt1-dev libxmlsec1-dev python3-dev`
## Virtualenv
I would suggest you use a virtualenv, this is a directory which contains the python executables and all python
packages, like django, python3-saml, etc.
mkdir rugwebsite && cd rugwebsite
virtualenv --python=/usr/bin/python3.5 venv
source venv/bin/activate
pip3 install git+ssh://git@git.webhosting.rug.nl:222/p253591/rug-website.git

View File

@ -28,7 +28,7 @@ setup(
install_requires=[ install_requires=[
'pyOpenSSL>=17.4.0', 'pyOpenSSL>=17.4.0',
'cryptography>=2.1.3,<3' 'cryptography>=2.1.3,<3',
'django>=1.11.7,<1.12', 'django>=1.11.7,<1.12',
'django-bootstrap4>=0.0.4,<0.1', 'django-bootstrap4>=0.0.4,<0.1',
'django-saml2-pro-auth>=0.0.2,<0.1' 'django-saml2-pro-auth>=0.0.2,<0.1'