Skip to content

SharifAIChallenge/AIC_mezzanine_site

Repository files navigation

AIC_mezzanine_site

This repo contains website source code of Sharif AI Challnges. We made it based on Mezzanine CMS.

Requirements

  • AIC_mezzanine_site files!
  • An environment with installed python requirements! (see requirements.txt)

Installation

To run this project on your own computer, you must:

  • Have a running redis server:

If redis server is running, the response of command redis-cli ping must be PONG.

  • Have a DataStore:

We highly recommend PostgreSQL for deployment and SQLite for development environment. DBMS settings must be set on local_settings.py.

A file named dev-samples.json contains initial sample and also simple data for fast development. it contains 13 users and 4 teams. default password used in these samples is 123456. Load this file by command: python manage.py loaddata dev-samples.json

  • Have a running SMTP server (maybe a dummy one!):

Running a Debugging SMTP server is as easy as running (root privilege is required):

python3 -m smtpd -n -c DebuggingServer localhost:25
  • Configure local_settings.py:

some important settings are extracted to a python file named local_settings.py in AIC_site directory.

Two samples named local_settings.deploy.sample.py and local_settings.dev.sample.py are available in that directory.

Note that you may also set BASE_AND_GAME_STORAGE (default is FileSystemStorage). E.g in deployment servers you must set:

BASE_AND_GAME_STORAGE = SyncingHashStorage("storages.backends.sftpstorage.SFTPStorage")
  • Run celery mail workers:
celery worker -A AIC_site -Q mail_queue
  • Run celery compile workers:

read more at AIC_game_runner.

Note: this worker is not required if you are not interested in compiling uploaded codes.

  • Run celery game workers:

read more at AIC_game_runner.

Note: this worker is not required if you are not interested in running uploaded games.

About

Sharif AI Challenge Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 14