Electronic stock management.

Dashie c972ac89c4 Just dump the args, that should be sufficient 1 year ago
controllers 3425fe8d4e Use tags instead of categories 1 year ago
migrations 221025902d Add migration 1 year ago
setup-data bdf59948f5 Translate; seed categories in bdd; sort tree 1 year ago
static bd5494bfab Add static for chosen 1 year ago
templates f1be8d38fe Show name in page title 1 year ago
texttable @ 0eb812be61 77e8c3548c YOLO FIRST COMMIT 1 year ago
uploads 4dae8ba91a Add thumbs generation 1 year ago
.gitignore 9468058d92 Add manufacturers logos; Add cron stuff for it 1 year ago
.gitmodules 9583321f8d Cleaned static stuff 1 year ago
README.md bfb7d6b3f5 Add command for untagged 1 year ago
barcode_utils.py 5b49e86c71 Whoops not reverted that last time 1 year ago
config.py.sample 8f6debc39b Add public view 1 year ago
crons.py c972ac89c4 Just dump the args, that should be sufficient 1 year ago
dbseed.py 8c0dfc8a5c Get rid of PartCategory, start working with tags 1 year ago
forms.py fbf9a7115c Add tags support, removes and add from parts, various parts switch cat to tags 1 year ago
models.py f1be8d38fe Show name in page title 1 year ago
requirements.txt dcbc546866 Add stuff for FTS 1 year ago
stockazng.py f91511358e Should fix 1 year ago
utils.py 5aa1ea6a97 Error checking, no ? 1 year ago

README.md

StockazNG

Installation

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

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

Crontabs

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

Licensing

TODO

  • 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

Upgrades

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

  • python stockazng.py db upgrade 2396a54ec576
  • python stockazng.py db upgrade 55103a380b6c
  • python stockazng.py db upgrade

And it should pass.