Opened 19 years ago

Closed 17 years ago

Last modified 13 years ago

#632 closed enhancement (wontfix)

database stored templates

Reported by: hugo Owned by: Adrian Holovaty
Component: Template system Version:
Severity: minor Keywords:
Cc: tom@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In my repository for my new CMS project I have a simple and little app that implements database stored templates. Actually it's just a model and a template loader. This might be something that could go into the django.contrib package. I think it's especially handy if your site is mostly Django admin driven and people should be able to make changes to templates through the web.

Attachments (4)

database-loader.diff (4.6 KB ) - added by Jannis Leidel <jl@…> 18 years ago.
Database loader based on http://code.google.com/p/django-databasetemplateloader/
dbtemplates.diff (4.7 KB ) - added by Jannis Leidel <jl@…> 18 years ago.
new django.contrib.dbtemplates with template model
dbtemplates2.diff (8.7 KB ) - added by Jannis Leidel <jl@…> 18 years ago.
Completed django.contrib.dbtemplates with loader, sync_templates utility and new documentation
dbtemplates4.diff (7.2 KB ) - added by Jannis Leidel <jl@…> 18 years ago.
Basic tests included

Download all attachments as: .zip

Change History (24)

comment:1 by hugo, 19 years ago

Since I reorganized my CMS project a bit, the dbtemplate sources are now in the stuff project.

comment:2 by Adrian Holovaty, 19 years ago

priority: normallowest
Severity: normalminor

comment:3 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedDesign decision needed

I like the idea, and it might make a nice inclusion into contrib, but will this work on a recent version of Django?

comment:4 by anonymous, 18 years ago

Triage Stage: Design decision neededAccepted

Somebody else wrote one of these and there was a small thread about it one the lists last year. Looks like his work was based on hugo's and there were problems in any case. So let's revive hugo's version (or something like it) and drop it into contrib.

comment:5 by Malcolm Tredinnick, 18 years ago

Oops. Last comment was from me.

comment:6 by Jannis Leidel <jl@…>, 18 years ago

Please notice my implementation of a template database loader at http://code.google.com/p/django-databasetemplateloader/

by Jannis Leidel <jl@…>, 18 years ago

Attachment: database-loader.diff added

comment:7 by Michael Radziej <mir@…>, 18 years ago

Has patch: set
Needs tests: set
Patch needs improvement: set

Thanks for making the patch, Jannis!

"patch needs improvement" set due to Jacob's comments on the mailing list.

by Jannis Leidel <jl@…>, 18 years ago

Attachment: dbtemplates.diff added

new django.contrib.dbtemplates with template model

by Jannis Leidel <jl@…>, 18 years ago

Attachment: dbtemplates2.diff added

Completed django.contrib.dbtemplates with loader, sync_templates utility and new documentation

comment:8 by Esaj, 18 years ago

Cc: xarquonster@… added

comment:9 by Thomas Steinacher <tom@…>, 18 years ago

Cc: tom@… added

comment:10 by Jannis Leidel <jl@…>, 18 years ago

Patch needs improvement: unset

by Jannis Leidel <jl@…>, 18 years ago

Attachment: dbtemplates4.diff added

Basic tests included

comment:11 by Jannis Leidel <jl@…>, 18 years ago

Needs tests: unset

comment:12 by Jannis Leidel <jl@…>, 17 years ago

I just uploaded a new version [1] of the dbtemplates module, which is kind of pieced together from the last patch (4) and some ideas from james bennett's django-registration app :)

it's a standalone app now and lives on the python path. installation and usage instructions included.
please don't hesitate to test it and complain [2] if it isn't working.

1: http://django-databasetemplateloader.googlecode.com/files/dbtemplates-0.2.tar.gz
2: http://code.google.com/p/django-databasetemplateloader/issues/list

comment:13 by Jannis Leidel <jl@…>, 17 years ago

oh sorry, didn't know, that the [x] is a magic wiki word.

comment:14 by Jannis Leidel <jl@…>, 17 years ago

Cc: jl@… added

I updated a lot of dbtemplates and finished working on the sync tool. Please look for further details and recent downloads here: http://code.google.com/p/django-databasetemplateloader/

(Considering the fact that Google Code hosted contrib apps seem to become standard I hereby propose the closure of this ticket :)

comment:15 by Simon G. <dev@…>, 17 years ago

Resolution: wontfix
Status: newclosed

Thanks Jannis, I'll close this then - just make sure the google code page is linked to prominently on appropriate django wiki pages (wiki:Resources for ex.)

comment:16 by anonymous, 17 years ago

Cc: xarquonster@… removed

comment:17 by Jannis Leidel, 17 years ago

Cc: jl@… removed

comment:18 by Jannis Leidel, 15 years ago

The databasetemplateloader project has since been moved away from Google Code. Please visit http://pypi.python.org/pypi/django-dbtemplates for up-to-date releases.

comment:19 by Thomas Güttler, 14 years ago

Cc: hv@… added
Easy pickings: unset
UI/UX: unset

comment:20 by Thomas Güttler, 13 years ago

Cc: hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top