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!