> in my app's vimes.py file Do you really mean "vimes.py"? Could you show the first line of the definition of the show_table() function?
Antonis Christofides http://djangodeployment.com On 12/19/2016 02:15 PM, Xin Belter wrote: > Here is the strange thing I just met: > > My project's name is _showMetDDA_, and has only one app named _showTable_, in > my app's vimes.py file, I have a view function named _show_table()._ > _ > _ > When I import my view function in > urls.py(~/djcode/showMetDDA/showMetDDA/urls.py) file, I cannot import it. > > <https://lh3.googleusercontent.com/-koTFWxMwZeQ/WFfO4ubj-YI/AAAAAAAAADs/snGJ_8rNrJ4tLuel6cgbtcV0MXN8vEm-wCLcB/s1600/1.jpg> > > > error like this: > > <https://lh3.googleusercontent.com/-yu-Y6BnNMzg/WFfO_ZgRZvI/AAAAAAAAADw/KjIxDknsKjEQ6-wwh2C2Ew-P8YAKBpU2ACLcB/s1600/2.jpg> > > > > When I comment the line where has show_table, It works: > > <https://lh3.googleusercontent.com/-Bu-O1v3jDug/WFfPJWAcfAI/AAAAAAAAAD0/s2nNnKjmwN4bWexoddRihFByj_tIedGWwCLcB/s1600/3.jpg> > > > > <https://lh3.googleusercontent.com/-mygF9qxtJpQ/WFfPL1Q1wnI/AAAAAAAAAD4/dH5EChwnILwFoopUIxRcsDSHJVWWfquLACLcB/s1600/4.jpg> > > > > What happened? Is it normal??? > > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/15e2dfd3-74d6-4988-929b-22c553b50591%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/15e2dfd3-74d6-4988-929b-22c553b50591%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e02ab365-766c-6c15-0e44-ad3979ff0621%40djangodeployment.com. For more options, visit https://groups.google.com/d/optout.

