[README.md]: update
This commit is contained in:
parent
f6b39a2b4c
commit
de432a4b83
18
HACKING.md
18
HACKING.md
@ -147,11 +147,14 @@ LoadModule wsgi_module modules/mod_wsgi.so
|
||||
|
||||
- Create vhosts, for example:
|
||||
|
||||
$ sudo nano -w /etc/httpd/conf/extra/httpd-vhosts.conf
|
||||
```console
|
||||
$ sudo nano -w /etc/httpd/conf/extra/httpd-vhosts.conf
|
||||
```
|
||||
|
||||
and inside write the configuration, example:
|
||||
|
||||
<IfModule ssl_module>
|
||||
```apacheconf
|
||||
<IfModule ssl_module>
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin example@dominio.com
|
||||
ServerName example.com
|
||||
@ -178,17 +181,22 @@ LoadModule wsgi_module modules/mod_wsgi.so
|
||||
WSGIScriptAlias / /path/to/site/wsgi.py
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
```
|
||||
|
||||
- Replace `ALLOWED_HOSTS = []`
|
||||
|
||||
on setting.py to:
|
||||
|
||||
ALLOWED_HOSTS = ["example.com", "localhost"]
|
||||
```python
|
||||
ALLOWED_HOSTS = ["example.com", "localhost"]
|
||||
```
|
||||
|
||||
- Added on setting.py:
|
||||
|
||||
STATIC_ROOT = '/path/to/site/core/static'
|
||||
```python
|
||||
STATIC_ROOT = '/path/to/site/core/static'
|
||||
```
|
||||
|
||||
- Generated files static of Admin Django (you must be inside the virtualenv).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user