Added generated static files of Django
This commit is contained in:
parent
667d63fb81
commit
ddec837518
15
HACKING.md
15
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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user