Still no luck. I have this line added to the top of views.py. from xxx.register.forms import ContactForm
It can't seem to find forms 'No module named forms'. On Dec 9, 3:45 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 9, 8:43 pm, prem1er <[EMAIL PROTECTED]> wrote: > > > Thank you. That cleared that up. Now getting the error. "global name > > 'ContactForm' is not defined" in my 'views.py' file. Any ideas? > > Well, as with all Python code, if you define an object in one file and > refer to it in another, you have to import it. So at the top of your > views.py you'll need something like: > from xxx.forms import ContactForm > > -- > DR. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---