News for hackers. Stuff that matters.
Re:Using Django for mostly static sites by motter on Monday February 17, 2014 @11:35AM (#7252815)
I'm in the process of moving away from a static site for my website.

Simply put, a web interface is often more convenient so I can update things easier on the go, and it's good to have a place to host experiments too.

I have used various static site generators but none of them seemed to be significantly less work to get going than a small django app on heroku. Though I've been using Django for a few years, so there is simply no learning curve left.

Re:Using Django for mostly static sites by StavrosK on Monday February 17, 2014 @12:28PM (#7253109)
I had the same problem (updating content), so I wrote a small script to download deltas from my Dropbox and parse them. Now I can edit my posts with vim:

http://www.stavros.io/posts/this-blog-is-dropbox-enabled/

Re:Using Django for mostly static sites by motter on Monday February 17, 2014 @12:36PM (#7253179)
That's a nice solution, though I've gone for a markdown admin widget instead.

This one if I remember correctly: https://github.com/timmyomahony/django-pagedown

Re:Using Django for mostly static sites by StavrosK on Monday February 17, 2014 @12:37PM (#7253186)
Oooh, very nice, thanks for that!

One unintended (and great) side-effect of a Dropbox-hosted site is that you get mirrors for free (they all update together).

Re:Using Django for mostly static sites by untog on Monday February 17, 2014 @12:01PM (#7252959)
Wait till your web site gets a ton of unexpected traffic.
Re:Using Django for mostly static sites by riffraff on Monday February 17, 2014 @12:31PM (#7253142)
Having a dynamic "admin panel" does not mean you can't completely cache your user-facing pages.
Re:Using Django for mostly static sites by oneeyedpigeon on Monday February 17, 2014 @01:06PM (#7253379)
And having HTML files on the filesystem doesn't mean you can't have an admin panel to update them with.
Re:Using Django for mostly static sites by pekk on Monday February 17, 2014 @03:17PM (#7254222)
Do you have a Django plugin you'd like to suggest that does this?
Re:Using Django for mostly static sites by sondr3 on Monday February 17, 2014 @04:07PM (#7254502)
Maybe something like Prose.io (Jekyll based). It gives you a very rudimentary interface to edit your posts for a static site.
Re:Using Django for mostly static sites by StavrosK on Monday February 17, 2014 @12:27PM (#7253097)
What'll happen then? My Django-based blog handled hundreds of thousands of visits in a day without breaking a sweat. What it does is basically "fetch the whole page from memcached and serve it".