Keep up with the news of upcoming general elections and predict the winner based on data and statistical analysis.
The required packages are present in the requirements.txt file.
To run the project, please do the following:
- Create a virtualenv by using the command
python3 -m virtualenv <environment name>
If virtualenv is not present, install it by using the command
sudo pip3 install virtualenv
2. Activate it by the command,
source <path_to_environment>/bin/activate
3. Use this command for installing all the necessary packages for running the project
pip install -r requirements.txt
4. We are using MYSQL in our settings backend. The name and the password of the database should be replaced appropriately
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'election_predictordb',
'USER': '<USER_NAME>',
'PASSWORD': '<PASSWORD>',
'HOST': 'localhost',
'PORT': '',
}
}
5. Change directory into the project directory
- Finally, run the project using:
python manage.py runserver