From d8cdd0c971fd52acf97f913598aa0138c7cf8f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 9 Feb 2022 11:20:42 -0500 Subject: [PATCH] Update docs --- HACKING.md | 14 +++++++------- README.md | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/HACKING.md b/HACKING.md index 42c4da2..452f045 100644 --- a/HACKING.md +++ b/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 diff --git a/README.md b/README.md index 910f563..a9d44bc 100644 --- a/README.md +++ b/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 -- 2.45.2