TODO: Add text about project
Install Git and Python 3.3 or higher. Also, You need install pip and setuptools. Add paths to environment of your machine and check in terminal:
>>> git --version
git version 2.5.0.windows.1
>>> python --version
Python 3.4.3
>>> pip -V
pip 7.1.2 from <path to Python>\lib\site-packages (python 3.4)
>>> easy_install --version
setuptools 18.2
Note: If you are not will developing the database and migration, or you would like to use SQLite, safely skip this step.
Install your favorite database system and adapter of this database for the Python. For example, PostgreSQL and psycopg2. Create DATABASE and USER for our project.
For PostgreSQL:
CREATE DATABASE <database_name>;
CREATE USER <user_name> WITH PASSWORD <password>;
GRANT ALL privileges ON DATABASE <database_name> TO <user_name>;
Firstly, run a clone:
git clone https://<your name in bitbucket>@bitbucket.org/apanasenko_aa/debatestournament.git
This will download the latest sources into a directory DebatesTournament.
Secondly, switch to the DebatesTournament directory and install all the necessary dependencies
pip install -r requirements.txt
Thirdly, copy all settings files from DebatesTournament\settings\default to DebatesTournament\settings
-
database.py-- Configure your database. Read info for your database in djbook. Templates for SQLite and PostgreSQL already in file, remove unnecessary and set all<params>. -
security.py-- SetSECRET_KEYas random line and setDEBUGandTEMPLATE_DEBUGasTrue. -
smtp_email.py-- SetEMAIL_HOST_USERas your email andEMAIL_HOST_PASSWORDas password for this.
Finaly, initiation database:
python manage.py migrate
and check your system:
>>> python manage.py check
System check identified no issues (0 silenced).
That's all, enjoy =)) But if you have any problem, read this help
To run server change directory to repository root and execute:
>>> python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
September 01, 2000 - 00:00:00
Django version 1.8.4, using settings 'DebatesTournament.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
And open localhost in your browser.