mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Prefix correct directory in docs
This commit is contained in:
parent
b0c420858b
commit
47e9c44c43
@ -31,7 +31,9 @@ Directories for storing *media* files and *static* files should be specified in
|
|||||||
Collect Static Files
|
Collect Static Files
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
The required static files must be collected into the specified ``STATIC_ROOT`` directory. Run ``python3 manage.py collectstatic``
|
The required static files must be collected into the specified ``STATIC_ROOT`` directory:
|
||||||
|
|
||||||
|
``python3 InvenTree/manage.py collectstatic``
|
||||||
|
|
||||||
Configure Gunicorn
|
Configure Gunicorn
|
||||||
------------------
|
------------------
|
||||||
|
@ -12,7 +12,7 @@ In the case that data needs to be migrated from one database installation to ano
|
|||||||
Export Data
|
Export Data
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
``python3 manage.py dumpdata --exclude contenttypes --exclude auth.permission --indent 2 > data.json``
|
``python3 InvenTree/manage.py dumpdata --exclude contenttypes --exclude auth.permission --indent 2 > data.json``
|
||||||
|
|
||||||
This will export all data (including user information) to a json data file.
|
This will export all data (including user information) to a json data file.
|
||||||
|
|
||||||
@ -21,13 +21,13 @@ Initialize Database
|
|||||||
|
|
||||||
Configure the new database using the normal processes (see `Getting Started <start.html>`_):
|
Configure the new database using the normal processes (see `Getting Started <start.html>`_):
|
||||||
|
|
||||||
``python3 manage.py makemigrations``
|
``python3 InvenTree/manage.py makemigrations``
|
||||||
|
|
||||||
``python3 manage.py migrate --run-syncdb``
|
``python3 InvenTree/manage.py migrate --run-syncdb``
|
||||||
|
|
||||||
Import Data
|
Import Data
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
The new database should now be correctly initialized with the correct table structures requried to import the data.
|
The new database should now be correctly initialized with the correct table structures requried to import the data.
|
||||||
|
|
||||||
``python3 manage.py loaddata data.json``
|
``python3 InvenTree/manage.py loaddata data.json``
|
Loading…
x
Reference in New Issue
Block a user