On Sun, Jul 6, 2008 at 10:52 PM, keegan3d <[EMAIL PROTECTED]> wrote:
>
> Hey everyone,
>
> I am a little foggy on how I would go about making a home page, by
> that I mean the page that people see when they go to the main address:
> www.mysite.com.
>
> Should I make a "home page" app? or does django have a way of dealing
> with this?
>

If your frontpage doesn't change much you can also just use a template
and generic view url config to manage it.

# or also include some forum entries on the homepage as well
object_list = Forum.objects.all()
...
  url(
       r'^$',
       'django.views.generic.simple.direct_to_template',
       {'template': 'home.html', 'extra_context': {
'object_list':object_list } }
   ),
...

http://www.djangoproject.com/documentation/generic_views/#django-views-generic-simple-direct-to-template

--
Milan

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

Reply via email to