Coder Social home page Coder Social logo

ebay's Introduction

inventorum.ebay

Prerequisities

Install some required packages

apt-get install libxml2-dev libxslt1-dev python2.7-dev

Mac OS X:

sudo port -v install erlang xmlto

Quickstart

To bootstrap the project:

python2.7 -sS bootstrap.py
bin/buildout -vv

bin/provisioning/provision_db src/inventorum.ebay/development.ini inventorum_ebay_develop -D
bin/provisioning/provision_rabbitmq src/inventorum.ebay/development.ini

Running tests

To run all tests:

bin/ebay/manage src/inventorum.ebay/test.ini test --noinput src/inventorum.ebay/inventorum/ebay/apps

If you want to skip tests that take really long (like parsing ebay categories etc) you can apply environment variable SKIP_LONG_TESTS with value 1. (ONLY FOR DEVELOPMENT PURPOSES!)

Working with the database

To reset database:

bin/db_provision src/inventorum.ebay/development.ini inventorum_ebay_develop -D

To apply migrations:

bin/ebay/manage src/inventorum.ebay/development.ini migrate

To generate migrations:

bin/ebay/manage src/inventorum.ebay/development.ini makemigrations <app_name>

Known issues

Deprecated? On Andis computer it works with Python 2.7.9 Nope, on Mikes and Julians it works only <= 2.7.8

In case you are getting this error in test:

TypeError: __init__() got an unexpected keyword argument 'server_hostname'

You need to downgrade python to 2.7.8

sudo port activate python27 @2.7.8

Account we are using for testing

# Inventorum test account (slingshot)
Email: [email protected]
Account id: 346
User id: 425
Pin: 1111
Password: login

How to add images in console on slingshot

>>> parent = ProductModel.objects.get(id=666032)
>>> first_child = parent.childrens.first()
>>> last_child = parent.childrens.last()
>>> first_hash_image = ImageHashModel.objects.get(id=2978)
>>> second_hash_image = ImageHashModel.objects.get(id=2979)
>>> first_child.images.add(first_hash_image)
>>> last_child.images.add(second_hash_image)

ebay's People

Contributors

bimusiek avatar bartoszhernas avatar

Watchers

James Cloos avatar Emil Massarwa avatar Hisham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.