Xavier
No
then u need to know what's testing is and if u want django to be your first experience in testing then i suggest you follow poll app series in django
Xavier
go ahead will take only 2 hrs to read up whole
Alex
beautiful
One of a few books I have read about django and would recommend to other.
Xavier
One of a few books I have read about django and would recommend to other.
ye it's in my booklist, will buy the hard copy when this lockdown comes to an halt ;)
Mirco
Nope :p
🤣 imvho
Xavier
XDDD
Alex
🤣 imvho
this is the best: "Test Driven Development: By Example" by Kent Beck
Alex
Thanks for sharing it 🙂
removed the link so it would've looked like advertising
Anonymous
def base(request): if request.method == "POST": name = request.POST.get('name') email = request.POST.get('email') phone = request.POST.get('phone') return render(request, "base.html")
Anonymous
Unused variable 'name'
Anonymous
Unused variable 'email'
Anonymous
Unused variable phone'
Xavier
ignore it
Anonymous
how can i fix this
Anonymous
i tried lots, but unable to fix this.
Xavier
how can i fix this
use them print(name, email,phone)
Xavier
use them print(name, email,phone)
add this before return statement
Xavier
that error warning will go away
Anonymous
below is my models.py of app
Anonymous
from django.db import models # Create your models here. class Contact(models.Model): name = models.CharField(max_length=122) email = models.CharField(max_length=122) phone = models.CharField(max_length=12) date = models.DateField("")
Anonymous
can you please write a code for me.
Alex
code
Anonymous
very funny alex
Castiel
The is code is not working even though I linked it to the template what to do
Castiel
Js *
Castiel
I've loaded static
Anonymous
still not working xavier
Castiel
What to do
Mark
SQL Query to Django Query https://stackoverflow.com/q/62405313/12600024
Mark
Anonymous
Anyone with a working POS made in django and Nuxt.js
Castiel
I did collectstatic also but still not working
Xavier
I did collectstatic also but still not working
for now debug = True in settings.py
Doragonsureiyā
Anyone with a working POS made in django and Nuxt.js
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Luciano
Hello!!!! Anybody knows how to dynamically add or remove inline formsets like in admin?(but in the view) I've been searching around with no simple solution. Thanks in advance!!!
Anonymous
I am getting an error i.e. smtp authentication
Anonymous
there is no such error while running the site on local host,but since I have hosted my site
Anonymous
I am receiving an error
Anonymous
help!
Luciano
you can choice a formset to deal with depending on condition statment like if A: AFormSet elif B: BFormSet
Hi Alex! Yes, but I meant on client side, using javascript to add or remove inline formsets dynamically
Xavier
yes there is a limit input field
it can be altered to Change the number of formset
Xavier
it's really messy but it works if u can figure it out
Luciano
it's really messy but it works if u can figure it out
Yes, I was searching for a known solution but it seems that there's nothing besides making your own javascript to deal with your html design in order to add or remove formsets on client side
Luciano
Thanks @Chair_dad
snc
any way to use list as model field in django models
Xavier
yes but only postgres exclusive
Xavier
there is also dictionary field in django
Xavier
any way to use list as model field in django models
https://docs.djangoproject.com/en/3.0/ref/contrib/postgres/fields/
Udasi
any way to use list as model field in django models
you can also your relations- foreign key and stuff
Kunal
Hi Everyone, Looking for some HELP! DJANGO - DROPBOX (Lib: storages) Have configured API key properly, however getting error SuspiciousFileOperation. It would be great if anyone of you can help
Anonymous
Xavier
I am getting an error i.e. smtp authentication
https://stackoverflow.com/questions/26697565/django-smtpauthenticationerror
Anonymous
i hv seen this
Anonymous
but still the error
Xavier
but still the error
did you enable less secure access on your mail account?
Anonymous
Is there anyone who wants to learn about cookie, session, Cookie Stealing etc?
Anonymous
I want import database from local to lunix database server 😬