Best practice: How to persist simple data without a database in django?

Posted by Infinity on Stack Overflow See other posts from Stack Overflow or by Infinity
Published on 2010-06-02T16:13:39Z Indexed on 2010/06/02 16:24 UTC
Read the original article Hit count: 172

I'm building a website that doesn't require a database because a REST API "is the database". (Except you don't want to be putting site-specific things in there, since the API is used by mostly mobile clients)

However there's a few things that normally would be put in a database, for example the "jobs" page. You have master list view, and the detail views for each job, and it should be easy to add new job entries. (not necessarily via a CMS, but that would be awesome)

e.g. example.com/careers/ and example.com/careers/77/

I could just hardcode this stuff in templates, but that's no DRY- you have to update the master template and the detail template every time.

What do you guys think? Maybe a YAML file? Or any better ideas? Thx

© Stack Overflow or respective owner

Related posts about python

Related posts about best-practices