forked from darkdefender27/AakashTechSupport
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ReadMe.rst
115 lines (69 loc) · 2.9 KB
/
ReadMe.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
=======================
Low Cost Linux Netbbok
======================
A **WebApp** to provide online *Technical Support* to the people using Netbook.
(Summer Internship 2014, Indian Institute of Technology, Bombay)
Clone
-----
- Make sure your Internet is working.
- Clone this repo by typing ::
git clone https://github.com/androportal/AakashTechSupport.git
Installation
------------
- Install Virtual Environment using the following command ::
sudo apt-get install python-virtualenv
- Create a Virtual Environment ::
virtualenv /path/to/virtualenv
- Activate the virtualenv using the command ::
source /path/to/virtualenv-name/bin/activate
- Change the directory to the `AakashTechSupport/` project using the command ::
cd /path/to/AakashTechSupport
- Install pre-requisites using the command ::
pip install -r Requirement.txt
or you can also type ::
easy_install `cat Requirement.txt`
Usage
-----
- Using mysql (For development server only). Though, we recommend to use `mysql` for deployment
server. See `settings.py` file for usage.
- Create 'techsupport' database in 'MySQL'.
- Open `AakashTechSupport/AakashTechSupport/settings.py` file and do the following changes ::
DATABASES = {
'default': {
'ENGINE': 'django.db.backend.mysql',
'NAME' : 'techsupport',
# user and password is provide `AakashTechSupport/AakashTechSupport/top_secret.py` file.
# for server deployment it will be blank
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
- For development on localhost open `AakashTechSupport/AakashTechSupport/wsgi.py` file and do following changes ::
sys.path.append('/home/path/to/AakashTechSupport')
activate_this = '/home/path/to/bin/activate_this.py'
- For development on localhost open `AakashTechSupport/AakashTechSupport/top_secret.py` file and do following changes ::
db_user='root' (MySql username)
db_pass = 'root' (MySql password)
- Populate the database using the following command ::
cd /path/to/AakashTechSupport
python manage.py syncdb
- Run the script populate.py which enters details of remote center into the table Tabletinfo from the details_of_rc.csv file ::
python populate.py
- Run the script populate_category.py which enters lists of categories into the table categoriy from the details_of_rc.csv file ::
python populate_category.py
- Start the server using the command ::
python manage.py runserver
Contributing
------------
- Never edit the master branch.
- Make a branch specific to the feature you wish to contribute on.
- Send me a pull request.
- Please follow `PEP8 <http://legacy.python.org/dev/peps/pep-0008/>`_
style guide when coding in Python.
License
-------
GNU GPL Version 3, 29 June 2007.
Please refer this `link <http://www.gnu.org/licenses/gpl-3.0.txt>`_
for detailed description.