Unify Events - Calendar of Events and Activities at the University of Central Florida and Orlando, FL
- Install Open-LDAP development headers (debian: openldap-dev, rhel: openldap-devel)
- via Homebrew:
brew install openldap
-
Create virtual environment and
cd
to itpython3 -m venv ENV cd ENV
-
Clone repo to a subdirectory (ex.
git clone REPO_URL src
) -
Activate virtual environment
source bin/activate
-
cd
to new src directory and install requirementscd src pip install -r requirements.txt
NOTE: if
pip install
returns a block of error text includingfatal error: 'sasl.h' file not found
upon installingpython-ldap
, do the following:-
In requirements.txt, comment out the
python-ldap
requirement. -
Re-run
pip install -r requirements.txt
. It should complete successfully. -
Run the following, replacing "VERSION" with the version number specified for the
python-ldap
package in requirements.txt:pip install python-ldap==VERSION \ --global-option=build_ext \ --global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
-
Un-comment the
python-ldap
requirement in requirements.txt and save the file.
-
-
Set up local settings using the settings_local.templ.py file
-
Set up static_files/static/robots.txt using static_files/static/robots.templ.txt
-
Run the deployment command:
python manage.py deploy
. This runs any migrations and collects the static files. -
Create a superuser:
python manage.py createsuperuser
-
If you don't intend on importing any existing calendar data, create a Main Calendar and assign your superuser account as the owner. Otherwise, skip this step