Changeset 06ce8dd for INSTALL.rst
- Timestamp:
- 12/07/11 17:23:50 (18 months ago)
- Branches:
- master, crem, crem2, dev, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test, video
- Children:
- d4c2dd3, 44cc478, b497a41
- Parents:
- d511f9f
- git-author:
- yomguy <yomguy@…> (12/07/11 17:23:50)
- git-committer:
- yomguy <yomguy@…> (12/07/11 17:23:50)
- File:
-
- 1 edited
-
INSTALL.rst (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
INSTALL.rst
r5e733ab3 r06ce8dd 20 20 21 21 * On Debian (Squeeze recommended) or Ubuntu Lucid: 22 22 23 23 Install all dependencies like this:: 24 24 25 25 sudo aptitude install python python-dev python-django python-xml python-mysqldb mysql-server \ 26 26 python-ctypes python-setuptools python-support python-docutils \ … … 28 28 python-scipy python-imaging python-mutagen python-gobject python-gst0.10 \ 29 29 gstreamer0.10-plugins-base gobject-introspection 30 30 31 31 To get MP3 reading and writing, just add these lines to your /etc/apt/sources-list:: 32 32 33 33 deb http://www.debian-multimedia.org stable main 34 34 … … 37 37 sudo apt-get update 38 38 sudo aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame 39 39 40 40 * On other linux platforms: 41 41 42 42 Please install all dependencies thanks to your application manager. 43 43 44 44 45 45 Install Telemeta … … 60 60 cd telemeta-1.0 61 61 sudo python setup.py install 62 62 63 63 64 64 Install TimeSide … … 72 72 http://code.google.com/p/timeside/downloads/list 73 73 74 Uncompress it and read README and INSTALL to install the dependencies 74 Uncompress it and read README and INSTALL to install the dependencies 75 75 and then the module. 76 76 … … 82 82 83 83 Otherwise, you have to download and install it from source:: 84 84 85 85 git clone git://github.com/samuraisam/django-json-rpc.git 86 86 cd django-json-rpc 87 87 python setup.py install 88 88 89 89 90 90 ------------------------- 91 91 Testing (sandbox) … … 107 107 cd ~/my_projects 108 108 django-admin startproject mysite 109 110 111 Create the media and cache directories112 -----------------------------------------113 114 We need 2 directories for media and caching::115 116 cd mysite117 mkdir media cache cache/data cache/export118 119 120 You might want to place these data directories somewhere else, no pb.121 109 122 110 … … 138 126 139 127 Set the app lists as follow:: 140 128 141 129 INSTALLED_APPS = ( 142 130 'django.contrib.auth', … … 151 139 152 140 Set the following languages:: 153 141 154 142 LANGUAGES = [ ('fr', 'French'), 155 143 ('en', 'English'), … … 158 146 159 147 Set the following Middlewares:: 160 148 161 149 MIDDLEWARE_CLASSES = ( 162 150 'django.middleware.common.CommonMiddleware', … … 169 157 170 158 Add the following variables:: 171 159 172 160 TEMPLATE_CONTEXT_PROCESSORS = ( 173 161 'django.core.context_processors.request', … … 183 171 TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published 184 172 EMAIL_HOST = your default SMTP server 185 DEFAULT_FROM_EMAIL = the default sending email address 186 173 DEFAULT_FROM_EMAIL = the default sending email address 174 187 175 Just paste the lines below:: 188 176 … … 195 183 196 184 If you want some personal templates, for example:: 197 185 198 186 TEMPLATE_DIRS = ( 199 187 '/home/dev/telemeta/sandboxes/sandbox_generic/templates/', … … 201 189 202 190 You can find an example for settings.py there:: 203 191 204 192 example/sandbox/settings.py 205 193 206 194 207 195 Initialize the database 208 196 -------------------------- … … 217 205 218 206 Add this dictionary to get Javascript translation:: 219 207 220 208 js_info_dict = { 221 209 'packages': ('telemeta',), … … 226 214 # Telemeta 227 215 (r'^', include('telemeta.urls')), 228 216 229 217 # Languages 230 (r'^i18n/', include('django.conf.urls.i18n')), 218 (r'^i18n/', include('django.conf.urls.i18n')), 231 219 (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), 232 220 233 221 You should also bring the django admin:: 234 222 235 223 (r'^admin/django/', include(admin.site.urls)), 236 224 237 225 Please also uncomment:: 238 226 239 227 from django.contrib import admin 240 228 admin.autodiscover() 241 229 242 230 You can find an example for url.py there:: 243 231 244 232 example/sandbox/urls.py 245 233 … … 256 244 python manage.py runserver 9000 257 245 246 To get it on your network interface:: 247 248 python manage.py runserver 192.168.0.10:9000 249 258 250 259 251 Test it … … 268 260 http://localhost:9000 269 261 262 or:: 263 264 http://192.168.0.10:9000 265 270 266 271 267 Configure the site domain name in admin > general admin > sites … … 279 275 280 276 Please see :: 281 277 282 278 http://telemeta.org/wiki/InterfaceCustomization 283 284 279 280 285 281 -------------------------- 286 282 Deploy it with Apache 2 … … 288 284 289 285 If you want to use Telemeta through a web server, it is highly recommended to use Apache 2 290 with the mod_wsgi module as explained in the following page : 286 with the mod_wsgi module as explained in the following page :: 291 287 292 288 http://docs.djangoproject.com/en/1.1/howto/deployment/modwsgi/#howto-deployment-modwsgi
Note: See TracChangeset
for help on using the changeset viewer.
