Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pre installation doc

  • Loading branch information...
commit 317fdcec675936e28dea9156d8e5cab66c313dd2 1 parent 3f302ad
Daniele Guido authored March 04, 2013
19  README.md
Source Rendered
@@ -24,7 +24,6 @@ Then [install virtualenv, virtualenvwrapper](http://virtualenvwrapper.readthedoc
24 24
 	$ export WORKON_HOME=~/Envs
25 25
 	$ mkdir -p $WORKON_HOME
26 26
 	$ source /usr/local/bin/virtualenvwrapper.sh
27  
-	...
28 27
 	
29 28
 Create your walt virtualenv:
30 29
 	
@@ -36,14 +35,10 @@ Create your walt virtualenv:
36 35
 
37 36
 	$ mkdir logs media locale sqlite
38 37
 	
39  
-We added sqlite folder because we will use a sqlite db.
40  
-
41  
-
  38
+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.
42 39
 
43  
-Let's suppose our WORKON_HOME is /path/to/Envs...
44 40
 
45  
-
46  
-Change your LOCAL local_settings.py (cfr settings.py), there is a sample local settings file you can use as base.
  41
+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.
47 42
 
48 43
 Configure apache conf and your wsgi. We provide to sample file as well.
49 44
 
@@ -57,5 +52,13 @@ and do a proper syncdb command
57 52
 	$ cd /path/to/walt/
58 53
 	$ python manage.py syncdb
59 54
 	
  55
+finally, runserver (test environment)
  56
+
  57
+	$ python manage.py runserver
60 58
 
61  
-goto setup apge
  59
+point your browser your local [setup page](http://127.0.0.1:8000/setup/)
  60
+ - our is http://127.0.0.1:8000/setup/, then back to http://127.0.0.1:8000/
  61
+ 
  62
+ you should see 4 columns named Wander, Ask, Learn and Try respectively.
  63
+ 
  64
+	
8  walt/local_settings.py.sample
@@ -10,14 +10,22 @@ MEDIA_ROOT = '/path/to/walt/media'
10 10
 SECRET_KEY = 'your own secret key !'
11 11
 
12 12
 TEMPLATE_DIRS = (
  13
+	'/path/to/walt/templates',
13 14
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
14 15
     # Always use forward slashes, even on Windows.
15 16
     # Don't forget to use absolute paths, not relative paths.
16 17
 )
17 18
 
  19
+STATICFILES_DIRS = (
  20
+    '/path/to/walt/static',
  21
+)
  22
+
  23
+STATIC_ROOT = '/path/to/walt/static/assets'
  24
+
18 25
 LOCALE_PATHS = (
19 26
 	'/path/to/walt/locale',
20 27
 )
  28
+
21 29
 LANGUAGES = (
22 30
 	('it', 'Italian'),
23 31
     ('en', 'English'),
8  walt/settings.py
@@ -61,18 +61,14 @@
61 61
 # Don't put anything in this directory yourself; store your static files
62 62
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
63 63
 # Example: "/home/media/media.lawrence.com/static/"
64  
-STATIC_ROOT = ''
  64
+STATIC_ROOT = local_settings.STATIC_ROOT
65 65
 
66 66
 # URL prefix for static files.
67 67
 # Example: "http://media.lawrence.com/static/"
68 68
 STATIC_URL = '/walt/static/'
69 69
 
70 70
 # Additional locations of static files
71  
-STATICFILES_DIRS = (
72  
-    # Put strings here, like "/home/html/static" or "C:/www/django/static".
73  
-    # Always use forward slashes, even on Windows.
74  
-    # Don't forget to use absolute paths, not relative paths.
75  
-)
  71
+STATICFILES_DIRS = local_settings.STATICFILES_DIRS
76 72
 
77 73
 # List of finder classes that know how to find static files in
78 74
 # various locations.

0 notes on commit 317fdce

Please sign in to comment.
Something went wrong with that request. Please try again.