You might want to look at the Django templating system. It's far more
powerful and flexible than using a simple PHP script and including other
files.
Django wouldn't be overkill - it would make all of the features you
mentioned really easy as it does them out of the box. Allowing you to spend
all your time working on the website itself rather than repeating (or self
maintaining) the building blocks.

I moved over from PHP and haven't looked back.

Dougal


---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/



2009/3/31 Dotan Cohen <dotanco...@gmail.com>

>
> I have been writing websites as a hobby in PHP for a few years, but I
> want to switch to Python for various reasons. I have been advised to
> look into Django, but I am not sure that it fits my needs. My sites
> are mostly static HTML, generated from a header.inc and footer.inc
> file with code like <title>$title</title> and the page including that
> sets the $title variable before calling the include. This way, I don't
> have to code the website design into each page, and I can make changes
> to just the include files to be propogated across the site. I also
> have some pages the interact with a MySQL database, and I parse the
> query string extensively in those situations to keep friendly urls.
> See my photo gallery, for instance, which is all database driven, but
> has nice urls for all pages:
> http://dotancohen.com/eng/pictures/index.html
>
> Would Django be overkill for this type of website? Is there a better
> alternative? One of my goals in switching to Python is to broaden my
> exposure to the language as I intend to move into developing Qt
> applications soon.
>
> Thanks for any and all advice.
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to