From ddec837518993275f10a772c96cab4c22603ed0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 11 Oct 2018 19:05:42 -0500 Subject: [PATCH] Added generated static files of Django --- HACKING.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/HACKING.md b/HACKING.md index e7eb6bd..7aaebc6 100644 --- a/HACKING.md +++ b/HACKING.md @@ -74,6 +74,7 @@ ./manage.py createsuperuser + # Run with Apache server and wsgi 1. Install WSGI for Apache @@ -131,18 +132,24 @@ 5. Added on setting.py: - STATIC_ROOT = '/path/to/site/core/static' + STATIC_ROOT = '/path/to/site/core/static' -6. Create the media/ directory +6. Generated files static of Admin Django (you must be inside the virtualenv). + + ./manage.py collectstatic + +7. Create the media/ directory cd /path/to/personalsite mkdir media/ -7. Change Permition to media/ at group http +8. Change Permition to media/ at group http sudo chown -R http:http media/ -8. Restart Apache server +9. Restart Apache server sudo service httpd restart + +10. Done!