README.md 1014 Bytes
Newer Older
1 2 3 4 5 6
Campaign Manager for PiPhone project
====================================

Installation
------------

Mindiell's avatar
Mindiell committed
7 8
### Create a python virtual environment and activate it

9 10 11 12

    virtualenv .env
    source .env/bin/activate

Mindiell's avatar
Mindiell committed
13

Mindiell's avatar
Mindiell committed
14
### Install package
15 16 17 18 19 20 21

    python setup.py install


Configuration
-------------

Mindiell's avatar
Mindiell committed
22 23 24 25 26 27 28 29
Create **settings.py** from **settings.py.sample** inside the **picampaign** module and edit it:

 * modify the value of **SECRET_KEY**
 * set database configuration according to what type of database you want to use
 * according to your localization, adjust **LANGUAGE_CODE** and **TIME_ZONE**
 * in production environment, set **DEBUG** value to **False**
 * in production environment, set **TEMPLATE_DEBUG** value to **False**
 
30

Mindiell's avatar
Mindiell committed
31
### Synchronize database
32 33 34

    ./manage.py syncdb

Mindiell's avatar
Mindiell committed
35

36 37 38 39 40 41 42
It will ask for creation of a superuser.

If syncdb ran previously, commands are:

    ./manage.py makemigrations
    ./manage.py syncdb

Mindiell's avatar
Mindiell committed
43

Mindiell's avatar
Mindiell committed
44
### Run website
45 46 47

    ./manage.py runserver

Mindiell's avatar
Mindiell committed
48 49

Then open your browser to http://127.0.0.1:8000/admin
50