README.md 778 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Campaign Manager for PiPhone project
====================================

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

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

    virtualenv .env
    source .env/bin/activate

Install package
~~~~~~~~~~~~~~~

    python setup.py install


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

Edit **settings.py** according to what type of database you want to use
and others settings related to your environment.

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

    ./manage.py syncdb

It will ask for creation of a superuser.

If syncdb ran previously, commands are:

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

Run website
~~~~~~~~~~~

    ./manage.py runserver

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