Python Galery
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.txt 775B

1. Setupt venev
* virtualenv -p /usr/bin/python3 pygal-venv
* ln -s pygal-venv/bin/activate
* source activate
* Sometimes upgrades are needed: pip list --outdated | cut -d ' ' -f 1 | xargs pip install $1 --upgrade
* pip install -r requirements.txt
2. python manage.py migrate
3. python manage.py createsuperuser
4. Set SECRET:KEY in config.py
5. Set ITEM_ROOT in config.py to your item target path, otherwise the example_data is used
6. python manage.py collectstatic
7. chgrp www-data . && chmod 770 .
8. chgrp www-data db.sqlite3 && chmod 664 db.sqlite3
9. chgrp www-data -R data
9.1. find data -type d -exec chmod 775 "{}" \;
9.2. find data -type f -exec chmod 664 "{}" \;

x. Run server by command "python manage.py runserver 0.0.0.0:8000" or add App to apache