Gerald
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Introduction
Bahar
Uttam
Then no use. In future it will help if you have one. Sometimes if you want other people to have information from your website directly then create rest API end point and user can directly access information from there
Lokendra
Whats the alternative to REST?
Abhishek
How to integrate Paytm payment gateway please help me
Bahar
Gerald
Gerald
Alex
Uttam
Uttam
Bahar
Dmitry
Hi there! Which version of DRF I should use with Django 2.2.10?
Dmitry
I gonna try actual version
Mirco
Dmitry
Ok, thanks for answer!
Gerald
Mirco
maroong
EscanOr
What's the main difference between REST n RESTFull API
Bahar
Siddhartha
Is there a group for fastapi?
EscanOr
Abhishek
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
#'functions.context_processors.shop'
],
Abhishek
Anyone know how to use context processor
sheikh
Add a file in your app with name context_processor.py
Add function in and return dictionary from that function.
Go to setting add this in context processor list
'yourapp. context_processor.fname',
sheikh
And use dictionary variable name in your template
sheikh
Keyname
Yuvi
How to fetch image using django
Melvin
Hey,
When I configute my mail client and try to send a mail I get SMTPServerDisconnected Error
It says please run connect() first. But I am not sure on what object I should run connect(). Can someone help
Sid
from django.contrib.auth.models import User
>>> from blog.models import Post
>>> user =User.objects.get(username='admin')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Users\hp\Envs\sid\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\hp\Envs\sid\lib\site-packages\django\db\models\query.py", line 415, in get
raise self.model.DoesNotExist(
django.contrib.auth.models.User.DoesNotExist: User matching query does not exist.
>>> user =User.objects.get(username='admin')
Sid
Abhishek
sheikh
Melvin
How to overcome this error
This is because the user you are trying to fetch does not exist in the database. You can use a try catch block and then return a custom error message
Sid
Melvin
No worries mate
purva
what package should be used to async logging in django?
Krithika
How to fetch image from db to ui in django?
Dev
Hot to pass foreignkey value in json
Krithika
I'm capturing image using cv2 and saving it in dataset
sheikh
Ismail
hello ,
how i can divide some table attributes into days, weeks, month and all time in django models
sheikh
Ismail
Dev
Aditya
Help me guys
Use Model.id to record the value and pass the same
Anonymous
Anybody worked with grapgql??
Alex
Help me guys
Behind the scene ForeignKey field is actually an ID of another model
class Spam(models.Model):
pass
class Ham(models.Model):
spam = models.ForeignKey(Spam)
....
ham.spam_id # id of a related spam
Deleted
Hey guys, any software to modify html in django just by draging widget?
Dev
Thank you guys
Alex
Deleted
Deleted
change one by one in the HTML file is time-consuming
Uttam
Hire some developer
enansi
Hi all, I'm using native Django Groups and Permissions, what's a good way to pass permission from my DRF backend to my frontend? So that a user that didn't have permissions to view a module will not even see the menu item on the React JS UI?
Anonymous
Hey !! I'm unable to start my PostgresSQL Database
Anonymous
There is error coming ( more is not recognised as internal or external command )
Anonymous
I already set the PATH ( c:\program\PostgresSQL\ scripts
Anonymous
Like i have two different paths ( Python & PostgresSQL ) in same PATH variable
Anonymous
With ; separated
Anonymous
What should i do start it
Anonymous
But it's regarding Database
Anonymous
It's general