An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface
-
Setup :
- Create a virtual env
- install
python-virtualenv - Go into the folder of the git repository and use
virtualenv --no-site-packages venv
- install
- Install configs/requirements.txt
- use
pip install -r config/requirements.txt - and then to make sure of all versions
pip install -r config/requirements.txt --upgrade
- use
- Install
libmysqlclient-dev python-devif not already installed - Modify configs/settings.sample.py to configs/settings.py with appropriate modifications
- Create a virtual env
-
TastyPie :
-
Till now, tastypie(v1.11) has some issues with through tables.
-
Need to replace (in the save_m2m function ~line 2300):
related_mngr.add(*related_objs)with :
if hasattr(related_mngr, 'add'): related_mngr.add(*related_objs) else: # handle m2m with a "through" class for other_obj in related_objs: related_mngr.through.objects.get_or_create(**{ related_mngr.source_field_name: bundle.obj, related_mngr.target_field_name: other_obj })
-
-
apiclient :
- There is a possibility that this error will occur in
apiclientImportError: from apiclient import __version__ - Fix: add
__version__ = '1.0.2'toapiclient/__init.py
- There is a possibility that this error will occur in