[README.md]: update

This commit is contained in:
Jesús 2021-05-30 18:20:43 -05:00
parent f6b39a2b4c
commit de432a4b83
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -147,10 +147,13 @@ LoadModule wsgi_module modules/mod_wsgi.so
- Create vhosts, for example: - Create vhosts, for example:
```console
$ sudo nano -w /etc/httpd/conf/extra/httpd-vhosts.conf $ sudo nano -w /etc/httpd/conf/extra/httpd-vhosts.conf
```
and inside write the configuration, example: and inside write the configuration, example:
```apacheconf
<IfModule ssl_module> <IfModule ssl_module>
<VirtualHost *:80> <VirtualHost *:80>
ServerAdmin example@dominio.com ServerAdmin example@dominio.com
@ -179,16 +182,21 @@ LoadModule wsgi_module modules/mod_wsgi.so
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>
```
- Replace `ALLOWED_HOSTS = []` - Replace `ALLOWED_HOSTS = []`
on setting.py to: on setting.py to:
```python
ALLOWED_HOSTS = ["example.com", "localhost"] ALLOWED_HOSTS = ["example.com", "localhost"]
```
- Added on setting.py: - Added on setting.py:
```python
STATIC_ROOT = '/path/to/site/core/static' STATIC_ROOT = '/path/to/site/core/static'
```
- Generated files static of Admin Django (you must be inside the virtualenv). - Generated files static of Admin Django (you must be inside the virtualenv).