Differences between revisions 6 and 28 (spanning 22 versions)
Revision 6 as of 2008-07-03 13:33:07
Size: 1278
Editor: certik
Comment:
Revision 28 as of 2013-08-31 10:38:38
Size: 203
Editor: StewartNe
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
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
}}}
My name: Stewart Nevarez<<BR>>
Age: 24<<BR>>
Country: Germany<<BR>>
City: Brokdorf <<BR>>
ZIP: 25576<<BR>>
Street: An Der Urania 36<<BR>>
[[http://www.sydneystylekitchens.com.au/|cheap kitchens]]

My name: Stewart Nevarez
Age: 24
Country: Germany
City: Brokdorf
ZIP: 25576
Street: An Der Urania 36
cheap kitchens

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