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`.
|
||||
|
||||
```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
|
||||
|
12
README.md
12
README.md
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user