Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2008-07-03 12:48:53
Size: 737
Editor: certik
Comment:
Revision 6 as of 2008-07-03 13:33:07
Size: 1278
Editor: certik
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 = (
Line 25: Line 39:
Create database tables:
{{{
./manage.py syncdb
}}}
(You can answer "no" to create superuser now.) 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

(You can answer "no" to create superuser now.) Test it locally

./manage.py runserver

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