Electronic stock management. -- not updated anymore
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.
Dashie der otter c972ac89c4 Just dump the args, that should be sufficient pirms 3 gadiem
controllers Use tags instead of categories pirms 3 gadiem
migrations Add migration pirms 3 gadiem
setup-data Translate; seed categories in bdd; sort tree pirms 3 gadiem
static Add static for chosen pirms 3 gadiem
templates Show name in page title pirms 3 gadiem
texttable @ 0eb812be61 YOLO FIRST COMMIT pirms 4 gadiem
uploads Add thumbs generation pirms 4 gadiem
.gitignore Add manufacturers logos; Add cron stuff for it pirms 3 gadiem
.gitmodules Cleaned static stuff pirms 3 gadiem
README.md Add command for untagged pirms 3 gadiem
barcode_utils.py Whoops not reverted that last time pirms 3 gadiem
config.py.sample Add public view pirms 3 gadiem
crons.py Just dump the args, that should be sufficient pirms 3 gadiem
dbseed.py Get rid of PartCategory, start working with tags pirms 3 gadiem
forms.py Add tags support, removes and add from parts, various parts switch cat to tags pirms 3 gadiem
models.py Show name in page title pirms 3 gadiem
requirements.txt Add stuff for FTS pirms 4 gadiem
stockazng.py Should fix pirms 3 gadiem
utils.py Error checking, no ? pirms 3 gadiem

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 2396a54ec5
  • python stockazng.py db upgrade 55103a380b
  • python stockazng.py db upgrade

And it should pass.