An official site for Aakash tablet. (Now in Python-django)
- Clone this repository
git clone https://github.com/psachin/aakashlabs.git
- 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`.
- 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_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
rc_parser.py
: Parsesrc.csv
and create two files,ac_list.py
andcoordinators_list.py
.ac_list.py
: Python dictionary contains Aakash centers list.coordinators_list.py
: Python dictionary contains Aakash center coordinators information.project_parser.py
: Parsesprojects.csv
and createsproject_list.py
.project_list.py
: Contains all project detail.
- 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.
- See COPYING