I added the NameForm.Save() attribute and I had an AttributeError message
thus:
AttributeError at /namev/

type object 'NameForm' has no attribute 'save'

Request Method: POST
Request URL: http://localhost:8000/namev/
Django Version: 2.1.5
Exception Type: AttributeError
Exception Value:

type object 'NameForm' has no attribute 'save'

Exception Location: C:\Users\IFEANYI CHIELO\divinecrownapp\pages\views.py
in Namev_view, line 16
Python Executable: C:\Users\IFEANYI
CHIELO\AppData\Local\Programs\Python\Python37\python.exe
Python Version: 3.7.2
Python Path:

['C:\\Users\\IFEANYI CHIELO\\divinecrownapp',
 'C:\\Users\\IFEANYI '
 'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
 'C:\\Users\\IFEANYI CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
 'C:\\Users\\IFEANYI CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib',
 'C:\\Users\\IFEANYI CHIELO\\AppData\\Local\\Programs\\Python\\Python37',
 'C:\\Users\\IFEANYI '
 'CHIELO\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']

Server time: Sun, 5 Apr 2020 13:59:01 +0000
Dr. Chielo C. Ifeanyi
Chief Programmer,
Head Webometrics Section
ICT Unit, UNN
08032366433, 08154804230
ifeanyi.chi...@unn.edu.ng
http://www.unn.edu.ng/users/ifeanyichielo <http://www.unn.edu.ng>



On Sun, Apr 5, 2020 at 2:45 PM Alejandro Avendano <aavendan...@gmail.com>
wrote:

> Hi in the first version, you had:
>  NameForm.is_valid():
>      NameForm.save()
>
> But on the second, version the "NameForm.save()" is missing. This is the
> line of code that save into you database. Maybe, should try putting it
> back...
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/54d77f2f-58cf-455f-9b11-8857a5ffb32b%40googlegroups.com
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOcS8H0wvTPnK1bmk6Q8XcKZ5R3BMxt_nq-EqkvFwUL1rB0n9Q%40mail.gmail.com.

Reply via email to