Thanks everyone! This group is always so helpful and FAST!

I made a view.py file in the project root because I wanted to use data
from my apps to populate the home page. It worked great!

On Jul 6, 9:17 pm, "Milan Andric" <[EMAIL PROTECTED]> wrote:
> 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-view...
>
> --
> Milan
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to