Next steps describe project installation on staging or production server. If you'd like to setup project for local developmetn then please read DEV-README.rst
Install all requirements on system as described in REQUIREMENTS.rst
Clone repository to server.
cd to cloned repository.
Setup virtual environment:
virtualenv --no-site-packages -p python2.6 .env source .env/bin/activate
Run next commands in the commandline:
PROJ_NAME=movies cp Makefile.def.default Makefile.def cp $PROJ_NAME/settings/local.py.default $PROJ_NAME/settings/local.py if ! python -V 2>&1| grep -q " 2.7" ; then pip install ordereddict ; fi # for postgres: pip install -r requirements/postgre.txt # for sqlite: pip install -r requirements/sqlite.txt
You also need to edit database. Edit file $PROJ_NAME/settings/local.py:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.BACKENDHERE!!!', 'NAME': 'DB_NAME', 'USER': 'DB_USER', 'PASSWORD': 'DB_PASSWORD', 'HOST': 'DB_HOST_OR localhost', 'PORT': '3306', } }
Settings also need to know where virtualenvironment is located, so edit file $PROJ_NAME/settings.local.py again:
ENV_PATH = proj('.env2.6') PYTHON_PATHNAME = 'python2.6'
Now you can create database schema:: make initproject
- Now project is ready for deployment. Deploy it with nginx+uwsgi or with apache+mod_python
- When project is running you will need to setup correct site domain.
- Open admin interface in browser, it will be available at http://SITE_URL/admin/sites/site/1/. login 'admin@example.com', password 'admin'
- Edit and save
- It is also recommended to change password. It can be done in admin interface too:
http://SITE_URL/admin/auth/user/1/password/
- Various project specific settings ccan be changed here:
http://SITE_URL/settings