On 20/05/2011 1:35pm, John Griessen 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


Creating a "home" page is fairly simple. In urls.py you need to recognise a "non-link" which just means www.mydomain.com/ all by itself and make that call a view which renders the particular template which you want displayed.

Otherwise, you can configure your web server to recognise it and serve index.html without referring to django. Depends on what you want.

Using templates with css is exactly the same as any html.

In the head section of your base template nominate the css file and proceed as usual.

hth

Mike

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