Nice
Ok
M
Please use pastebin or something to put Ur code
M
Is complicate follow the code here
Ononiwu Maureen
Please what is pastebin, a utility
Ononiwu Maureen
? Can I get the link?
Doragonsureiyā
Please what is pastebin, a utility
To share code or error tracebacks, be considerate and use an online pasting service - here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you post a wall of text (many lines), delete it or you can get a warn strike.
M
Please what is pastebin, a utility
A web share code or screenshot
M
https://www.google.com/amp/s/www.designbombs.com/code-sharing-websites/
Mirco
A web share code or screenshot
No screenshots allowed 🙂
Ononiwu Maureen
Thanks a lot
Ononiwu Maureen
https://dpaste.org/aCDz
M
No screenshots allowed 🙂
True, but u can write ur code, then make a screenshot and send us here, well u can do that to ur code editor too lol
Ononiwu Maureen
Here thank you guys
Mirco
True, but u can write ur code, then make a screenshot and send us here, well u can do that to ur code editor too lol
Copy and paste to pastebin is much more effective as a result to get a better help And copy and paste is the best trick a developer learns since the beginning 😀
It's me
please check im getting error: https://del.dog/error00
M
The error is when u send the form ?
M
I don't see the register_form import, try to import register_form from your model at the top of the view
M
And please rename the var of the assignment, I mean rg= registet_form(xxx) cuz u are overriding the model instance
M
Ok
Agent Q
https://dpaste.org/aCDz
You're not passing any email into validate_email(). Add a parameter to pass email into that function, to check email.
It's me
Ok
https://del.dog/viwes000
Agent Q
https://del.dog/viwes000
I think its safer to rename your variables in line 15 and 16 from register_form to something else. Maybe register_form_data so its clearer.
M
https://del.dog/viwes000
If the error is when u send the form, rename the ur variable register_form to rg and then rg.save()
It's me
If the error is when u send the form, rename the ur variable register_form to rg and then rg.save()
now it start showing django.db.utils.IntegrityError: NOT NULL constraint failed: store_register_form.date
Patience
How to resolve..Template doesn't found ??
Make sure you specify exact location and name.
Nice
init takes one argument two given How to solve this in django
M
now it start showing django.db.utils.IntegrityError: NOT NULL constraint failed: store_register_form.date
make sure that u are passing all variables to the form, This error usually means that a field that is required was not provided
Ononiwu Maureen
@agentq88 I wrote the function. It does not require argument
Agent Q
@agentq88 I wrote the function. It does not require argument
I'm saying it needs an agument to validate the email
M
init takes one argument two given How to solve this in django
cuz ur are passing two arguments and the init is expecting just one, example def init__(self,a) and u do someting like ex = A(1,2) the __init of class A is expecting one argument and u are passing twoo
Agent Q
def validate_email(email):
Agent Q
Ononiwu Maureen
Thanks I was so engrossed with the email stage, I forgot password was throwing the same error
SID
https://www.jetbrains.com/pycharm/promo/support-django/ #2021 #support
SID
we've already pinned it
😓Sorry, somehow I missed the message.
ogassi
Guys , have u tried to add to Datetimefield with serialiser with json request? (Out of js) can’t validate good data for that field Please, help somebody
~~~
how to show calender in django datefield form?
âshîsh
Models.Datefield()
~~~
Models.Datefield()
it doesnt show calender in form
~~~
user need to manually add date...i need a calender when click on the input
âshîsh
Then use <input type='date'>
âshîsh
In your html file
Anonymous
How can I use real time data in my django project?
~~~
Then use <input type='date'>
how to link the start_date and end_date?
âshîsh
how to link the start_date and end_date?
Using forms.py Gather your model data into forms and display forms in html file
Sumit
Hi, I want to use graphene-elastic, can someone help me in that. I am not able to get its document very well.
Yusuf
How to make multiple form in one views?
Naresh
{"setup_from":setup.pk} Here setup is the table name How I pass the setup.pk value?
Roman
Hi all!
M
How to make multiple form in one views?
return render(request, 'name.html', {'forms': [form1,form2,form3]}) then on the template u can iterate over the var forms
Anonymous
Anonymous
Thankyou
Anonymous
Does anyone know ,a website for free APIs???
saran
How to return list of foreign key objects with out using loop in ORM. I tried select_related
Tagir
ImageFile (), when creating an object, adds to the path to the file /media, this leads to the Not Found error: /media/media/images/gnom.png How to fix it?
noneofurfuckinbusiness
Does anyone know ,a website for free APIs???
https://github.com/public-apis/public-apis
Enigma
Anyone knows how to get user machin id?
Sumit
Anyone knows how to get user machin id?
You wants to do device verification?
Enigma
You wants to do device verification?
i want to check that the user can use his accuont only by the first systm he registerd by
Enigma
Correct typos
Sorry😂😂
Tagir
MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
noneofurfuckinbusiness
Agent Q
Tagir
No, the name property when u created Image file()
path = fr'media/{img_obj.image.name}'[:-4] + '_qrcode.png' with open(path, 'w') as f: img_obj.image = ImageFile(f)
Tagir
path to image /media/images/