Hi Jakob,
First thanks a lot for your reply
I modify my forms.py like the following:
from django import forms
from views import *
class DLForm(forms.Form):
global dllist_choice
choice=dllist_choice
distribution_list=forms.ChoiceField(choices=choice,
Hi
It seems your problem with dlist_choice is caused by an incorrect
you of global vars. I've not used globals much myself, but I believe
that you don't import them, but instead in every function that needs
them do a global var_name.
the other traceback seems irrelevant, but the problem you that
Hi guys,
I am a beginner of Django, a problem has been unsolved for a long
time, can you help me.
I have a file forms.py:
from django import forms
from views import dllist_choice
class DLForm(forms.Form):
distribution_list=forms.ChoiceField
3 matches
Mail list logo