Opened 10 years ago

Closed 8 years ago

Last modified 4 years ago

#632 closed enhancement (wontfix)

database stored templates

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

Download all attachments as: .zip

Change History (24)

comment:1 Changed 10 years ago by hugo

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

comment:2 Changed 9 years ago by adrian

  • priority changed from normal to lowest
  • Severity changed from normal to minor

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

  • Triage Stage changed from Unreviewed to Design 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 8 years ago by anonymous

  • Triage Stage changed from Design decision needed to Accepted

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 8 years ago by mtredinnick

Oops. Last comment was from me.

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

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

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

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

new django.contrib.dbtemplates with template model

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

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

comment:8 Changed 8 years ago by Esaj

  • Cc xarquonster@… added

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

  • Cc tom@… added

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

  • Patch needs improvement unset

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

Basic tests included

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

  • Needs tests unset

comment:12 Changed 8 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 8 years ago by Jannis Leidel <jl@…>

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

comment:14 Changed 8 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 8 years ago by Simon G. <dev@…>

  • Resolution set to wontfix
  • Status changed from new to closed

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

  • Cc xarquonster@… removed

comment:17 Changed 8 years ago by jezdez

  • Cc jl@… removed

comment:18 Changed 6 years ago by jezdez

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 4 years ago by guettli

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

comment:20 Changed 4 years ago by guettli

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