项目作者: shan18

项目描述 :
An Online Judge Platform built using Django
高级语言: Python
项目地址: git://github.com/shan18/Code-Warrior.git
创建时间: 2018-02-23T18:24:12Z
项目社区:https://github.com/shan18/Code-Warrior

开源协议:MIT License

下载


Code Warrior

An online judge that supports the following languages:

  • C
  • C++
  • Python 2
  • Python 3

Tools Used

  • Python - Django
  • Javascript
  • Bootstrap

Third Party Services Used

  • sendgrid: Used to send transactional emails like email-id verification.

Instructions for setting up the project

  1. Clone the repository
    git clone https://github.com/morphosis-nitmz/Code-Warrior

  2. Rename the file .env-sample to .env and replace the value of SECRET_KEY with the secret key of your own project. To generate a new secret key

    • Go to terminal and create a new django project django-admin startproject <proj-name>.
    • Now get the value of SECRET_KEY in settings.py and use that as the secret key for the Stock-Bridge project.
    • Now delete that new django project.
  3. Sendgrid setup:

    • Create an account on sendgrid.
    • Add your sendgrid username and password to EMAIL_HOST_USER and EMAIL_HOST_PASSWORD in credentials.py respectively.
    • Change the email and name in DEFAULT_FROM_EMAIL and MANAGERS in all settings files with your name and email.
  4. Run the following commands
    python manage.py makemigrations
    python manage.py migrate
    python manage.py collectstatic

  5. Now load the questions, test cases, expected outputs and user submission into the database
    python manage.py loaddata questions/fixtures/questions.json