Charly
ok :))
So are you going to ask your real question or not?
Parshad
I need a help for how integration push notification with firebase in DRF ? Tag me in the answer..
Charly
I need a help for how integration push notification with firebase in DRF ? Tag me in the answer..
What you have found on google? what have you tried where are you stuck?
Parshad
I have tried fcm_django as well as push notifications but can't work may be i have forgotten some process in integration... :(
Parshad
I have tried fcm_django as well as push notifications but can't work may be i have forgotten some process in integration... :(
https://medium.com/scalereal/push-notifications-through-django-db528c303b91 Tried this blog
Parshad
Notification failure
Charly
Notification failure
You need to be way more specific if you want any kind of help
Samuell
Yes
good morning, how do i do this?
Parshad
You need to be way more specific if you want any kind of help
When i tried to test notification from postman Its return failure to send notification
Meme
good morning, how do i do this?
https://docs.djangoproject.com/en/4.1/topics/db/queries/#copying-model-instances
Sasha
Hi there, fellows. I am having issues with Simple JWT with my django project. It works fine and sends me tokens when I am doing request through local host, but when I am doing same request on deployed project it doesn't work, after a minute of wait it throws 503 error. Any ideas on how to solve it? Thanks.
Sasha
read logs and error code
It says "Worker timeout"
Doragonsureiyā
It says "Worker timeout"
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Alexey
hello. i want typing var "model" in function, what i have to use? https://linkode.org/#V2KCJYydvhYD36MRFXTrx6 tried from django.db.models import Model, but it dont work
Ravikumar
Hii everyone iam getting this errror in my code Direct assignment to the forward side of a many-to-many set is prohibited. Use tags.set() instead
Alexey
class Laptop_History, but u want to use LaptopHistory. easy
Ravikumar
Direct assignment to the forward side of a many-to-many set is prohibited. Use tags.set() instead
Ravikumar
i want to copy many-to-many feild from Laptop model to same data into LaptopHistory
Alexey
obj = LaptopHistory.objects.create( brand = instance.brand, model = instance.model, SerialNo = instance.SerialNo, AdapterSerialNo =instance.AdapterSerialNo, status = instance.status, ) obj.tags.set(instance.tags)
Anonymous
Hello How to make a self post visible only to self with django
Arslan
Hello everyone, I need your help, tell me if it is possible to use UpdateView without a template? I can't find an answer anywhere.
Игорь
Hello everyone, I need your help, tell me if it is possible to use UpdateView without a template? I can't find an answer anywhere.
Yes, it is possible to use UpdateView without a template. Instead of using a template, you can override the get_form_kwargs() and get_success_url() methods to provide the necessary parameters for the view. The UpdateView class also provides an update() method which can be overridden to handle the form submission and update the model instance.
Kritesh
Can some one please tell me how to make phone and otp setup and generate token of that
Doragonsureiyā
Can some one please tell me how to make phone and otp setup and generate token of that
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
Tim
Hello evertyone
Tim
can anyone tell me, what am I doing wrong?
Anonymous
can anyone tell me, what am I doing wrong?
You're doing everything wrong by not explaining your problem
Игорь
Guys, hello, i have a question, why i dont have core.socket in my project after running mine django site ?
Tim
You're doing everything wrong by not explaining your problem
I tried to add a screenshot, but it is impossible in thi group ((
Doragonsureiyā
I tried to add a screenshot, but it is impossible in thi group ((
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Maxim
Ya i did but didn't found exactly what I want 2
no one promised you any ready-made solutions you can get ideas
Tim
I just need a detailed guide - of how to deploy django project on Ubuntu server
Tim
From scratch
Anonymous
I just need a detailed guide - of how to deploy django project on Ubuntu server
Search Google Django has a documentation on that and there are other helpful resources on that
Anonymous
Is it possible to create one and attach another Foreignkey to ManyToManyField?
Anonymous
What do you exactly mean? Show an example
mainservice = models.ForeignKey( Mainservices, related_name="main_ser", on_delete=models.CASCADE ) allcounts = models.ForeignKey( Mainservices, related_name="allcounts", on_delete=models.CASCADE )
Anonymous
class Mainservices(models.Model): title = models.CharField(max_length=150) slug = models.SlugField() created_date=models.DateField(auto_now_add=True) def str (self) -> str: return self.title, self.slug def save(self, *args, **kwargs): self.slug = slugify(self.title) super().save(*args, **kwargs)
Anonymous
Why don't you try it?
returned an error about ID
Charly
returned an error about ID
Show the error then
Anonymous
def str (self) -> str: return '{}{}'.format( self.title, self.slug)
Charly
didn't work
Show the error
Anonymous
Show the error
OperationalError at /admin/emd/addtable/ no such column: addtable.allcounts_id
Anonymous
Charly
I did migrations
And applied them?
Charly
No
Then of course it won't work
Hernan
I did migrations
do: python manage.py makemigrations Python manage.py migrate
Edgar
how many you exclude some items in a many to many field of an object from showing when the object is queried django and return only the object with the non excluded items in it's many to many field
Anonymous
I want to create m2md in service array and attach one more input to it. then no matter how many services I create, it should give me that input with its ID through m2m
Abai
While integrating paypal to django a blank popup appear it's not redirected to the paypal network.it shows as popup blocked.Anyome faced the issue.please share if anyone knows how to solve it.
Nityananda
How to store jaon data in sqlite server??
Charly
How to store jaon data in sqlite server??
There is no sqlite server And if its a django project just use fixtures
Nityananda
No I maen i have data in json format and i have to use it in my django project,then how can I store the data in database?
alasermohamad94
My laptop system has been updated and django server doesn't work
alasermohamad94
Now is win11
alasermohamad94
Mu project is didn't work need help pls
Charly
My laptop system has been updated and django server doesn't work
you need to be really specific on why doesnt work
alasermohamad94
Need to send error img
alasermohamad94
It seems lib names changed
alasermohamad94
I have deleted ven and reinstall nothing changed
Charly
Ivanko ✙
Hello, I created a login form, authorization, but only the superuser can log in, and other users cannot, although they are active, what could be the error, what did I miss?
cj
https://linkode.org/#KyggNGflzeaGWKSThvWgb6
have you tried using LoginView instead? Looks like your code does nothing else besides the default LoginView behavior, try that and check if you're still not able to log users, just to discard things https://docs.djangoproject.com/en/4.1/topics/auth/default/#django.contrib.auth.views.LoginView
Amine
Any one know how to receive postbacks on django rest_framework?