forked from djbook-ru/djbookru
It is Django powered site for russian translation of DjangoBook
balmaster/djbookru
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
New version of djbook.ru site. DONT FORGET: now ADMIN_MEDIA_URL points to /lib/grappelli/media Install: easy_install setuptools #install setuptools easy_install pip #install pip easy_install virtualenv #install virtualenv # apt-get install python-setuptools python-pip python-virtualenv virtualenv env #create virtual enviroment source env/bin/activate #activate virtual enviroment pip install -r requirements.txt #install required libraries How to use build farm: 1. install last version of Apache Ant from http://ant.apache.org/ or 'apt-get install ant' 2. Do ant configure first time to create project.user.properties file. 3. Make your changes in project.user.properties file. 4. Configure project with 'ant configure'. Prepare: cd src # By default, it uses sqlite python manage.py syncdb Migration: For first migration use: > python manage.py migrate news 0001 --fake then just: > python manage.py migrate news Run: cd src # if needed use run.bat or run.sh #Data To load news from fixture run: python manage.py loaddata news.json To load data for examples from fixture run: python manage.py loaddata examples.json To load flatpages run: python manage.py loaddata flatpages.json #i18n python manage.py makemessages -a python manage.py makemessages -d djangojs -a python manage.py compilemessages Некоторый проблемы с локализацией. При подключении .po файлов для js нужно указывать приложение в котором они хранятся. Тоесть если они лежат в корне проекта, нужно добавлять проект в INSTALL_APP. Но лучше после компиляции в .mo копировать их в main/local. (кто переведет это на English, тому респект и уважуха) #Comments User is comment moderator if User.is_staff == True and user has permission to edit or delete comments.
About
It is Django powered site for russian translation of DjangoBook
Resources
Stars
Watchers
Forks
Packages 0
No packages published