On May 20, 4:35 am, John Griessen <j...@industromatic.com> wrote:
> I've gone through the Django 1.2 tutorial to the point of creating an admin 
> site,
> then had to switch to other work for months.  What are some good simple 
> example sites
> or tutorials for creating a top page ( index.html ) and using templates with 
> css?
>
> John

Like you, I'm a Django n00b. What I'd recommend is a quick tour
through the tutorial again (in case there's any changes from 1.2 to
1.3 that'll effect you, plus it's always good to have that warm "I
remember that" feeling). I'd recommend that Django book from Apress,
even though that's covering 1.1 - but make sure to get the 2nd edition
(pub date 2009) rather than the older release - I've seen both on
Amazon, which is quite confusing.

The top page question - if you want a static page (ye olde index.html)
then probably best to get the web server to skirt around Django and
deliver that as a normal HTML page. But the _simplest_ option (from my
experience) is to generate a small stub routine that has index.html as
a template and use render_to_response to shoot that out when the user
goes to URL http//mysite/ (or whatever you want). Just because you're
using index.html as a template doesn't mean that it needs to contain
anything other than normal HTML. The site I'm developing at the moment
has "dummy" placeholders that do exactly that, so I know it works.

I only started Django about two weeks ago, and yesterday I generated
my first app-specific template filter with few troubles, so I'm
_REALLY_ impressed with the power and flexibility of the Django
framework. :D

Regards, Bob.

-- 
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