Commit 28abfff8 authored by Martin Tesar's avatar Martin Tesar
Browse files

Created README instead of setup script.

parent d620a69d
Router Catalog
Django site presenting reviews of routers supporting IPv6 protocol.
Deployed at ``_
Tested and deployed on Ubuntu 12.04 LTS, PostgreSQL database.
To start working on this project, clone this repository, ``cd`` to project
root directory and install all the dependencies to newly created and
activated virtualenv:
sudo apt-get install libpq-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev \
libpng12-dev zlib1g-dev libfreetype6-dev
pip install -r requirements.txt
Initial setup
Create database user and database for this project. Update file
```` according to your system setup. For simplicity, in
````, ``INSTALLED_APPS``, comment the line with ``'south'``. You
can always convert apps to South later.
Create database tables:
python syncdb
And fill initial data:
For testing purposes, try to load some sample router reviews:
python testdata/*.csv
python data/reviews/*.csv
Router prices
Czech prices are downloaded from the server ``_. Set correct
``STOCK_USERNAME`` and ``STOCK_PASSWORD`` in ````. Get
the actual prices with this command:
python update_prices
You can install a cron job to update it regularly.
Router pictures
Pictures of routers may be inserted or updated through django admin
interface. Navigate to some Router instance and add image files in the
form below.
Project is using l10n and i18n, but only cs localization is used for now.
Code to enable English (and possibly other) translations is available in
branch i18n.
## install missing libraries or tools after:
# Ubuntu 12.04 LTS installation
# postgresql packages
sudo apt-get install gettext
sudo apt-get install python-pip
sudo pip install virtualenv # version>=1.9.1
# these dev packages may be necessary for python packages installed in virtualenv:
#sudo apt-get install libpq-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libpng12-dev zlib1g-dev libfreetype6-dev
# setup virtual environment, activate and install:
# see requirements.txt to find out package names and versions
pip install -r ./requirements.txt
# create database user, prompt for password. Allow to create databases.
sudo -u postgres createuser -P "username"
createdb katr -O "username"
# data import
python testdata/*.csv
python data/reviews/*.csv
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment