http://localhost:8000/admin/ is not working

2020-06-16 Thread Ifeanyi Chielo
Value: Cannot mix str and non-str argumentsException Location: C:\Users\IFEANYI CHIELO\AppData\Local\Programs\Python\Python37\lib\urllib\parse.py in _coerce_args, line 120Python Executable: C:\Users\IFEANYI CHIELO\AppData\Local\Programs\Python\Python37\python.exePython Version: 3.7.2Python Path: ['C

Model Arithmetic Operation

2020-06-02 Thread Ifeanyi Chielo
Dear all, Hello, please can someone help me with the code to subtract 'b' from 'a' as shown below a = Soapprod.objects.aggregate(Sum('Serial_White_Guava')) b = Soapsales.objects.aggregate(Sum('Serial_White_Guava')) class Soapprod (models.Model): id =

Re: Regarding redering data in html templates

2020-05-27 Thread Ifeanyi Chielo
at the html file of your template folder, use something like {{table1.skin_care1}} {{table1.skin_care2}} etc note skin_care1, skin_care etc are fields in your model table 'table1' Dr. Chielo C. Ifeanyi Chief Programmer, Head Webometrics Section ICT Unit, UNN 08032366433, 08154804230

Issue with CRUD Operation

2020-05-24 Thread Ifeanyi Chielo
*Exception Type:* DoesNotExist *Exception Value:* Soapprod matching query does not exist. *Exception Location:* C:\Users\IFEANYI CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\db\models\query.py in get, line 399 *Python Executable:* C:\Users\IFEANYI CHIELO\AppData\Local\

Re: Tablespace is missing for a table from storage engine InnoDB

2020-05-17 Thread Ifeanyi Chielo
i Ifeanyi, > > On 17/05/2020 13.35, Ifeanyi Chielo wrote: > > Dear all > > I am unable to access my phpmyadmin tables either via django or > > directtly, I always meet this error. " #1030 - Got error 194 "Tablespace > > is missing for a table" from st

Tablespace is missing for a table from storage engine InnoDB

2020-05-17 Thread Ifeanyi Chielo
Dear all I am unable to access my phpmyadmin tables either via django or directtly, I always meet this error. " #1030 - Got error 194 "Tablespace is missing for a table" from storage engine InnoDB" Please I need your assistance -- You received this message because you are subscribed to the

Re: django doughts

2020-04-14 Thread Ifeanyi Chielo
it is like apps urls.py file is missing, you need to include your entire code for easier assistance On Sunday, April 12, 2020 at 1:37:24 PM UTC+1, rama prakash y wrote: > > Hi can u plz tell me how can solve the pollsapp development in django > project. I had complete my pollsapp development

Re: Looking for Django developers to work on a new and an existing project with our team

2020-04-07 Thread Ifeanyi Chielo
I am interested but I need to gather more experiences before joining such teams, I am new in django though not new in app development Dr. Chielo C. Ifeanyi Chief Programmer, Head Webometrics Section ICT Unit, UNN 08032366433, 08154804230 ifeanyi.chi...@unn.edu.ng

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 Ifeanyi Chielo
: http://localhost:8000/namev/ Django Version: 2.1.5 Exception Type: AttributeError Exception Value: 'NameForm' object has no attribute 'save' Exception Location: C:\Users\IFEANYI CHIELO\divinecrownapp\pages\views.py in Namev_view, line 17 Python Executable: C:\Users\IFEANYI CHIELO\AppData\Local

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
is a community of django developers > > Excellence for all.... > > On Sun, Apr 5, 2020, 3:22 PM Ifeanyi Chielo > wrote: > >> I tried using the form. save() but it gave the same error message as >> with NameForm.save() >> Dr. Chielo C. Ifeanyi >> Chief Progra

Re: Working with forms

2020-04-05 Thread Ifeanyi Chielo
On Sun, Apr 5, 2020 at 3:06 PM KONE GOMPOU LOUA ALASSANE < gompou.k...@uvci.edu.ci> wrote: > 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

Re: Working with forms

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

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
/ Django Version: 2.1.5 Exception Type: ValueError Exception Value: The view pages.views.Namev_view didn't return an HttpResponse object. It returned None instead. Exception Location: C:\Users\IFEANYI CHIELO\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
ASSANE < gompou.k...@uvci.edu.ci> wrote: > Send screen short > > Le sam. 4 avr. 2020 à 11:33, Ifeanyi Chielo a > écrit : > >> Thanks a lot, >> I did as you said and I encountered the error message below: >> UnboundLocalError at /namev/ >> >> local v

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
variable 'form' referenced before assignment Exception Location: C:\Users\IFEANYI CHIELO\divinecrownapp\pages\views.py in Namev_view, line 42 Python Executable: C:\Users\IFEANYI CHIELO\AppData\Local\Programs\Python\Python37\python.exe Python Version: 3.7.2 Python Path: ['C:\\Users\\IFEANYI CHIELO

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
ner de Villiers < bruckner.devilli...@gmail.com> wrote: > Please share code for home.html & urls.py. Also have you included the app > name in the settings.py? > > Thanks, > > > > Bruckner de Villiers > > 083 625 1086 > > > > *From: * on behalf

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
> > Thanks, > > > > Bruckner de Villiers > > 083 625 1086 > > > > *From: * on behalf of Ifeanyi Chielo < > ifeanyi.chi...@unn.edu.ng> > *Reply to: * > *Date: *Saturday, 04 April 2020 at 02:51 > *To: *Django users > *Subject: *Re: Working with fo

Re: Working with forms

2020-04-03 Thread Ifeanyi Chielo
Thanks Victor, I did it and it does not make any cnange On Saturday, April 4, 2020 at 1:41:19 AM UTC+1, victor awakan wrote: > > In the form template tag, shouldn’t it be {{ form.as_p}} tag? > > On Sat 4. Apr 2020 at 3.35, Ifeanyi Chielo > wrote: > >> Hello,I develo

Working with forms

2020-04-03 Thread Ifeanyi Chielo
Hello,I developed a form with a single field, but this form displays only the submit button at the browser as shown in the image below. Please how can I correct this and also save the field to the MySQL table. My code is also shown below [image: django form.png] View.py from django.http

Inability to Connect django with MySQL database

2020-03-20 Thread Ifeanyi Chielo
Hello, I am new to Python django, I have been making efforts to connect a django application to mysql without success. Bellow is the information that I got PS C:\Users\IFEANYI CHIELO\divine> python manage.py migrate Traceback (most recent call last): File "C:\Users\IFEANYI CHIELO