README.md 1.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
Campaign Manager for PiPhone project
====================================

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

Create a python virtual environment and activate it
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    virtualenv .env
    source .env/bin/activate

Mindiell's avatar
Mindiell committed
13

14 15 16 17 18 19 20 21 22
Install package
~~~~~~~~~~~~~~~

    python setup.py install


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

Mindiell's avatar
Mindiell committed
23 24 25 26 27 28 29 30
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**
 
31 32 33 34 35 36

Synchronize database
~~~~~~~~~~~~~~~~~~~~

    ./manage.py syncdb

Mindiell's avatar
Mindiell committed
37

38 39 40 41 42 43 44
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
45

46 47 48 49 50
Run website
~~~~~~~~~~~

    ./manage.py runserver

Mindiell's avatar
Mindiell committed
51 52

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