Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
Thanks to you all, I finally resolved the matter. I discovered it was just of a mix up of ModelForm and ordinary Django forms, though I enjoyed the teething challenges as a new django user Dr. Chielo C. Ifeanyi Chief Programmer, Head Webometrics Section ICT Unit, UNN 08032366433, 08154804230

Re: Working with forms

2020-04-05 Thread Maro Okegbero Samuel
Port your code back to the initial state it was when you asked the question and on the template change *{{form}}* to *{{form.as_p}}* > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Working with forms

2020-04-05 Thread Alejandro Avendano
Hi Chielo, Actually, save() is a method of the class forms.ModelForm. But your form class is extending from forms.Form instead. Please, modify your form.py as follow: class NameForm (forms.ModelForm) class Meta: model = Namerec fields = ['your_name’,] On Sunday,

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
Please I am still left with the AttributeError, The form is now publishing fully and very well but it cannot save to the MySQL table. below is the error details and the recent code of view.py AttributeError at /namev/ 'NameForm' object has no attribute 'save' Request Method: POST Request URL:

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
Thanks 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 On Sun, Apr 5, 2020 at 6:35 PM Joshua Kayode wrote: > Ask questions here for immediate and

Re: Working with forms

2020-04-05 Thread Joshua Kayode
Ask questions here for immediate and detailed response djangoafrica.com and join the WhatsApp group, a community of professional django developers Group1 https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9 Group2: https://chat.whatsapp.com/DfOLbncTDkIKAvcm5lLm2Y Django africa is a community of

Re: seeking experts guidance

2020-04-05 Thread Andréas Kühne
For learning angular, I would go to udemy and take the angular complete guide there - the guy who does that is good. Learning django - basics: django tutorial and the django girls tutorial. They give you the right idea how to use Django. You will also need a tutorial for django rest framework if

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
I tried using the form. save() but it gave the same error message as with NameForm.save() 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 On Sun,

Re: Working with forms

2020-04-05 Thread KONE GOMPOU LOUA ALASSANE
Use form. save() because you asigned NameForm to form like Le dim. 5 avr. 2020 à 14:04, Ifeanyi Chielo a écrit : > 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:

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
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

Re: seeking experts guidance

2020-04-05 Thread tiberio
Take a course on Udemy and read the documentation of Django Il giorno dom 5 apr 2020 alle 14:06 Nouman Mehmood ha scritto: > hello there, > > Hope everyone doing great. I'm final year student of computer science and > from Pakistan. I need suggestion about learning django and angular for the >

Re: Working with forms

2020-04-05 Thread Alejandro Avendano
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

Re: seeking experts guidance

2020-04-05 Thread Rok Klancar
Hello Nouman! The best place to learn Django is it's official tutorial (https://docs.djangoproject.com/en/3.0/intro/). There you will find examples of using Django in web development. Rok Dne nedelja, 05. april 2020 14.06.38 UTC+2 je oseba Nouman Mehmood napisala: > > hello there, > > Hope

Re: seeking experts guidance

2020-04-05 Thread Motaz Hejaze
i think you need a team On Sun, Apr 5, 2020 at 2:05 PM Nouman Mehmood wrote: > hello there, > > Hope everyone doing great. I'm final year student of computer science and > from Pakistan. I need suggestion about learning django and angular for the > final year project. What should I start with

seeking experts guidance

2020-04-05 Thread Nouman Mehmood
hello there, Hope everyone doing great. I'm final year student of computer science and from Pakistan. I need suggestion about learning django and angular for the final year project. What should I start with and where should I start to learn both of these. I've strong understanding of python,