Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (48 loc) · 1.76 KB

README.md

File metadata and controls

53 lines (48 loc) · 1.76 KB

Varchas Status active Django 3.0.0 Python 3.7.1 Python Package CI

Main web portal for the annual sports fest of IIT Jodhpur Varchas.

Installation:

Requirements:

  • Python 3.7.1 runtime
  • Django 3.0.0
  • Other dependencies in requirements.txt

Procedure:

  • Install python in your environment(pre-installed on Ubuntu).

  • Navigate to the cloned repository.

    cd <project_directory_name>     # varchas_iitj
    
  • Install pipenv for dependency management

    pip install pipenv
    
  • Use pip to install other dependencies from requirements.txt

    pip install -r requirements.txt
    
  • Optionally activate virtual environment, if you don't want to activate env, use pipenv run to run python scripts

    source "$(pipenv --venv)"/bin/activate
    
  • Make database migrations

    python manage.py makemigrations
    python manage.py migrate
    

    NOTE: If its your first time migrating, you may need to manually add migration module in each app.

    python manage.py makemigrations main
    python manage.py makemigrations accounts
    python manage.py makemigrations adminportal
    python manage.py makemigrations events
    python manage.py makemigrations registration
    python manage.py makemigrations sponsors
    python manage.py migrate
    
  • Create a superuser

    python manage.py createsuperuser 
    
  • Run development server on localhost

    python manage.py runserver