django-hgadmin 0.4.2
Mercurial repository administaration tool
Features
- Create new repository and delete
- Create's backup tarball before delete
- Change repository settings
- Authentification
Install
- Create new Django project
- Set HGWEBDIR_CONF, HGWEBDIR_WSGI, HGWEBDIR_ROOT paths and set HGADMIN_ALLOW_REMOVE True or False
- Cange Apache configuration (see example)
- Put your repos and run $ python manage.py syncdb
- ???
- PROFIT :)
Examples
Project tree
project |-- __init__.py |-- auth.wsgi -> ./hgadmin/auth.wsgi |-- django.wsgi |-- hgadmin |-- hgweb.config |-- hgwebdir.wsgi |-- manage.py |-- repos | |-- test0 | |-- test1.tar.bz2 | `-- test2 |-- settings.py `-- urls.py
Django settings
## # Helpers import os.path PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__)) ## # Paths HGWEBDIR_CONF = os.path.join(PROJECT_ROOT, 'hgweb.config') HGWEBDIR_WSGI = os.path.join(PROJECT_ROOT, 'hgwebdir.wsgi') HGWEBDIR_ROOT = os.path.join(PROJECT_ROOT, 'repos') ## # Allow remove repo from server. # Be careful! HGADMIN_ALLOW_REMOVE = False
Apache settings
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName hg.example.com
DocumentRoot /path/to/hg/root
##
# WSGI
#
# WSGIProcessGroup group-name
# WSGIDaemonProcess group-name user=username group=group maximum-requests=2000
#
# Django settings.HGWEBDIR_WSGI
WSGIScriptAlias / /path/to/hgwebdir.wsgi
<Location />
Order allow,deny
Allow from all
##
# WSGI based auth
AuthName "Mercurial repository"
AuthType Basic
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/hgadmin/auth.wsgi
<LimitExcept GET>
Require valid-user
</LimitExcept>
</Location>
LogLevel debug
ErrorLog /var/log/httpd/hg.example.com-error.log
CustomLog /var/log/httpd/hg.example.com-access.log common
</VirtualHost>
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-hgadmin-0.4.2.tar.bz2 (md5) | Source | 2010-06-20 | 6KB | 508 | |
- Author: Vladimir Ermakov
- Home Page: http://vehq.ru/project/HGAdmin
- Download URL: http://hg.vehq.ru/hgadmin/archive/0.4.2.tar.bz2
- Keywords: Django,Mercurial,tool
- License: BSD
- Platform: any
- Categories
- Package Index Owner: vooon341
- DOAP record: django-hgadmin-0.4.2.xml
