laspal
unread,Jan 17, 2008, 2:32:53 AM1/17/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi,
I wanted to know how can I load template without adding any
functionality to it.
Basically I just wanted to see how does my template looks.
MY view.py is :
from django.template.loader import get_template
from django.template import Context
def Main_Page(request):
t = get_template('MainPage.html')
html = t.render(Context({????}))
???????????
???????????
and my urls.py is:
from django.conf.urls.defaults import *
from www.view import *
from django.conf import settings
urlpatterns = patterns('',
(r'^MainPage/$',Main_Page),
Its urgent.
Thanks for the help.