←back to thread

Happy 20th Birthday, Django

(www.djangoproject.com)
578 points davepeck | 1 comments | | HN request time: 0.219s | source
Show context
mrcwinn ◴[] No.44559774[source]
Not to conflate a framework and a language, but there’s something about Django that makes me feel like I’m writing PHP. What is this effect?
replies(3): >>44559911 #>>44560628 #>>44561163 #
simonw ◴[] No.44561163[source]
When Adrian and I first designed Django we were PHP developers switching to Python, so quite a few Django pieces were inspired by PHP.

Django's request.GET and request.POST were directly influenced by $_GET and $_POST.

Django's template language included ideas from the Smarty PHP template language.

replies(1): >>44561771 #
nojs ◴[] No.44561771[source]
This is surprising because the template language in particular feels so anti-PHP, it’s highly opinionated about not mixing code in with the template. I often wish it supported arbitrary Python.

Anyway, thank you Simon :)

replies(2): >>44561838 #>>44567764 #
1. ashwinsundar ◴[] No.44567764[source]
Custom tags and filters have been my escape hatches when the DTL is not taking me where I need to go.

https://docs.djangoproject.com/en/5.2/howto/custom-template-...