William
William
!paste
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Devang_12
Hunde
How can i add link to django admin page that redirect to one of my template?
Devang_12
Devang_12
Devang_12
Chentha
Hi dears,
Have anyone know how we can save a data after session lost
Devang_12
Devang_12
Prabhakaran
How to set default selected value in a drop-down ? - I am using model form..
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
William
Luxmi
template https://dpaste.org/DnOd
Luxmi
urls https://dpaste.org/okRe
Devang_12
Devang_12
I had to add on_delete coz it was giving me error
Luxmi
views https://www.toptal.com/developers/hastebin/okoyobewey.rb
Luxmi
error https://www.toptal.com/developers/hastebin/aludofitum.apache
Luxmi
i am trying to make a wishlist using ajax tell me if i am wrong or alternative
Rahkmanuly
Hello there!
Are there any ideas how can I speed up my POST view method?
The problem is that I make 3 different calls to 3 different resources in my API.
Devang_12
Minh
Devang_12
models.CASCADE
that's for 'on_delete' right , I am asking for 'default = '
Minh
Devang_12
Now I am getting this error while doing migrtions ' django.db.utils.IntegrityError: NOT NULL constraint failed: new__sgrc_studentgriev.user_id ' 🥲🥲
eric
Pls can I get help on how to set up and build a simple app in Django using Virtual studio code. Thank you
Sai
Serge
@eric kermeh it's very simple, check in Google Vscode extension to be used as well.
Devang_12
T
Free Django course link plz
Doragonsureiyā
Free Django course link plz
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Sloth
I want to associate a unique id to every api request that hits my django app how can this be done any suggestions? This app is hosted in uwsgi and nginx as a load balancer
назар
Hi to everyone, i have this queryset:
orders = Order.objects
.annotate(day=TruncDay('date'))
.values('day')
.annotate(sum=Sum('amount'))
.values('day', 'sum')
.annotate(customs=Count('customer__name'))
.values('day', 'sum', 'customs')
How can i get the name of customs, not the count of it?
Devang_12
Doragonsureiyā
Does anyone know how to solve this error ⁉️😢
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
William
sarth
hi friends i want to send email to perticular time range, or perticular task in perticular time, so how to.do this with rest framework, please help
назар
Adhil latheef
MeHDI_rh ∞
Hi
let's say I have two models:
class ExchangeRates(models.Model):
...
class Currency(models.Model):
ex_rates = models.ManyToManyField(to=ExchangeRates)
a Currency can have multiple ExchangeRates, but each ExchangeRates can only be assigned to one Currency.
So what should I use instead of ManyToManyField ?
as ManyToManyField means a Currency can have multiple ExchangeRates and an ExchangeRates can have multiple Currency !
Mirco
MeHDI_rh ∞
Foreignkey ?
this way Currency can have only one ExchangeRates
MeHDI_rh ∞
yes. seems this way it works
MeHDI_rh ∞
thank you
Doragonsureiyā
thank you
You're welcome! 😊
Kishore
What is the difference between self.request.data vs self.initial_data
Kishore
Can anyone explain with simple example pls
Ahmad
Can anyone teach me python online
Doragonsureiyā
Can anyone teach me python online
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
इमरान عمران Imran
Hi, how to import SQL file in django project
Charly
Charly
Hunde
How can i add header and footer in django export
इमरान عمران Imran
Vivek
Apart from web3.py, is there any other way to make a django application interact with a smart contract? Like suppose if I am using brownie Framework to deploy and interact with my smart contract can it be integrated into my django app?
Hunde
less = PredictionResult.objects.filter(PatientInformation.firstName=="dinka").count()
Hunde
PredictionResult and PatientInformation have one to many relationship ,I couldn't filter what is wrong with it?
ﹺ ﹺ
I built an app with Quasar using Django backend it works fine on the web, and the apk communicates well with Django Rest Framework, until I login, once I'm logged in, the app freezes until I force close it, then it logs me out.
I need help....
Dasa
I have a json data with over a dozen fields. And I need to save all those fields to a model in a single .save() instead of model.field = json_field. Is it possible in Django ?
No
Hello everyone. Can you please tell me how to properly store and work with monetary transactions in the database?
How do I recalculate my wallet balance?