GithubHelp home page GithubHelp logo

rachitmehrotra / aakashlabs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeet23/aakashlabs

0.0 2.0 0.0 22.09 MB

Source code of aakashlabs.in/.org in Python-django

Home Page: aakashlabs.org

License: GNU General Public License v3.0

Makefile 0.13% Python 50.46% CSS 24.01% JavaScript 0.93% HTML 24.46%

aakashlabs's Introduction

./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

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.