Shilpy
Hi guys, I'm using rest-auth login API and when I'm making a post request it's is throwing an error "non_field_errors: Unable to log in with provided credentials" And I'm providing correct credentials. Can anyone help me in this?
ꪉꫝꪖꪹᦋꪖꪜ
Okay
Siddharth
Class Doctor(models.Model): user = models.Foreignkey(User, ondelete = models.Cascade) specialist = models.Charfield()
Siddharth
Class Appointment (models.Model): appointment_id = models.IntegerField() Patient_ name = models.charfield(max_length = 50) Diseases_related = models.Charfield(max_length=20)
Siddharth
I want to pass the patient details related to specific diseases to specific doctor
imthiyaz
how can i add an favicon to my django website
игорь/igor
I want to pass the patient details related to specific diseases to specific doctor
Your model relation is a bit off. 1 - Reference patient in appointment, 2 - remove appointment_id, Django orm puts id column itself, besides that you don't have primary key constraint there
игорь/igor
Look up your url.py file and change it according to tutorial
игорь/igor
I want to pass the patient details related to specific diseases to specific doctor
https://docs.djangoproject.com/en/3.2/topics/db/examples/
игорь/igor
Don't send private messages, please
игорь/igor
For instance https://simpleit.rocks/python/django/django-favicon-adding/
игорь/igor
Okay
Are you guys having same home assignment? Appointment, doctor, patient
imthiyaz
ok
игорь/igor
i tried but not working
What is the error? 404?
imthiyaz
What is the error? 404?
server not found 500
imthiyaz
😞
Pouya
add if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) after urlpatterns at urls.py file of your project name
Ramtin
can someone help me by defining this function get_absolute_url in Django ?
Raj
Hi guys, give me an idea how to generate token using jwt when a new user register.
Mirco
Hi guys, give me an idea how to generate token using jwt when a new user register.
don't reinvent the wheel, use packages that already manage JWT
Amir
Hello, does anyone know why when I change the article status in admin panel, then I refresh the page, it shows that product again? if I run the project again, it will work?
Позывной "ПАПА"
show it in src not data
<object> has no src attribute as a temporary solution, I placed it in the <img> tag. But I still need it in the <object>
Morteza
Template tags will catch wath ever you send for them in the views.py
not always you can use them as global queryset and you dont need to pass the same queryset over many views.
Morteza
Really?! Do you have its article? Or document about it
search for inclusion_tag and simple_tag
Eugene
Guys, what should i do with that: "django.db.utils.DataError: smallint out of range" ? I tried to deployee django app on heroku with dyno :/
mAXY
Does anybody know about custom jwt token
Doragonsureiyā
Does anybody know about custom jwt token
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
mAXY
Oki
mAXY
Actually i wanted to link jwt with my user model but instead it taking django.contrib.auth.models User (superuser)
God
Does anyone know how to fix merge conflict issue of Pycache folder?
5P34R
yendo
God
Aren't they ignored by gitignore?
Nope, i even tried adding /.pycache./ to gitignore
God
but everytime it shows some changes Any workaround for this?
Anonymous
You can add them to gitignore in both branches and commit Or delete in both branches and commit
Doragonsureiyā
Rule 1⃣: Speak English.
Siddharth
By using queryfilter, it is returning none but data is present is database ? Anyone can help me
pranit
Guys can anyone know how to set Django uWSGI in azure server
Vipin
I have a doubt. I have a table Containing Product name ,Quantity, Unit price, Tax rate Like that .I wanna select product name by using a get api That is already i done But i wanted to get the unit price amount ...and tax rate of corresponding product in to corresponding table row .. after selecting product name How can i perform this bro Please help me
Vipin
Guys
Hian
has anyone already used django chennel for websockets, is it worth using it?
cj
has anyone already used django chennel for websockets, is it worth using it?
depends on what you really want to do with it... I built a chat for an internal health care system and it worked good for almost 2K+ users
Hian
is it worth using?
cj
for 50,000, but it's just for alerts.
just for alerts, well then use something else, as in previous messages were told in this group, something like SQS
Ikki
Ok
Charly
those numbers need a timeframe, is not the same 2k concurrent user than 2k users per day, or 50k users per minute than 50k total users
Sai
Hi I have more than 1000 products. Where the end date (until product will shown to user) will keep on change after each user transaction on that product.how I can update the product end date on other user screen who not even made any transaction
Alex
There is also push api in modern browsers, so you can invert that scheme, but I cannot say much about it.
Alex
Sounds like webhook
kinda like that, but I'm unfamiliar with implementation details.
Sai
Basically - by asking your backend of it. There are numerous ways for that - websockets, longpolling and so on and on and on.
Which one will be best suite for my case. I can have 1000 concurrent users at a time
Sai
Okay websocket is power👍 I will stick to that for this time
Sai
Does django channels works in WSGI
Alex
Does django channels works in WSGI
wsgi is an synchronous protocol, wheres websockets are asynchronous.
Sai
My total backend is on WSGI now I want to integrate websocket. moving from WSGI to Asgi is good? Or any alternative approach
Позывной "ПАПА"
Why svg image is not displayed in django? i try <object type="image/svg+xml" data="{{ project.icon.url }}" class="card-img"></object> in browser i get: <object type="image/svg+xml" data="/media/fa.svg" class="card-img"></object> but SVG is not displayed it works on pure HTML also <img type="image/svg+xml" class="card-img" src="/media/fa.svg"> work in django
Sai
just move to ASGI, you shouldn't have any big issue that can't be solved
Moving to ASGI not show any impact on previous implementation
cj
Moving to ASGI not show any impact on previous implementation
as I said: "you shouldn't have any big issue that can't be solved"
cj
you'll have issues, but you can fix them but if you didn't get any issue, well, good luck! nothing to be worried about
Позывной "ПАПА"
why do use object when you can show it witn img tag?
I want interactive with svg, change color etc.