Skip to content

sirex/ubuntu.lt

Repository files navigation

Development environment

Assuming you use virtualenv, follow these steps to download and run the Spirit example application in this directory:

$ git clone https://github.com/sirex/ubuntu.lt.git
$ cd ubuntu.lt
$ virtualenv -p /usr/bin/python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ createdb ubuntult
$ ./manage.py spiritinstall
$ ./manage.py createsuperuser
$ ./manage.py runserver

Visit http://127.0.0.1:8000/

How to run tests

You can run tests using following command:

py.test ubuntult/tests

If you want faster test runs, when working on a feature, run tests using following command:

py.test --nomigrations --reuse-db ubuntult/tests

Translations

While Lithuanian translations are still not included in Spirit1, all translation messages have to be merged into one using following command:

msgcat --use-first ubuntult/transifex/*.po > ubuntult/locale/lt/LC_MESSAGES/django.po

After that, you need to compile messages:

(cd ubuntult && django-admin compilemessages -l lt)

Once you update transaltion messages, you have to repeat this precedure all over again.


  1. nitely/Spirit#167

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published