Hi, I'm deveolping some reusable apps with the aim of generating apache config files. The schema is: one 'base' app called apache and an arbitrary number of apps that act as OPTIONAL extensions.
These extension apps fit with base app on django-admin as inlines forms, and the template is rendered when all inlines are saved. My question is, What is the best way to render the apache template considering that an arbitrary number of extensions can fit some lines in multiple places of it? Thanks! Example: # Apache APP # VirtualHost template <VirtualHost {{ object.ip }}:{{ object.port }}> # Apache app lines # .... # .... # VH EXTENSION LINES </VirtualHost> # EXTENSION LINES OUT OF <VirtualHost> # "PHP Extension" APP # PHP Extension Template # This should go inside <VirtualHost> </VirtualHost> Action php-fcgi /fcgi-bin/php-fcgi-wrapper Alias /fcgi-bin/ {{ object.default_fcgid_basedir }}/{{ object.version }}-{{ object.virtualhost.user.name }}/ # Other lines that doesn't go inside <VirtualHost> definition # .... # "Python Extension" APP # Python Extension Template # This should go inside <VirtualHost> definition <Files app.py> SetHandler fastcgi-script </Files> # Other lines that doesn't go inside <VirtualHost> </VirtualHost> # ... -- Marc -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.