Added generated static files of Django

This commit is contained in:
Jesús 2018-10-11 19:05:42 -05:00
parent 667d63fb81
commit ddec837518
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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!