> 2- First thing I need to know is this: If it is a project with some
> applications, the project should have a home page.  From this home page,
> the user can choose from running applications.  In the tutorial I've
> read nothing about that project home page.  How can I do it? Create a
> view under /home/luis/myproject?  It didn't seem to work.

This puzzled me too when I started with Django- it would be a useful
addition to the docs if there's an elegant way of doing this.

I just made a 'home' app and pointed the default url to it.  It's good
to have your home page within your Django project- then you use the
same templates. Also, you're bound to want to put in some dynamic
content sometime  :)

Flatpages are useful, and you can load their content dynamically in a
view like this (magic-removal):

from django.contrib.contenttypes.models import ContentType
...
fp = FlatPage.objects.get(url='/mycontent/')

and put fp.content into your context, then use it in the template.
It's very useful for storing chunks of content that need to go into a
dynamic page.

Derek


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

Reply via email to