--------------------------------
* On Debian (Squeeze recommended) or Ubuntu Lucid:
-
+
Install all dependencies like this::
-
+
sudo aptitude install python python-dev python-django python-xml python-mysqldb mysql-server \
python-ctypes python-setuptools python-support python-docutils \
python-libxml2 python-django-registration python-lxml python-numpy \
python-scipy python-imaging python-mutagen python-gobject python-gst0.10 \
gstreamer0.10-plugins-base gobject-introspection
-
+
To get MP3 reading and writing, just add these lines to your /etc/apt/sources-list::
-
+
deb http://www.debian-multimedia.org stable main
Then::
sudo apt-get update
sudo aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame
-
+
* On other linux platforms:
-
+
Please install all dependencies thanks to your application manager.
-
+
Install Telemeta
------------------
tar xzf telemeta-1.0.tar.gz
cd telemeta-1.0
sudo python setup.py install
-
+
Install TimeSide
-----------------
So, download the last archive at :
http://code.google.com/p/timeside/downloads/list
-Uncompress it and read README and INSTALL to install the dependencies
+Uncompress it and read README and INSTALL to install the dependencies
and then the module.
The JSON module provided by django-json-rpc have been automatically installed if you used pip or setup.py to install Telemeta. In this case only, you can pass this stage.
Otherwise, you have to download and install it from source::
-
+
git clone git://github.com/samuraisam/django-json-rpc.git
cd django-json-rpc
python setup.py install
-
+
-------------------------
Testing (sandbox)
-------------------------
django-admin startproject mysite
-Create the media and cache directories
------------------------------------------
-
-We need 2 directories for media and caching::
-
- cd mysite
- mkdir media cache cache/data cache/export
-
-
-You might want to place these data directories somewhere else, no pb.
-
-
Create the database
------------------------
MEDIA_ROOT = absolute path to the media directory you just created
Set the app lists as follow::
-
+
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
)
Set the following languages::
-
+
LANGUAGES = [ ('fr', 'French'),
('en', 'English'),
]
Set the following Middlewares::
-
+
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
)
Add the following variables::
-
+
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
'django.contrib.auth.context_processors.auth',)
TELEMETA_STREAMING_FORMATS = tuple of authoized streaming formats. Ex : ('mp3', 'ogg')
TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published
EMAIL_HOST = your default SMTP server
- DEFAULT_FROM_EMAIL = the default sending email address
-
+ DEFAULT_FROM_EMAIL = the default sending email address
+
Just paste the lines below::
LOGIN_URL = '/login'
CACHE_BACKEND = "file://" + TELEMETA_CACHE_DIR + "/data"
If you want some personal templates, for example::
-
+
TEMPLATE_DIRS = (
'/home/dev/telemeta/sandboxes/sandbox_generic/templates/',
)
You can find an example for settings.py there::
-
+
example/sandbox/settings.py
-
+
Initialize the database
--------------------------
----------------------
Add this dictionary to get Javascript translation::
-
+
js_info_dict = {
'packages': ('telemeta',),
}
# Telemeta
(r'^', include('telemeta.urls')),
-
+
# Languages
- (r'^i18n/', include('django.conf.urls.i18n')),
+ (r'^i18n/', include('django.conf.urls.i18n')),
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
-
+
You should also bring the django admin::
-
+
(r'^admin/django/', include(admin.site.urls)),
-
+
Please also uncomment::
-
+
from django.contrib import admin
admin.autodiscover()
You can find an example for url.py there::
-
+
example/sandbox/urls.py
python manage.py runserver 9000
+To get it on your network interface::
+
+ python manage.py runserver 192.168.0.10:9000
+
Test it
-----------
http://localhost:9000
+or::
+
+ http://192.168.0.10:9000
+
Configure the site domain name in admin > general admin > sites
--------------------------
Please see ::
-
+
http://telemeta.org/wiki/InterfaceCustomization
-
-
+
+
--------------------------
Deploy it with Apache 2
--------------------------
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 :
+with the mod_wsgi module as explained in the following page ::
http://docs.djangoproject.com/en/1.1/howto/deployment/modwsgi/#howto-deployment-modwsgi