Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
new to django - just need pages
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Claire Watkins  
View profile  
 More options May 9 2012, 6:44 am
From: Claire Watkins <m4clairelou...@gmail.com>
Date: Wed, 9 May 2012 03:44:15 -0700 (PDT)
Local: Wed, May 9 2012 6:44 am
Subject: new to django - just need pages
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivo Marcelo Leonardi Zaniolo  
View profile  
 More options May 9 2012, 7:50 am
From: Ivo Marcelo Leonardi Zaniolo <imarcel...@gmail.com>
Date: Wed, 9 May 2012 08:50:17 -0300
Local: Wed, May 9 2012 7:50 am
Subject: Re: new to django - just need pages

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy Makobu  
View profile  
 More options May 9 2012, 8:02 am
From: Timothy Makobu <makobu.mwambir...@gmail.com>
Date: Wed, 9 May 2012 15:02:04 +0300
Local: Wed, May 9 2012 8:02 am
Subject: Re: new to django - just need pages

Hi Claire,

A good foundation in Python is needed. First read all of this
http://docs.python.org/tutorial/  then all four of these
https://docs.djangoproject.com/en/1.4/intro/tutorial01/ then this
http://www.djangobook.com/en/2.0/  (its old, but it works).

On Wed, May 9, 2012 at 2:50 PM, Ivo Marcelo Leonardi Zaniolo <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »