Revision c4af6d07

b/README
16 16
    apt-get install python-django python-django-south python-setuptools python-sphinx python-httplib2
17 17
    apt-get install python-sqlalchemy python-mysqldb python-psycopg2
18 18

  
19
Enter the pithos dir, copy settings.py.dist to settings.py.
20

  
21 19
Then run:
22 20
    python setup.py build_sphinx
23 21

  
......
35 33
    apt-get install python-django python-setuptools python-sphinx python-httplib2
36 34
    apt-get install python-sqlalchemy python-mysqldb python-psycopg2
37 35

  
38
Enter the pithos dir, copy settings.py.dist to settings.py.
39

  
40 36
Then run:
41 37
    python manage.py syncdb
42 38
    python manage.py schemamigration im --initial
b/docs/source/adminguide.rst
17 17
  cd /
18 18
  git clone https://code.grnet.gr/git/pithos
19 19

  
20
Setup the files (choose where to store data in ``settings.py`` and change ``SECRET_KEY``)::
20
Setup the files::
21 21

  
22 22
  cd /pithos/pithos
23
  cp settings.py.dist settings.py
24 23
  python manage.py syncdb
25 24
  python manage.py schemamigration im --initial
26 25
  cd /pithos
27 26
  python setup.py build_sphinx
28 27

  
28
It is advised that you create a ``settings.local`` file to place any configuration overrides (at least change ``SECRET_KEY``).
29

  
29 30
Edit ``/etc/apache2/sites-available/pithos`` (change the ``ServerName`` directive)::
30 31

  
31 32
  <VirtualHost *:80>
......
115 116

  
116 117
Useful alias to add in ``~/.bashrc``::
117 118

  
118
  alias pithos-sync='cd /pithos && git pull && python setup.py build_sphinx && /etc/init.d/apache2 restart'
119
  alias pithos-sync='cd /pithos && git pull && python setup.py build_sphinx && cd pithos && python manage.py migrate im && /etc/init.d/apache2 restart'
119 120

  
120 121
Gunicorn Setup
121 122
--------------
......
160 161
  ProxyPass        /api http://localhost:8080 retry=0
161 162
  ProxyPassReverse /api http://localhost:8080
162 163

  
163
Make sure that in ``settings.py``::
164
Make sure that in ``settings.local``::
164 165

  
165 166
  USE_X_FORWARDED_HOST = True
166 167

  
b/pithos/settings.py
42 42

  
43 43
for conf in sorted(conffiles):
44 44
    execfile(conf)
45
execfile(join(PROJECT_PATH, 'settings.local'))

Also available in: Unified diff