Update docs
This commit is contained in:
parent
359b024c82
commit
d8cdd0c971
14
HACKING.md
14
HACKING.md
@ -32,7 +32,7 @@ $ source ./venv/bin/activate
|
|||||||
- Install dependencies through `pip`.
|
- Install dependencies through `pip`.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ pip install -r requirements_prod.txt
|
$ pip install -r django/requirements_prod.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration Postgres
|
## Configuration Postgres
|
||||||
@ -88,7 +88,7 @@ $ dropdb namebase
|
|||||||
PostgreSQL).
|
PostgreSQL).
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ cp -v personalsite/settings.py.example personalsite/settings.py
|
$ cp -v django/personalsite/settings.py.example django/personalsite/settings.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace sqlite configuartion to postgres, example:
|
Replace sqlite configuartion to postgres, example:
|
||||||
@ -109,25 +109,25 @@ DATABASES = {
|
|||||||
- Check syntax.
|
- Check syntax.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python manage.py check --deploy
|
$ python django/manage.py check --deploy
|
||||||
```
|
```
|
||||||
|
|
||||||
- Make migrations
|
- Make migrations
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python manage.py makemigrations
|
$ python django/manage.py makemigrations
|
||||||
```
|
```
|
||||||
|
|
||||||
- Migrate changes.
|
- Migrate changes.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python manage.py migrate
|
$ python django/manage.py migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create superUSER
|
- Create superUSER
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python manage.py createsuperuser
|
$ python django/manage.py createsuperuser
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ 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).
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python manage.py collectstatic
|
$ python django/manage.py collectstatic
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create the media/ directory
|
- Create the media/ directory
|
||||||
|
12
README.md
12
README.md
@ -43,29 +43,29 @@ packages, you will probably want the following:
|
|||||||
|
|
||||||
4. Install dependencies through `pip`.
|
4. Install dependencies through `pip`.
|
||||||
|
|
||||||
$ pip install -r requirements.txt
|
$ pip install -r django/requirements.txt
|
||||||
|
|
||||||
5. Copy `settings.py.example` to `settings.py` and modify.
|
5. Copy `settings.py.example` to `settings.py` and modify.
|
||||||
Make sure to uncomment the appropriate database section (either sqlite or
|
Make sure to uncomment the appropriate database section (either sqlite or
|
||||||
PostgreSQL).
|
PostgreSQL).
|
||||||
|
|
||||||
$ cp -v personalsite/settings.py.example personalsite/settings.py
|
$ cp -v django/personalsite/settings.py.example django/personalsite/settings.py
|
||||||
|
|
||||||
6. Check syntax.
|
6. Check syntax.
|
||||||
|
|
||||||
$ python manage.py check --deploy
|
$ python django/manage.py check --deploy
|
||||||
|
|
||||||
7. Migrate changes.
|
7. Migrate changes.
|
||||||
|
|
||||||
$ python manage.py migrate
|
$ python django/manage.py migrate
|
||||||
|
|
||||||
8. Create superUSER
|
8. Create superUSER
|
||||||
|
|
||||||
$ python manage.py createsuperuser
|
$ python django/manage.py createsuperuser
|
||||||
|
|
||||||
9. Use the following commands to start a service instance
|
9. Use the following commands to start a service instance
|
||||||
|
|
||||||
$ python manage.py runserver
|
$ python django/manage.py runserver
|
||||||
|
|
||||||
## Production Installation
|
## Production Installation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user