I'm not exactly clear on the question, but I'll share with you what I've
done on my site.

For pages like the "Home Page", I've created an application called "core".
Then I just call my <project>.core.views.HomePageView.as_view() from the
"urls.py" file under my main project directory. The regular expression I
use, which is also an example in the default urls.py, is simply u'^$' (I
think -- I'd have to double check).

Hopefully that helps a little bit, sorry if I was completely off. I do kind
of get the feeling that you want a views.py right in your project root. I
believe it's possible (I've seen examples of it somewhere in the docs) but
I personally don't go that route and have never tried it.

Also, if your home page is just a simple template and there's no need for a
lot of functionality behind it, you can do this:

url(u'^$', TemplateView.as_view(template_name = 'home_page.html')),


On Mon, Nov 7, 2011 at 2:12 PM, M. Herold <digitallim...@gmail.com> wrote:

> I've developed a number of apps and stuck them into my django
> framework, but in looking to create a hub at the index of my site
> (among other standard pages; e.g. about, network, etc.), I've sort of
> gotten stuck. Do I really want to create another app and just redirect
> from my index, having a sort of "index" app? Is there a clever way to
> have a "top level" app?
>
> Thanks in advance
> Michael
>
> --
> 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.
>
>

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