openresources / testproject /

Filename Size Date modified Message
..
templates
1.2 KB
0 B
647 B
1.6 KB
892 B

Test Project for OpenResources

To run an OpenResources test server, type:

manage.py syncdb

(only the first time, creates database and superuser), then:

manage.py runserver

to run a pre-configured server. Point your browser to http://localhost:8000/ - et voilà!

You can also create a Python virtual environment containing your dependencies (e.g. South, TransMeta) here.

Creating Migrations

If you have South installed, you can run:

manage.py schemamigration openresources --auto

to create a schemamigration if you changed the models. After that you can run:

manage.py migrate

to apply that migration to the database.

Creating Translations

To create or update a translation, go to ../openresources and run:

django-admin.py makemessages -l <language_code>

Edit the created/updated translation file, and run:

django-admin.py compilemessages

Make sure to check in / commit bot the .po and the .mo (binary) file in locale/<language_code>/LC_MESSAGES/, since not everyone will have gettext installed!

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.