Electronic stock management. -- not updated anymore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Dashie der otter c972ac89c4 Just dump the args, that should be sufficient 3 年之前
controllers Use tags instead of categories 3 年之前
migrations Add migration 3 年之前
setup-data Translate; seed categories in bdd; sort tree 3 年之前
static Add static for chosen 3 年之前
templates Show name in page title 3 年之前
texttable @ 0eb812be61 YOLO FIRST COMMIT 4 年之前
uploads Add thumbs generation 4 年之前
.gitignore Add manufacturers logos; Add cron stuff for it 3 年之前
.gitmodules Cleaned static stuff 3 年之前
README.md Add command for untagged 3 年之前
barcode_utils.py Whoops not reverted that last time 3 年之前
config.py.sample Add public view 3 年之前
crons.py Just dump the args, that should be sufficient 3 年之前
dbseed.py Get rid of PartCategory, start working with tags 3 年之前
forms.py Add tags support, removes and add from parts, various parts switch cat to tags 3 年之前
models.py Show name in page title 3 年之前
requirements.txt Add stuff for FTS 4 年之前
stockazng.py Should fix 3 年之前
utils.py Error checking, no ? 3 年之前




Install PostgreSQL
Makes sure that encoding is/will be in UNICODE/UTF-8
-> https://wiki.archlinux.org/index.php/PostgreSQL#Change_default_encoding_of_new_databases_to_UTF-8
git clone http://dev.sigpipe.me/dashie/StockazNG
cd StockazNG
git submodule init
git submodule update
pip install --requirement requirements.txt --allow-external PIL --allow-unverified PIL
or apt-get install python-imaging python-pil # PIL is tricky with jpeg...
pip install psycopg2
cp config.py.sample config.py
$EDITOR config.py
python stockazng.py db upgrade
python stockazng.py db_seed
python stockazng.py mkdirs
python stockazng.py runserver # or whatever gunicorn whatever stuff


gunicorn -w 2 -b --error-logfile=errors.log --access-logfile=access.log --chdir=$PWD stockazng:app


*/5 * * * * cd ~/stockazng/ && python stockazng.py cron_cache > /dev/null
*/5 * * * * cd ~/stockazng/ && python stockazng.py cron_thumbs > /dev/null



  • TODO After release
  • How to add parts to projects
  • Projects reports (exports in CSV and Json)
  • One click “print barcode”
  • Add printing view for storage map
  • Add barcodes to storage map
  • Octopart integration for Parameters


If stuck on “Set all parts without tags to “untagged” for tags_slug”, runs :

  • python stockazng.py db upgrade 2396a54ec5
  • python stockazng.py db upgrade 55103a380b
  • python stockazng.py db upgrade

And it should pass.