Changeset 06ce8dd for INSTALL.rst


Ignore:
Timestamp:
12/07/11 17:23:50 (2 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, 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)
Message:

fix infos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • INSTALL.rst

    r5e733ab3 r06ce8dd  
    2020 
    2121* On Debian (Squeeze recommended) or Ubuntu Lucid: 
    22      
     22 
    2323    Install all dependencies like this:: 
    24          
     24 
    2525        sudo aptitude install python python-dev python-django python-xml python-mysqldb mysql-server \ 
    2626        python-ctypes python-setuptools python-support python-docutils \ 
     
    2828        python-scipy python-imaging python-mutagen python-gobject python-gst0.10 \ 
    2929        gstreamer0.10-plugins-base gobject-introspection 
    30          
     30 
    3131    To get MP3 reading and writing, just add these lines to your /etc/apt/sources-list:: 
    32              
     32 
    3333        deb http://www.debian-multimedia.org stable main 
    3434 
     
    3737        sudo apt-get update 
    3838        sudo aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame 
    39                  
     39 
    4040* On other linux platforms: 
    41                      
     41 
    4242    Please install all dependencies thanks to your application manager. 
    43                      
     43 
    4444 
    4545Install Telemeta 
     
    6060    cd telemeta-1.0 
    6161    sudo python setup.py install 
    62          
     62 
    6363 
    6464Install TimeSide 
     
    7272http://code.google.com/p/timeside/downloads/list 
    7373 
    74 Uncompress it and read README and INSTALL to install the dependencies  
     74Uncompress it and read README and INSTALL to install the dependencies 
    7575and then the module. 
    7676 
     
    8282 
    8383Otherwise, you have to download and install it from source:: 
    84      
     84 
    8585    git clone git://github.com/samuraisam/django-json-rpc.git 
    8686    cd django-json-rpc 
    8787    python setup.py install 
    8888 
    89      
     89 
    9090------------------------- 
    9191Testing (sandbox) 
     
    107107    cd ~/my_projects 
    108108    django-admin startproject mysite 
    109  
    110  
    111 Create the media and cache directories 
    112 ----------------------------------------- 
    113  
    114 We need 2 directories for media and caching:: 
    115  
    116     cd mysite 
    117     mkdir media cache cache/data cache/export 
    118  
    119  
    120 You might want to place these data directories somewhere else, no pb. 
    121109 
    122110 
     
    138126 
    139127Set the app lists as follow:: 
    140      
     128 
    141129    INSTALLED_APPS = ( 
    142130    'django.contrib.auth', 
     
    151139 
    152140Set the following languages:: 
    153      
     141 
    154142    LANGUAGES = [ ('fr', 'French'), 
    155143                  ('en', 'English'), 
     
    158146 
    159147Set the following Middlewares:: 
    160      
     148 
    161149    MIDDLEWARE_CLASSES = ( 
    162150        'django.middleware.common.CommonMiddleware', 
     
    169157 
    170158Add the following variables:: 
    171      
     159 
    172160    TEMPLATE_CONTEXT_PROCESSORS = ( 
    173161        'django.core.context_processors.request', 
     
    183171    TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published 
    184172    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 
    187175Just paste the lines below:: 
    188176 
     
    195183 
    196184If you want some personal templates, for example:: 
    197      
     185 
    198186    TEMPLATE_DIRS = ( 
    199187    '/home/dev/telemeta/sandboxes/sandbox_generic/templates/', 
     
    201189 
    202190You can find an example for settings.py there:: 
    203      
     191 
    204192    example/sandbox/settings.py 
    205193 
    206      
     194 
    207195Initialize the database 
    208196-------------------------- 
     
    217205 
    218206Add this dictionary to get Javascript translation:: 
    219      
     207 
    220208    js_info_dict = { 
    221209        'packages': ('telemeta',), 
     
    226214    # Telemeta 
    227215    (r'^', include('telemeta.urls')), 
    228      
     216 
    229217    # Languages 
    230     (r'^i18n/', include('django.conf.urls.i18n')),     
     218    (r'^i18n/', include('django.conf.urls.i18n')), 
    231219    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), 
    232      
     220 
    233221You should also bring the django admin:: 
    234      
     222 
    235223    (r'^admin/django/', include(admin.site.urls)), 
    236      
     224 
    237225Please also uncomment:: 
    238      
     226 
    239227    from django.contrib import admin 
    240228    admin.autodiscover() 
    241229 
    242230You can find an example for url.py there:: 
    243      
     231 
    244232    example/sandbox/urls.py 
    245233 
     
    256244    python manage.py runserver 9000 
    257245 
     246To get it on your network interface:: 
     247 
     248    python manage.py runserver 192.168.0.10:9000 
     249 
    258250 
    259251Test it 
     
    268260    http://localhost:9000 
    269261 
     262or:: 
     263 
     264    http://192.168.0.10:9000 
     265 
    270266 
    271267Configure the site domain name in admin > general admin > sites 
     
    279275 
    280276Please see :: 
    281      
     277 
    282278    http://telemeta.org/wiki/InterfaceCustomization 
    283      
    284      
     279 
     280 
    285281-------------------------- 
    286282Deploy it with Apache 2 
     
    288284 
    289285If 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 : 
     286with the mod_wsgi module as explained in the following page :: 
    291287 
    292288    http://docs.djangoproject.com/en/1.1/howto/deployment/modwsgi/#howto-deployment-modwsgi 
Note: See TracChangeset for help on using the changeset viewer.