Skip to content

iitbaakash/aakashlabs

 
 

Repository files navigation

./static/images/aakash-logo.png An official site for Aakash tablet. (Now in Python-django)

Clone

  • Clone this repository
    git clone https://github.com/psachin/aakashlabs.git
        

Usage

  • Install dependency using virtualenv. To know more about virtualenv visit this link.
    pip install -r requirements.txt
    
        

    or

    easy_install `cat requirements.txt`
        

    should also work instead of `pip`.

Deploy

Using Apache and mod_wsgi

  • Install Apache WSGI module mod_wsgi
  • Configure Apache(TODO)
  • Configure Django WSGI(TODO)
  • Install dependencies (for MySQL)

    CentOS

    sudo yum install python-devel
    sudo yum install mysql-devel
        

    Ubuntu-12.04

    sudo apt-get install python-dev
    sudo apt-get install libmysqlclient-dev
        
  • Collect all static files.
python manage.py collectstatic

This will collect all the static files(including admin CSS/JS) and copy them to aakashlabs/aakashlabs/static.

  • Restart the server
    sudo service httpd restart
        

Populate database

  • populate_al.py will create an Admin user and populates the database.
  • And run the script
    python populate_al.py
        

    It will prompt for admin password.

    Alternately you can run

    python manage.py syncdb
        

    and insert data using the ‘admin’ interface.

  • Finally run development server
    python manage.py runserver
        

Other files

  • rc_parser.py: Parses rc.csv and create two files, ac_list.py and coordinators_list.py.
  • ac_list.py: Python dictionary contains Aakash centers list.
  • coordinators_list.py: Python dictionary contains Aakash center coordinators information.
  • project_parser.py: Parses projects.csv and creates project_list.py.
  • project_list.py: Contains all project detail.

How to Contribute?

  • Please create a separate branch(with appropriate name) and send pull request.
  • Your branch name should be specific to your changes/features. Say for example if you added a new view & a template to show project details, name it as new_project_template.
  • Your code and changes should be properly commented.
  • Don’t change models. If you feel that it is a necessity, please raise an issue first. Let others know why you feel it is important(Others work may be based of present model and your change will screw their work.)
  • I like small & specific changes. So don’t send variety of changes in one go.

License

About

Source code of aakashlabs.org/aakashlabs.in

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 62.5%
  • CSS 36.4%
  • JavaScript 1.1%