Re: simple Rest_framework cannot import name in api view

2020-04-04 Thread Suraj Thapa FC
List go through the emails On Sat, 4 Apr, 2020, 10:03 pm Suneetha Machineni, < suneetha.machin...@gmail.com> wrote: > Even am also facing same issue what MEganathan posted. > can anyone help me thanks in advance > > On Wednesday, November 13, 2019 at 11:47:18 AM UTC+5:30, MEGA NATHAN wrote: >> >

Re: simple Rest_framework cannot import name in api view

2020-04-04 Thread Suneetha Machineni
Even am also facing same issue what MEganathan posted. can anyone help me thanks in advance On Wednesday, November 13, 2019 at 11:47:18 AM UTC+5:30, MEGA NATHAN wrote: > > yeah bro > > > > > > *Regards* > Meganathan G > > > > On Wed, Nov 13, 2019 at 10:15 AM Suraj Thapa FC > wrote: > >> It shou

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
Thanks a lot, I believe I am close to the result. I did exactly what you instructed and another error appeared thus: ValueError at /namev/ The view pages.views.Namev_view didn't return an HttpResponse object. It returned None instead. Request Method: GET Request URL: http://localhost:8000/namev/

Re: Working with forms

2020-04-04 Thread Luqman Shofuleji
Okay, now the new error is that is not seeing that 'form' for the get request, you need to also add form = NameForm () before the if statement "if request.method == 'POST' " to handle the page get request. On Sat, Apr 4, 2020, 12:33 PM Ifeanyi Chielo wrote: > Thanks a lot, > I did as you said

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
Screen shorts of codes available above 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 Sat, Apr 4, 2020 at 12:35 PM KONE GOMPOU LOUA ALASSANE <

Re: Working with forms

2020-04-04 Thread KONE GOMPOU LOUA ALASSANE
But i thing that this problem is due to bad indentation Le sam. 4 avr. 2020 à 11:34, KONE GOMPOU LOUA ALASSANE < gompou.k...@uvci.edu.ci> a écrit : > 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

Re: Working with forms

2020-04-04 Thread KONE GOMPOU LOUA ALASSANE
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 variable 'form' referenced before assignment > > Request Method: GET > Request URL: http://localhost:800

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
Thanks a lot, I did as you said and I encountered the error message below: UnboundLocalError at /namev/ local variable 'form' referenced before assignment Request Method: GET Request URL: http://localhost:8000/namev/ Django Version: 2.1.5 Exception Type: UnboundLocalError Exception Value: local

Re: image not showing on page

2020-04-04 Thread John McClain
Hello Andreas, You are correct that was definitely the problem. Thanks for spotting it. Cheers, John On Fri, 3 Apr 2020 at 15:41, Andréas Kühne wrote: > What I stated earlier is probably your issue: > > You have the following: > style="background-image: img src="{% static 'images/image_name.p

Re: Working with forms

2020-04-04 Thread Luqman Shofuleji
In def Namev_view under views.py, include form in the return parameter and see if that resolves the issue return render(request, 'namev.html', {'form':form}) On Sat, Apr 4, 2020, 1:35 AM Ifeanyi Chielo wrote: > Hello,I developed a form with a single field, but this form displays only > the su

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
Yes the app name is already included in the settings.py 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 Sat, Apr 4, 2020 at 6:35 AM Bruckner de

Re: Working with forms

2020-04-04 Thread Ifeanyi Chielo
Hello, Here are the codes: View from django.http import HttpResponseRedirect from django.shortcuts import render from .models import Namerec from .forms import NameForm from django.views.generic import TemplateView def HomePageView (request, *args, **kwargs): return render(request,"h