Skip to content

An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface

Notifications You must be signed in to change notification settings

Phoenix25/fest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fest-api

An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface

  1. Setup :

    • Create a virtual env
      • install python-virtualenv
      • Go into the folder of the git repository and use virtualenv --no-site-packages venv
    • 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
        
    • Install libmysqlclient-dev python-dev if not already installed
    • Modify configs/settings.sample.py to configs/settings.py with appropriate modifications
  2. 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
       		})
      
  3. apiclient :

    • There is a possibility that this error will occur in apiclient ImportError: from apiclient import __version__
    • Fix: add __version__ = '1.0.2' to apiclient/__init.py

About

An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 46.0%
  • JavaScript 31.1%
  • CSS 22.9%