On Apr 10, 2006, at 2:43 PM, [EMAIL PROTECTED] wrote: >> 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.
One trick I use is the ``direct_to_template`` generic view (http:// www.djangoproject.com/documentation/generic_views/#using-simple- generic-views). This lets you do something like:: urlpatterns = patterns('', (r'^/$', 'django.views.generic.simple.direct_to_template', {'template' : 'homepage'}), ) Then, when you later decide that you need "real"content in your homepage view, you can replace the view function with a pointer to a real view. Jacob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---