mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-22 12:46:30 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -9,6 +9,10 @@ env/
|
|||||||
./build/
|
./build/
|
||||||
develop-eggs/
|
develop-eggs/
|
||||||
dist/
|
dist/
|
||||||
|
bin/
|
||||||
|
lib64
|
||||||
|
pyvenv.cfg
|
||||||
|
share/
|
||||||
downloads/
|
downloads/
|
||||||
eggs/
|
eggs/
|
||||||
.eggs/
|
.eggs/
|
||||||
|
@@ -22,6 +22,23 @@ To install InvenTree you will need the following system components installed:
|
|||||||
|
|
||||||
Each of these programs need to be installed (e.g. using apt or similar) before running the ``make install`` script.
|
Each of these programs need to be installed (e.g. using apt or similar) before running the ``make install`` script.
|
||||||
|
|
||||||
|
Virtual Environment
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Installing the required Python packages inside a virtual environment allows a local install separate to the system-wide Python installation. While not strictly necessary, using a virtual environment is highly recommended as it prevents conflicts between the different Python installations.
|
||||||
|
|
||||||
|
To configure Inventree inside a virtual environment, ``cd`` into the inventree base directory and run the following commands:
|
||||||
|
|
||||||
|
``apt-get install python3-venv``
|
||||||
|
|
||||||
|
``source inventree/bin/activate``
|
||||||
|
|
||||||
|
This will place the current shell session inside a virtual environment - the terminal should display the ``(inventree)`` prefix.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Remember to run ``source inventree/bin/activate`` when starting each shell session, before running Inventree commands. This will ensure that the correct environment is being used.
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
@@ -58,7 +75,7 @@ Once install settings are correctly configured (in *config.yaml*) run the initia
|
|||||||
|
|
||||||
``make migrate``
|
``make migrate``
|
||||||
|
|
||||||
which performs the initial database migrations, creating the required tables, etc
|
This performs the initial database migrations, creating the required tables, etc.
|
||||||
|
|
||||||
The database should now be installed!
|
The database should now be installed!
|
||||||
|
|
||||||
|
@@ -6,5 +6,5 @@ ignore =
|
|||||||
E501, E722,
|
E501, E722,
|
||||||
# - C901 - function is too complex
|
# - C901 - function is too complex
|
||||||
C901,
|
C901,
|
||||||
exclude = .git,__pycache__,*/migrations/*
|
exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*
|
||||||
max-complexity = 20
|
max-complexity = 20
|
||||||
|
Reference in New Issue
Block a user