2017-10-16 71 views
0

我正在使用AJAX學習表單提交。ImportError:在Django應用程序中沒有模塊tinytest

`# -*- coding: utf-8 -*- 
from __future__ import unicode_literals 

from forms import tinyFormTest 
from .models import tinytest 
from django.shortcuts import render 

# Index page view -- 
def home(request): 
    form = tinyFormTest() 
    context = { 
     'form' : form, 
    } 
    return render(request, 'form.html', context) 

`

+0

模型是否有一個叫做'車型目錄'導致包含文件calle'tinytest.py'的錯誤文件的旁邊? – timakro

回答

0

沒有目錄稱爲模型,但會有在項目文件夾名爲models.py文件,並tinytest應在

相關問題