Difference between revisions of "Artenquiz documentation"
From Biowikifarm Metawiki
m |
m (+folder docu) |
||
Line 1: | Line 1: | ||
− | (See also [[Django-Installation]]) | + | (See also [[Django-Installation]] and [https://docs.djangoproject.com/en/1.3/intro/overview/ Django at a glance]) |
The test version for Artenquiz is running under: | The test version for Artenquiz is running under: | ||
Line 13: | Line 13: | ||
· http://artenquiz.biowikifarm.net/ | · http://artenquiz.biowikifarm.net/ | ||
· http://artenquiz.biowikifarm.net/identification/ | · http://artenquiz.biowikifarm.net/identification/ | ||
+ | · /accounts {{comment gray | (backend for user_name or email login) }} | ||
· /artenquiz | · /artenquiz | ||
· /management | · /management | ||
Line 20: | Line 21: | ||
· {{comment gray | python manage.py help importtaxa }} | · {{comment gray | python manage.py help importtaxa }} | ||
· {{comment gray | python manage.py importtaxa /path-to/datafile.csv }} | · {{comment gray | python manage.py importtaxa /path-to/datafile.csv }} | ||
+ | · /local {{comment gray | (generated localization files and defined English translations) }} | ||
+ | · /register {{comment gray | (definitions of registration) }} | ||
+ | · /report {{comment gray | (simple description reports for admins) }} | ||
+ | · /templates {{comment gray | (all django tamplates) }} | ||
├ /data {{comment gray| (data for import) }} | ├ /data {{comment gray| (data for import) }} | ||
− | └ /doc {{comment gray | (documentation) }} | + | └ /doc {{comment gray | (python + django documentation as [http://freemind.sourceforge.net/wiki/index.php/Main_Page freemind-mind-map])}} |
+ | |||
+ | You can start a django app by: | ||
+ | <source lang="bash"> | ||
+ | cd my-dj-project-folder | ||
+ | django-admin.py help startapp | ||
+ | django-admin.py startapp my-app-folder | ||
+ | # a it needs always __init__.py!!!! | ||
+ | </source> | ||
+ | |||
+ | To let a django application get to work, you need (in general) the following files: | ||
+ | __init__.py {{comment gray| (a 0Byte file needed by python) }} | ||
+ | [https://docs.djangoproject.com/en/1.3/topics/http/urls/ url.py] {{comment gray| (URL pattern definitions) }} | ||
+ | [https://docs.djangoproject.com/en/1.3/topics/db/models/ models.py] {{comment gray| (data-model definitions) }} | ||
+ | [https://docs.djangoproject.com/en/1.3/topics/http/views/ views.py] {{comment gray| (view layer: form request definitions, form processing) }} | ||
+ | [https://docs.djangoproject.com/en/1.3/topics/templates/ mytemplate.html] {{comment gray| (a template to process, see also [http://artenquiz.biowikifarm.net/admin/doc/ admin/doc/]) }} |
Revision as of 11:23, 5 December 2011
(See also Django-Installation and Django at a glance)
The test version for Artenquiz is running under:
An admin interface for django users having a special admin account is available at:
/var/www/v-artenquiz/django/ ├ /apache (redirect/URL settings) ├ /artenbestimmung (projects artenquiz + artenbestimmung) · http://artenquiz.biowikifarm.net/ · http://artenquiz.biowikifarm.net/identification/ · /accounts (backend for user_name or email login) · /artenquiz · /management · /commands (various import tools) · USAGE: · cd /path-to/artenbestimmung · python manage.py help importtaxa · python manage.py importtaxa /path-to/datafile.csv · /local (generated localization files and defined English translations) · /register (definitions of registration) · /report (simple description reports for admins) · /templates (all django tamplates) ├ /data (data for import) └ /doc (python + django documentation as freemind-mind-map)
You can start a django app by:
cd my-dj-project-folder
django-admin.py help startapp
django-admin.py startapp my-app-folder
# a it needs always __init__.py!!!!
To let a django application get to work, you need (in general) the following files:
__init__.py (a 0Byte file needed by python) url.py (URL pattern definitions) models.py (data-model definitions) views.py (view layer: form request definitions, form processing) mytemplate.html (a template to process, see also admin/doc/)