Opened 11 years ago

Closed 9 years ago

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

Download all attachments as: .zip

Change History (24)

comment:1 Changed 11 years ago by hugo

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

comment:2 Changed 11 years ago by Adrian Holovaty

priority: normallowest
Severity: normalminor

comment:3 Changed 10 years ago by Simon G. <dev@…>

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 Changed 10 years ago by anonymous

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 Changed 10 years ago by Malcolm Tredinnick

Oops. Last comment was from me.

comment:6 Changed 10 years ago by Jannis Leidel <jl@…>

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

Changed 10 years ago by Jannis Leidel <jl@…>

Attachment: database-loader.diff added

comment:7 Changed 10 years ago by Michael Radziej <mir@…>

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.

Changed 10 years ago by Jannis Leidel <jl@…>

Attachment: dbtemplates.diff added

new django.contrib.dbtemplates with template model

Changed 10 years ago by Jannis Leidel <jl@…>

Attachment: dbtemplates2.diff added

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

comment:8 Changed 10 years ago by Esaj

Cc: xarquonster@… added

comment:9 Changed 10 years ago by Thomas Steinacher <tom@…>

Cc: tom@… added

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

Patch needs improvement: unset

Changed 10 years ago by Jannis Leidel <jl@…>

Attachment: dbtemplates4.diff added

Basic tests included

comment:11 Changed 10 years ago by Jannis Leidel <jl@…>

Needs tests: unset

comment:12 Changed 9 years ago by Jannis Leidel <jl@…>

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 Changed 9 years ago by Jannis Leidel <jl@…>

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

comment:14 Changed 9 years ago by Jannis Leidel <jl@…>

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 Changed 9 years ago by Simon G. <dev@…>

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 Changed 9 years ago by anonymous

Cc: xarquonster@… removed

comment:17 Changed 9 years ago by Jannis Leidel

Cc: jl@… removed

comment:18 Changed 7 years ago by Jannis Leidel

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 Changed 5 years ago by Thomas Güttler

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

comment:20 Changed 5 years ago by Thomas Güttler

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