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!