Sarthak
😭
Sarthak
dpaste.org/B7P4
krishna
Hii. Is there any way to call a function only once when you start the project?? Need help...
Sarthak
dpaste.org/CZxA
Sarthak
file containing error
Sarthak
tried is None too
Mirco
why don't use a simple post save signals like everyone does to create profiles ?
Sarthak
i am reading about signals now .. and first time
Sarthak
I can tell you about my project😊
Anonymous
Anyone have done iot with django project? Can someone please share me github link of it..
Abhiram
How to send error messages from feilds Django rest framework to front end
saran
How to send error messages from feilds Django rest framework to front end
It automatically handles i think. Based on fields which you given.
Abhiram
It automatically handles i think. Based on fields which you given.
I created an registration form but it also recives eorrs but the feild errors like password should be more than 6 charectors are not passing to front end
Anonymous
Hi guys.. I am using {℅if request. user == user℅} it means it should give me data of the current user. But I am getting data of all users. Can anyone tell me what should I do.?
Eric
Hi guys.. I am using {℅if request. user == user℅} it means it should give me data of the current user. But I am getting data of all users. Can anyone tell me what should I do.?
The conditional on your template tag is probably not the problem. What is the code within that conditional?? i.e. what is between {% if %} and {% endif %}?
Anonymous
please help me
Anonymous
OperationalError at /admin/products/category/add/ no such table: main.auth_user__old Request Method: POST Request URL: http://127.0.0.1:8000/admin/products/category/add/ Django Version: 2.0.7 Exception Type: OperationalError Exception Value: no such table: main.auth_user__old
Anonymous
did you run a makemigrations and migrate?
ran already also tried to change several django versions
PK
I'm new to Django...plz tell me or provide materials so that I can build websites using django
Anonymous
are you sure about the spelling?
yes all migrations are applied
Muflone
yes all migrations are applied
Read above, it's a bug with Django 2.0/2.1 + sqlite
Anonymous
Tldr : you can delete your db Long version: were you using Django 2.0/2.1 with sqlite?
i tried deleting and created new already still problem not resolved
Code
yes all migrations are applied
then, what is 'auth_user__old'? i see a double underscore. is that intentional?
Code
Upgrade to 2.2 or 3 And delete your db
are you using sqlite in production?
Anonymous
Anonymous
Code
np
Muhammed Enes
Hello, I get this error if I write css while generating pdf with django: int () argument must be a string, a bytes-like object or a number, not 'tuple' It works as I want if I don't write css. How can I solve this problem
Doragonsureiyā
Hello, I get this error if I write css while generating pdf with django: int () argument must be a string, a bytes-like object or a number, not 'tuple' It works as I want if I don't write css. How can I solve this problem
To share code or error tracebacks please 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
Anonymous
hey guys, how to get direct access to model method or variable from tamplate?
Wang
https://linkode.org/#IIK6WKqPxKkEphG5i3GPX4 codes are here 😅 thanks admin
html = template.render(context_dict) why did not the view function have request arg ? template.render need requests arg too
Anonymous
are there other options to do that?
Anonymous
template tag
Wang
template tag
why did not you choice it ?
Anonymous
thaks
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
hey guys, how to get direct access to model method or variable from tamplate?
Want to use local variable with with tag in template
Luis
dpaste.org/CZxA
Answer to original question (I think): .filter(fk_field1__isnull=True) The error is very precise: NoneType has not attribute exists Who is trying to use an attribute exists? Well, that 'entity' is None, then, have not attribute exists. Recommendation: read more about Querysets, you need it.
Romila
What approach one should follow to become perfect in django ?
Romila
Study approach should be like?? I mean what steps to be followed
Mirco
And code as much as u can
Romila
Yes sure. What to do when somebody is putting you on Aws, Encryption like things when you know the basic django
📱 𝐿𝒶𝓈𝑒𝓇𝑔𝒶𝓂𝑒𝓇
SNIR
form = DaysForm(instance=obj) how to get the values in the fields ? form.fields['name'].value() ?
sebastian
https://stackoverflow.com/questions/61593514/jsondecodeerror-expecting-value-line-1-column-1-char-0 your invaluable help is appreciated
Anonymous
hello everyone
Anonymous
please
Anonymous
help me
Anonymous
TypeError: __init__() got an unexpected keyword argument 'geom_type'
Anonymous
i think no
Doragonsureiyā
TypeError: __init__() got an unexpected keyword argument 'geom_type'
To share code or error tracebacks please 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
Anonymous
https://del.dog/ystiphingy
Doragonsureiyā
To share code or error tracebacks please 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
SNIR
best host for django? i need Backups,Restore Options. dont care to pay
George
Why didn't i know this (Pdb) pp request.data {'images[]': <InMemoryUploadedFile: 2020-04-02-013158.jpg (image/jpeg)>, 'inspection': '1'} (Pdb) pp request.data.get request.data.get request.data.getlist (Pdb) pp request.data.getlist('images[]') [<InMemoryUploadedFile: 2020-04-02-013257.jpg (image/jpeg)>, <InMemoryUploadedFile: 2020-04-02-013244.jpg (image/jpeg)>, <InMemoryUploadedFile: 2020-04-02-013158.jpg (image/jpeg)>]
George
Why isn't this function referenced anywhere
Yusuf
Hello developers
Yusuf
I need your advice
Yusuf
Pls help me
Anonymous
Hello developers
Hello world
Yusuf
I want to learn Python
Yusuf
But I am absolutely beginner
Yusuf
How I can start
Anonymous
How I can start
Always YouTube And check the pin message
Anonymous
Any channels?
Search django tutorial Click on first one