Commit d3551c2f authored by Patrick's avatar Patrick

first release

parent 35265c7e
------------------------------------------
How to setup Django, Django-cms - Repanier
------------------------------------------
- raspberrypi, using raspbian 'wheezy'
- virtualbox, using debian 'wheezy'
Install Django, Django-cms
--------------------------
Copy /install/install_new_virtualenv.sh and install_new_site.sh to your home directory.
.. code:: bash
chmod +x ~/install_new_virtualenv.sh
chmod +x ~/install_new_site.sh
~/install_new_virtualenv.sh v1
For each site replacing ´$REPANIER.BE$´ with the domain name of the corresponding site execute install_new_site.sh.
.. code:: bash
chmod +x ~/install_new_site.sh
~/install_new_site.sh v1 $REPANIER.BE$
Merge the folder /mysite of the git repo with the folder to ~/v1/mysite/mysite of your installation.
Copy the ´secret_key´ of ~/v1/mysite/mysite/setup.py and check DB paramters into the *.INI file loacted at /etc/uwsgi/apps-available/.
Generate a copy of static files needed by Django
.. code:: bash
cd ~/v1
source bin/activate
cd mysite
python manage.py collectstatic --settings=ptidej.ptidej_settings
# If some errors execute
# python manage.py collectstatic --traceback --settings=ptidej.ptidej_settings
# to detect the root cause
Create the DB with south. During this step you will be asked to create the ´superuser´ of Django.
.. code:: bash
python manage.py syncdb --all --settings=ptidej.ptidej_settings
python manage.py schemamigration repanier --initial --settings=ptidej.ptidej_settings
python manage.py migrate --fake --settings=ptidej.ptidej_settings
Check if CMS install is ok
.. code:: bash
python manage.py cms check --settings=ptidej.ptidej_settings
Compile translation files
.. code:: bash
cd ~/v1/mysite/repanier
export DJANGO_SETTINGS_MODULE=
django-admin.py compilemessages
If you want, initialize the DB with test content : copy the content of /install/createdb into ~/v1/mysite/
.. code:: bash
cd ~/v1/mysite/
export DJANGO_SETTINGS_MODULE='ptidej.ptidej_settings'
python createdb.py
Finalize th configuration
.. code:: bash
cd ~
ln -s ~/v1 ~/production
Restart Nginx and Uwsgi
.. code:: bash
# Restart Nginx
sudo /etc/init.d/nginx restart
# Stop Uwsgi
sudo /etc/init.d/uwsgi stop
# Clean the Django cache
rm -rf /var/tmp/django_cache/*
# Start Uwsgi
sudo /etc/init.d/uwsgi start
The surf on your sites
When needed, upgrade the DB with south for a new version of specific INSTALLED_APPS (eg repanier)
-------------------------------------------------------------------------------------------------
.. code:: bash
cd ~/production/mysite/
python manage.py schemamigration repanier --auto --settings=ptidej.ptidej_settings
python manage.py migrate repanier --settings=ptidej.ptidej_settings
If needed, check what South has done
.. code:: bash
cd ~/production/mysite/
python manage.py migrate --list --settings=mysite.repanier_settings
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'af', {
label: 'Styl',
panelTitle: 'Opmaak style',
panelTitle1: 'Blok style',
panelTitle2: 'Inlyn style',
panelTitle3: 'Objek style'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ar', {
label: 'أنماط',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'أنماط الفقرة',
panelTitle2: 'أنماط مضمنة',
panelTitle3: 'أنماط الكائن'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'bg', {
label: 'Стилове',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'bn', {
label: 'স্টাইল',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'bs', {
label: 'Stil',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ca', {
label: 'Estil',
panelTitle: 'Estils de format',
panelTitle1: 'Estils de bloc',
panelTitle2: 'Estils incrustats',
panelTitle3: 'Estils d\'objecte'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'cs', {
label: 'Styl',
panelTitle: 'Formátovací styly',
panelTitle1: 'Blokové styly',
panelTitle2: 'Řádkové styly',
panelTitle3: 'Objektové styly'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'cy', {
label: 'Arddulliau',
panelTitle: 'Arddulliau Fformatio',
panelTitle1: 'Arddulliau Bloc',
panelTitle2: 'Arddulliau Mewnol',
panelTitle3: 'Arddulliau Gwrthrych'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'da', {
label: 'Typografi',
panelTitle: 'Formattering på stylesheet',
panelTitle1: 'Block typografi',
panelTitle2: 'Inline typografi',
panelTitle3: 'Object typografi'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'de', {
label: 'Stil',
panelTitle: 'Formatierungenstil',
panelTitle1: 'Block Stilart',
panelTitle2: 'Inline Stilart',
panelTitle3: 'Objekt Stilart'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'el', {
label: 'Μορφές',
panelTitle: 'Στυλ Μορφοποίησης',
panelTitle1: 'Στυλ Κομματιών',
panelTitle2: 'Στυλ Εν Σειρά',
panelTitle3: 'Στυλ Αντικειμένων'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en-au', {
label: 'Styles',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles',
panelTitle2: 'Inline Styles',
panelTitle3: 'Object Styles'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en-ca', {
label: 'Styles',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles',
panelTitle2: 'Inline Styles',
panelTitle3: 'Object Styles'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en-gb', {
label: 'Styles',
panelTitle: 'Formatting Styles',
panelTitle1: 'Block Styles',
panelTitle2: 'Inline Styles',
panelTitle3: 'Object Styles'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en', {
label: 'Styles',
panelTitle: 'Formatting Styles',
panelTitle1: 'Block Styles',
panelTitle2: 'Inline Styles',
panelTitle3: 'Object Styles'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'eo', {
label: 'Stiloj',
panelTitle: 'Stiloj pri enpaĝigo',
panelTitle1: 'Stiloj de blokoj',
panelTitle2: 'Enliniaj Stiloj',
panelTitle3: 'Stiloj de objektoj'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'es', {
label: 'Estilo',
panelTitle: 'Estilos para formatear',
panelTitle1: 'Estilos de párrafo',
panelTitle2: 'Estilos de carácter',
panelTitle3: 'Estilos de objeto'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'et', {
label: 'Stiil',
panelTitle: 'Vormindusstiilid',
panelTitle1: 'Blokkstiilid',
panelTitle2: 'Reasisesed stiilid',
panelTitle3: 'Objektistiilid'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'eu', {
label: 'Estiloa',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Bloke Estiloak',
panelTitle2: 'Inline Estiloak',
panelTitle3: 'Objektu Estiloak'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'fa', {
label: 'سبک',
panelTitle: 'سبکهای قالببندی',
panelTitle1: 'سبکهای بلوک',
panelTitle2: 'سبکهای درونخطی',
panelTitle3: 'سبکهای شیء'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'fi', {
label: 'Tyyli',
panelTitle: 'Muotoilujen tyylit',
panelTitle1: 'Lohkojen tyylit',
panelTitle2: 'Rivinsisäiset tyylit',
panelTitle3: 'Objektien tyylit'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'fo', {
label: 'Typografi',
panelTitle: 'Formatterings stílir',
panelTitle1: 'Blokk stílir',
panelTitle2: 'Inline stílir',
panelTitle3: 'Object stílir'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'fr-ca', {
label: 'Styles',
panelTitle: 'Styles de formattage',
panelTitle1: 'Styles de block',
panelTitle2: 'Styles en ligne',
panelTitle3: 'Styles d\'objet'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'fr', {
label: 'Styles',
panelTitle: 'Styles de mise en page',
panelTitle1: 'Styles de blocs',
panelTitle2: 'Styles en ligne',
panelTitle3: 'Styles d\'objet'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'gl', {
label: 'Estilo',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'gu', {
label: 'શૈલી/રીત',
panelTitle: 'ફોર્મેટ ',
panelTitle1: 'બ્લોક ',
panelTitle2: 'ઈનલાઈન ',
panelTitle3: 'ઓબ્જેક્ટ પદ્ધતિ'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'he', {
label: 'סגנון',
panelTitle: 'סגנונות פורמט',
panelTitle1: 'סגנונות בלוק',
panelTitle2: 'סגנונות רצף',
panelTitle3: 'סגנונות אובייקט'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'hi', {
label: 'स्टाइल',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'hr', {
label: 'Stil',
panelTitle: 'Stilovi formatiranja',
panelTitle1: 'Block stilovi',
panelTitle2: 'Inline stilovi',
panelTitle3: 'Object stilovi'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'hu', {
label: 'Stílus',
panelTitle: 'Formázási stílusok',
panelTitle1: 'Blokk stílusok',
panelTitle2: 'Inline stílusok',
panelTitle3: 'Objektum stílusok'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'is', {
label: 'Stílflokkur',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'it', {
label: 'Stile',
panelTitle: 'Stili di formattazione',
panelTitle1: 'Stili per blocchi',
panelTitle2: 'Stili in linea',
panelTitle3: 'Stili per oggetti'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ja', {
label: 'スタイル',
panelTitle: 'スタイル',
panelTitle1: 'ブロックスタイル',
panelTitle2: 'インラインスタイル',
panelTitle3: 'オブジェクトスタイル'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ka', {
label: 'სტილები',
panelTitle: 'ფორმატირების სტილები',
panelTitle1: 'არის სტილები',
panelTitle2: 'თანდართული სტილები',
panelTitle3: 'ობიექტის სტილები'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'km', {
label: 'រចនាបថ',
panelTitle: 'ទ្រង់ទ្រាយ​រចនាបថ',
panelTitle1: 'រចនាបថ​ប្លក់',
panelTitle2: 'រចនាបថ​ក្នុង​ជួរ',
panelTitle3: 'រចនាបថ​វត្ថុ'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ko', {
label: '스타일',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ku', {
label: 'شێواز',
panelTitle: 'شێوازی ڕازاندنەوە',
panelTitle1: 'شێوازی خشت',
panelTitle2: 'شێوازی ناوهێڵ',
panelTitle3: 'شێوازی بەرکار'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'lt', {
label: 'Stilius',
panelTitle: 'Stilių formatavimas',
panelTitle1: 'Blokų stiliai',
panelTitle2: 'Vidiniai stiliai',
panelTitle3: 'Objektų stiliai'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'lv', {
label: 'Stils',
panelTitle: 'Formatēšanas stili',
panelTitle1: 'Bloka stili',
panelTitle2: 'iekļautie stili',
panelTitle3: 'Objekta stili'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'mk', {
label: 'Styles',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'mn', {
label: 'Загвар',
panelTitle: 'Загвар хэлбэржүүлэх',
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'ms', {
label: 'Stail',
panelTitle: 'Formatting Styles', // MISSING
panelTitle1: 'Block Styles', // MISSING
panelTitle2: 'Inline Styles', // MISSING
panelTitle3: 'Object Styles' // MISSING
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'nb', {
label: 'Stil',
panelTitle: 'Stilformater',
panelTitle1: 'Blokkstiler',
panelTitle2: 'Inlinestiler',
panelTitle3: 'Objektstiler'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'nl', {
label: 'Stijl',
panelTitle: 'Opmaakstijlen',
panelTitle1: 'Blok stijlen',
panelTitle2: 'Inline stijlen',
panelTitle3: 'Object stijlen'
});
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'no', {
label: 'Stil',
panelTitle: 'Stilformater',
panelTitle1: 'Blokkstiler',
panelTitle2: 'Inlinestiler',
panelTitle3: 'Objektstiler'
});