shiv6891 / election_predictor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

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