imarcel
...@gmail.com> wrote:
> Hi Claire,
> You can configure the website urls like that:
> from django.conf.urls.defaults import patterns, include, url
> from django.views.generic.simple import direct_to_template
> urlpatterns = patterns('',
> url(r'^$', direct_to_template, { 'template' : 'home.html'},
> name='about'),
> )
> Those URL conf will render the "home.html" template when you that url "/".
> To test it you run manage.py runserver then, open on your browser "
> http://localhost/8000"
> You can also take a look at this post:
> http://imarcelolz.blogspot.com.br/2012/04/django-14-templateview.html
> *Um Abraço!*
> *Ivo Marcelo Leonardi Zaniolo*
> *Email: *imarcel...@gmail.com
> 2012/5/9 Claire Watkins <m4clairelou...@gmail.com>
>> Hi,
>> I'm new to django, python etc so i've ran through the django tutorial
>> and it seemed to make sense.
>> I'm on creating my first website and i've managed to create a project
>> and get the admin site up and running. Now all i need to do is create
>> 3 pages "Home", "About", and "Maps". I downloaded the django-pages-cms
>> but i don't seem to be getting anywhere with that.
>> Basically i need to configure my url's so that i can place home.html
>> or index.html into the site. I can't seem to do this and i've spent so
>> many hours looking at the settings.py, urls.py. I think i need to do
>> something with the template_dirs and the url patterns but... i'm just
>> stuck!
>> Any help would be appreciated!
>> Thanks,
>> Claire
>> --
>> 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+unsubscribe@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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.