hii, i'm newbie in django. i'm facing some problem where the error is like below :-
NameError at /survey/ global name 'variables' is not defined Environment: Request Method: GET Request URL: http://localhost:8000/survey/ Django Version: 1.0.2 final Python Version: 2.6.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'aper.apps'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/ decorators.py" in __call__ 67. return self.view_func(request, *args, **kwargs) File "/home/www/django/aper/../aper/apps/views.py" in survey 107. return render_to_response('survey.html', variables) Exception Type: NameError at /survey/ Exception Value: global name 'variables' is not defined here is my code :- @login_required def survey(request): return render_to_response('survey.html', variables) please help me because this is my first time using django.. really need your help guys.. thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

