Permalink
Browse files

pre installation doc

  • Loading branch information...
1 parent 3f302ad commit 317fdcec675936e28dea9156d8e5cab66c313dd2 @danieleguido committed Mar 4, 2013
Showing with 21 additions and 14 deletions.
  1. +11 −8 README.md
  2. +8 −0 walt/local_settings.py.sample
  3. +2 −6 walt/settings.py
View
@@ -24,7 +24,6 @@ Then [install virtualenv, virtualenvwrapper](http://virtualenvwrapper.readthedoc
$ export WORKON_HOME=~/Envs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh
- ...
Create your walt virtualenv:
@@ -36,14 +35,10 @@ Create your walt virtualenv:
$ mkdir logs media locale sqlite
-We added sqlite folder because we will use a sqlite db.
-
-
+We added sqlite folder because we will use a sqlite db. Make sure that apache user has the right to write the .db parent folder.
-Let's suppose our WORKON_HOME is /path/to/Envs...
-
-Change your LOCAL local_settings.py (cfr settings.py), there is a sample local settings file you can use as base.
+Copy `walt/local_settings.py.sample` to `walt/local_settings.py` and change it according to your LOCAL configuration (cfr `walt/settings.py`). This file is gitignored.
Configure apache conf and your wsgi. We provide to sample file as well.
@@ -57,5 +52,13 @@ and do a proper syncdb command
$ cd /path/to/walt/
$ python manage.py syncdb
+finally, runserver (test environment)
+
+ $ python manage.py runserver
-goto setup apge
+point your browser your local [setup page](http://127.0.0.1:8000/setup/)
+ - our is http://127.0.0.1:8000/setup/, then back to http://127.0.0.1:8000/
+
+ you should see 4 columns named Wander, Ask, Learn and Try respectively.
+
+
@@ -10,14 +10,22 @@ MEDIA_ROOT = '/path/to/walt/media'
SECRET_KEY = 'your own secret key !'
TEMPLATE_DIRS = (
+ '/path/to/walt/templates',
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
+STATICFILES_DIRS = (
+ '/path/to/walt/static',
+)
+
+STATIC_ROOT = '/path/to/walt/static/assets'
+
LOCALE_PATHS = (
'/path/to/walt/locale',
)
+
LANGUAGES = (
('it', 'Italian'),
('en', 'English'),
View
@@ -61,18 +61,14 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
-STATIC_ROOT = ''
+STATIC_ROOT = local_settings.STATIC_ROOT
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/walt/static/'
# Additional locations of static files
-STATICFILES_DIRS = (
- # Put strings here, like "/home/html/static" or "C:/www/django/static".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
-)
+STATICFILES_DIRS = local_settings.STATICFILES_DIRS
# List of finder classes that know how to find static files in
# various locations.

0 comments on commit 317fdce

Please sign in to comment.