blob: ee9a98b3760f27635f6d4e6fbd1038b0f7c5f4d0 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
GNU Dico - Dicoweb INSTALL
Copyright (C) 2008-2010, 2012 Wojciech Polak
* Dicoweb requirements
======================
- Django 1.0+ -- a Python Web framework (http://www.djangoproject.com/)
- Wit -- a wiki translator distributed within GNU Dico.
(http://puszcza.gnu.org.ua/projects/wit/)
* Installation instructions
===========================
Rename 'settings-sample.py' to 'settings.py' and edit your
local Dicoweb site configuration.
** The development/test server
------------------------------
Change the current working directory into the `dicoweb' directory
and run the command `python manage.py runserver'. You will see
the following output:
Validating models...
0 errors found.
Django version 1.0, using settings 'dicoweb.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
** Production server with mod_wsgi
----------------------------------
Apache configuration:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /usr/local/django/dicoweb/dicoweb.wsgi
Alias /static "/usr/local/django/dicoweb/static"
More detailed information is available at:
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
** Production server with mod_python
------------------------------------
Apache configuration:
LoadModule python_module modules/mod_python.so
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "sys.path + ['/usr/local/django', '/usr/local/django/dicoweb']"
SetEnv DJANGO_SETTINGS_MODULE dicoweb.settings
PythonInterpreter dicoweb
PythonDebug Off
</Location>
<Location "/static">
SetHandler None
</Location>
<Location "/favicon.ico">
SetHandler None
</Location>
<Directory "/usr/local/django/dicoweb/">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
Local Variables:
mode: outline
paragraph-separate: "[ ]*$"
version-control: never
End:
|