Deleted
Guys, pls help, what sign do I use for separating multiple parameters when passing string to url? I tried both "," and "|" all failed: {% url 'bms:View_by_Course_list' course_for_select=course_for_select, discipline_code=discipline_code}
Molecule
Someone told me that create template directory Inside your project directy and inside that create another d
Directory name same as project name and placed inside it
cart -> templates -> cart -> index.html
Is this correct?
HEISENBERG
Anonymous
https://stackoverflow.com/questions/67835937/e-preventdefault-could-not-stop-sweet-alert-from-disappearing-in-less-than-1s: django send msg to frontend got error, the msg received in ajax from django backend always the previous one, but I want the real time one: code is in stackoverflow, different question , same code
Zaid
Rahul Vaid
hii everyone I am new to Django and I am stuck at something from last 2 days.
I have a model named user with fields like firstname , lastname , username , email ,password, account_created , etc fields
and i am getting data from api- rest framework
I am getting json data from postman.
I want to know how to check if the json data value is empty or not
Ray of Hope
Use if condition like this
s = Userseriallizer(data=request.data)
If (s.is_valid()):
s.save()
Ray of Hope
Tarun
Can anyone explain what is this "Integration of user-facing elements developed by a front-end developers with server side logic." ???
Anonymous
Have someone used braintreepayments?
sheikh
How to create another socket in django channel connect method?
Groot
Anyone used pyttsx3 in django?
Groot
How can i play text of object in template?
Michael the wolf 🐺
Hi guys , in general in django , using backref chainings in template slows down website ? like {{table1.table2.column name }} and the models file have backref attribute to other tables.
Michael the wolf 🐺
I have a webapp , the view loads very fast , but in templates we have so many of these backref chainings and i think its slowing down the website a lot
mansour
I have a Jason file. How can I call it in the url? By djangorest
Alexander
Alexander
from django.http import JsonResponse
return JsonResponse({'foo':'bar'})
for more info, search JsonResponse in google
Mahdi
Alexander
Alexander
Thara
Anonymous
Can we host a static website via github
Anonymous
?
Luis
Anonymous
I pushed my django project in the repository ,and after saving in github pages ,it was published but not showing any data *404 not found* ..Did I miss anything?
Rinta
Anyone know pythonanywhere?
Anonymous
Did anyone create a video chat application in django?
Mahdi
Yeah
Then you should check how to use URLs
and how django make them!
rohittt
When I used the command " Python populate_rango.py" Where populate_tango.py is my population script file in main project. Iam getting no module name error............
rohittt
If.. Anyone know please help
William
Check the module is installed or not
rohittt
While defining my environment variable..... Os. Default......
rohittt
It's say the name of the file is not defined
Shahar
Django and DataTables
I have some Datatables built-in element, and I want to append to it a form POST which contains some inputs.
So I'm appending this element via Jquery.
My problem is, csrf token must be added to this form, and in Django it is done with {% csrf_token %}. But when I'm adding it with the Jquery, it is added as plaintext, and is not identified by Django's templating engine.
Does someone know how to overcome this issue?
Dev
Anonymous
Hi, Friends
while deploying my django website on heroku I got an error :
2021-06-05T10:24:32.601689+00:00 app[web.1]:
****
AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
I have multiple config file in the settings
****
In settings/prod.py I have configured ROOT_URLCONF
***
ROOT_URLCONF = 'revassets.urls'
***
Plz help to solve the issue.
Michael the wolf 🐺
Michael the wolf 🐺
foscraft
Has anybody here used writable nested serializers?
🦄
Hello everyone. How do I get my function to run when the site starts (python manage.py runserver) when I start the site?
Anonymous
🦄
Javascript.
you need the script to be executed even if the site was not opened
Kr0pt
Hi guys, how i attach obtain_token_view (auth drf view) in a default router? Thanks
tushar
hello every one , i want code of editable tabel in django for inline edit/update
Rinta
Any django, python intrvw qstns and answers?
Moe (محمد)
Hi, im using django-import-export im but having an error and i’m not sure how to print the error back from the View, can anyone help me?
Adnan
Adnan
Anonymous
I have 2 tabel
User
( UID, name ,lname , address)
Service (SID ,UID , service_name, service_time)
In service tabel we have foreign key which is pointing to user tabel uid
So I want to write this below query in django
Select *
From user , Service
Where user.uid = service.uid
Isko django me likh na he
Anonymous
How to write in django
Moe (محمد)
Does any1 knows how to handle foreignkeys with django-import-export
q w e r t y
Hii...
I'm working on a django a project and I have to send an audio file from my server to javascript...
How can I do that as response to a fetch call?
rohittt
When I used the command " Python populate_rango.py" Where populate_tango.py is my population script file in main project. Iam getting no module name error............
Raj
I made a simple Django app deployment on GCS GAE. I used docker and gunicorn. How I to update the deployment with my updated app ? It would be helpful if you please share any documentation or any materials as the GAE docs on this topic is quite confusing.
tushar
Jaime
Hello devs .. I am in my thesis and I am doing a school system. What happens is that they tell me to apply ISO standards but I don't know which one I should apply. Some say 27001 but I'm not sure. Someone some experience.
Bharathwajan
https://stackoverflow.com/questions/67817683/gunicorn-daemon-failed-to-start-error-in-digital-ocean-server
Bharathwajan
Bharathwajan
Krishna
Can someone please suggest a better way to learn django along with heroku deployment
Owolabi
Hello guys, I'm having this error -> encoding with 'idna' codec failed (UnicodeError: label too long) when ever I'm sending email from my Django app on digitalocean please help me out. Thank you.
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Anonymous
Hello
Anonymous
how are you today?
Anonymous
what can I do for you?
Anonymous
I am django expert.
Fady samy
How can I make the api receive token
🐼🖤
hi guys
I have some questions
there is on_delete argument models in django.
and there is cascade, set_null and another in on_delete.
my question is what is the mean cascade, set_null,.....
Rinta
I have ecommerce project .When i hosting in pythonanywhere my product not displayed in homepage.pls help
Anonymous
Rinta
Anonymous
Anonymous
Free
Can u tell other free web hosting site?