-
Notifications
You must be signed in to change notification settings - Fork 0
Installation, running local build, updating articles
William Washington edited this page Aug 26, 2024
·
3 revisions
-
sudo apt install python3 python3-pip
(Not needed for Macs) -
python3 -m pip install --upgrade pip setuptools wheel
(Check to see if already installed using “python3 -v” If so, skip this step) -
pip install --upgrade pycodestyle
(Should already be included on a Mac and not needed) -
pip install --upgrade virtualenv
(Should already be included on a Mac and not needed) git clone https://github.com/uw-it-aca/hx-toolkit.git
- edit project/settings.py,
- add
'hx_toolkit'
to INSTALLED_APPS list - add
MEDIA_URL = '/uploaded_images/'
- add
MEDIA_ROOT = BASE_DIR / '/hx_images'
- add
cd hx-toolkit
'python3 -m venv .'
source bin/activate
pip3 install .
django-admin startproject project .
pip3 install .
source bin/activate
./manage.py runserver localhost:8899
- Open admin interface at: http://localhost:8899/admin/ (user: thrive, password: spiffyhellbentbadger)
- make a new branch from main
- edit articles in admin interface
- once editing is complete, run command
./manage.py thrive
- Commit and push changed files
- Make new release on HXT repository
Published at https://pypi.org/project/UW-HX-Toolkit/