snripa / romantic

Web-site of sport-club "Romantic"

Home Page:http://www.tkr.od.ua/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Romantic

Web-site of sport-club "Romantic".

Deploing server

The first you need make clone romantic rep from githun

git clone https://github.com/dlyapun/romantic.git

After you need create virtual environment.

For Windows:

virtualenv-3.4.exe romantic --no-site-packages
cd .\romantic\Scripts\
.\activate

For Linux:

virtualenv romantic --no-site-packages
cd source romanitc/bin/activate

The third step - you need install the packages. If you are using pip version 7.1.2, you need upgrade pip

python -m pip install --upgrade pip

pip install -r requirements.txt

The last step - create file "local_settings.py" and paste this blog:

import os

PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(PROJECT_ROOT, 'db.sqlite3'),
    }
}

DEBUG = True

MEDIA_ROOT = os.path.normpath(os.path.join(SITE_ROOT, "./media"))
STATIC_ROOT = os.path.normpath(os.path.join(SITE_ROOT, "./static"))

Create database and run server

python manage.py migrate
python manage.py runserver

Good luck!

About

Web-site of sport-club "Romantic"

http://www.tkr.od.ua/


Languages

Language:JavaScript 49.5%Language:Python 18.2%Language:HTML 16.4%Language:CSS 15.7%Language:Makefile 0.1%Language:Shell 0.0%