Size: 787
Comment:
|
Size: 1231
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
+++ settings.py 2008-07-03 14:36:38.684078693 +0200 | +++ settings.py 2008-07-03 14:51:36.343034650 +0200 |
Line 24: | Line 24: |
@@ -63,10 +65,13 @@ ROOT_URLCONF = 'freehg.urls' +import os + TEMPLATE_DIRS = ( # 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. + os.path.join(os.path.dirname(__file__), 'templates'), ) INSTALLED_APPS = ( }}} Create database tables: {{{ ./manage.py syncdb |
How to setup FreeHg on your own server ======================================
Assuming you are using Debian unstable (it should be similar on other distributions).
sudo apt-get install -t experimental python-django hg clone http://freehg.org/u/mmarshall/freehg/ cd freehg cp default_settings.py settings.py
Apply the following patch:
--- default_settings.py 2008-06-15 11:41:43.658803990 +0200 +++ settings.py 2008-07-03 14:51:36.343034650 +0200 @@ -23,6 +23,8 @@ # system time zone. TIME_ZONE = 'America/Chicago' +REPO_PATH = "/tmp" + # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' @@ -63,10 +65,13 @@ ROOT_URLCONF = 'freehg.urls' +import os + TEMPLATE_DIRS = ( # 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. + os.path.join(os.path.dirname(__file__), 'templates'), ) INSTALLED_APPS = (
Create database tables:
./manage.py syncdb
Test it locally
./manage.py runserver