~heckyel/personal-site

d8cdd0c971fd52acf97f913598aa0138c7cf8f6b — Jesús 2 years ago 359b024
Update docs
2 files changed, 13 insertions(+), 13 deletions(-)

M HACKING.md
M README.md
M HACKING.md => HACKING.md +7 -7
@@ 32,7 32,7 @@ $ source ./venv/bin/activate
- Install dependencies through `pip`.

```console
$ pip install -r requirements_prod.txt
$ pip install -r django/requirements_prod.txt
```

## Configuration Postgres


@@ 88,7 88,7 @@ $ dropdb namebase
  PostgreSQL).

```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:


@@ 109,25 109,25 @@ DATABASES = {
- Check syntax.

```console
$ python manage.py check --deploy
$ python django/manage.py check --deploy
```

- Make migrations

```console
$ python manage.py makemigrations
$ python django/manage.py makemigrations
```

- Migrate changes.

```console
$ python manage.py migrate
$ python django/manage.py migrate
```

- Create superUSER

```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).

```console
$ python manage.py collectstatic
$ python django/manage.py collectstatic
```

- Create the media/ directory

M README.md => README.md +6 -6
@@ 43,29 43,29 @@ packages, you will probably want the following:

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.
   Make sure to uncomment the appropriate database section (either sqlite or
   PostgreSQL).

        $ cp -v personalsite/settings.py.example personalsite/settings.py
        $ cp -v django/personalsite/settings.py.example django/personalsite/settings.py

6. Check syntax.

        $ python manage.py check --deploy
        $ python django/manage.py check --deploy

7. Migrate changes.

        $ python manage.py migrate
        $ python django/manage.py migrate

8. Create superUSER

        $ python manage.py createsuperuser
        $ python django/manage.py createsuperuser

9. Use the following commands to start a service instance

        $ python manage.py runserver
        $ python django/manage.py runserver

## Production Installation