dude I missed 1 important import. first add this,
--------------------- from django.template import RequestContext -------------------- also makesure your template path is set in settings.py mine looks something like this TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "C:/Appframework/evento/evento/templates" ) so all my html file reside inside the templates directory, its like doc-root. it can also have sub directories inside it. it also has to be on the same level as my setttings.py and manage.py ---------------------- and no you can render as many variables as like this variables = RequestContext(request,{ 'paragraph': para , 'variable2':v2, 'variable3':v3}) --------------------------------- hope this solves you problem. On Sat, Jul 10, 2010 at 1:39 PM, commonzenpython <commonzenpyt...@gmail.com>wrote: > thanks, unfortunately i keep getting a 404, the templates name is > 2col.html, its inside ash/templates, the url i have is (r'^paragraph/ > $', 'show_para'), and the views is > from django.http import HttpResponse > from django.shortcuts import render_to_response > > def show_para(request): > para = "I love this project" > variables = RequestContext(request,{ 'paragraph': para}) > return render_to_response('2col.html',variables) > > even if it works i was wondering if i would have to create a new > function for every variable, > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Syed Ali Saim Project Manager Softech Worldwide LLC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.