Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2008-07-03 12:47:04
Size: 231
Editor: certik
Comment:
Revision 5 as of 2008-07-03 13:21:05
Size: 1231
Editor: certik
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
hg clone http://freehg.org/u/mmarshall/freehg/
cd freehg
cp default_settings.py settings.py
Line 8: Line 11:
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
}}}

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

HowToSetupFreeHg (last edited 2013-09-02 01:53:25 by KevinBot)