comparison README @ 24:c6a3ca0429dd

add local_settings.py and instructions to run the website locally
author souliane <souliane@mailoo.org>
date Sat, 17 Jan 2015 21:37:19 +0100
parents 2fdbf8ebb72b
children 3df49721008c
comparison
equal deleted inserted replaced
23:2fdbf8ebb72b 24:c6a3ca0429dd
38 SAT_LINK_PATH = '/path/to/sat_link.tar.bz2' #the link should point to a SàT archive in the form sat-version.tar.bz2 38 SAT_LINK_PATH = '/path/to/sat_link.tar.bz2' #the link should point to a SàT archive in the form sat-version.tar.bz2
39 SAT_DL_PREFIX = 'ftp://ftp.goffi.org/sat' #this prefix will be joined to the filename pointed by the previous link 39 SAT_DL_PREFIX = 'ftp://ftp.goffi.org/sat' #this prefix will be joined to the filename pointed by the previous link
40 SAT_DL_PATH = 'ftp://ftp.goffi.org/sat/sat.tar.bz2' #if set, this link will be used instead of the joined dl_prefix + filename 40 SAT_DL_PATH = 'ftp://ftp.goffi.org/sat/sat.tar.bz2' #if set, this link will be used instead of the joined dl_prefix + filename
41 41
42 Note that the Django application "markdown_deux" ( https://github.com/trentm/django-markdown-deux ) is required. 42 Note that the Django application "markdown_deux" ( https://github.com/trentm/django-markdown-deux ) is required.
43 For more information, check the local_settings.py file which is distributed in the sat_website directory.
44
45 ** RUNNING THE WEBSITE LOCALLY **
46
47 This is the basic procedure to run the website on your local machine using the Django built-in web server.
48 Please make the difference between the project directory (e.g. ~/workspace/sat_website) and the app directory (e.g. ~/workspace/sat_website/sat_website).
49
50 First add these two lines to your shell .*rc file:
51
52 export PYTHONPATH=$PYTHONPATH:<path_to_the_app_directory>
53 export DJANGO_SETTINGS_MODULE=settings
54
55 Create in the app directory a file settings.py containing these lines:
56
57 try:
58 from local_settings import *
59 except ImportError:
60 pass
61
62 In the project directory, enter these commands to initialise the website:
63
64 django-admin syncdb
65 django-admin makemessages -a
66 django-admin compilemessages
67
68 All the preceeding instructions had to be done just once, now you only need to type this command (again in the project directory) whenever you want to launch the web server:
69
70 django-admin runserver
43 71
44 ** CREDIT ** 72 ** CREDIT **
45 73
46 The following third party project are shipped with this source code: 74 The following third party project are shipped with this source code:
47 75