From b52db0974cbd737056dc4763a7dc2335945d3436 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 27 Apr 2011 18:45:04 +0200 Subject: [PATCH] update doc for urls and more --- INSTALL | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/INSTALL b/INSTALL index 5f041c4c..bbe81eb6 100644 --- a/INSTALL +++ b/INSTALL @@ -187,10 +187,20 @@ This synchronizes the DB with the model:: 6. Configure your urls ---------------------- - The simplest case is to have telemeta running at public root. To do so, add this url in urls.py:: +Add this dictionary to get Javascript translation:: + + js_info_dict = { + 'packages': ('telemeta',), + } + +The simplest case is to have telemeta running at public root. To do so, add this url in urls.py:: + # Telemeta (r'^', include('telemeta.urls')), - (r'^i18n/', include('django.conf.urls.i18n')), + + # Languages + (r'^i18n/', include('django.conf.urls.i18n')), + (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), You can find an example for url.py there:: @@ -210,21 +220,24 @@ By default, the server starts on the port 8000. You can override this with, for python manage.py runserver 9000 ------------------------------------- -8. Go the web page with your browser ------------------------------------- +----------- +8. Test it +----------- + +Go to this URL with your browser:: http://localhost:8000 - or +or:: http://localhost:9000 -Enjoy it ! +Test it and enjoy it ! -------------------- -9. Configure Apache -------------------- + +-------------------------- +9. Deploy it with Apache +-------------------------- If you want to use Telemeta through a web server, it is highly recommended to use Apache 2 with the mod_wsgi module as explained in the following page : -- 2.39.5