Skip to content

parthpatwa/election_predictor

 
 

Repository files navigation

Election-Predictor

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:

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

  1. Finally, run the project using:
    python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 52.0%
  • HTML 26.6%
  • Python 15.3%
  • Jupyter Notebook 3.2%
  • JavaScript 2.9%