unable to achieve what i want,can you share some more resource
On Wednesday, March 10, 2021 at 6:47:56 PM UTC+5:30 christian...@gmail.com
wrote:
> https://www.toptal.com/django/integrate-oauth-2-into-django-drf-back-end
>
>
> On Tue, 9 Mar 2021 at 17:19, Ashutosh Mishra
> wro
I want to create a social authentication system in django rest
framework,without frontend using custom user model.
Can someone share some material or link from where i can learn how to do
this??
--
You received this message because you are subscribed to the Google Groups
"Django REST framework
I want to get all the objects in a radius,
suppose i want to get all the restaurant available around 3km radius of my
current location
How can i achieve in django,
can anyone suggestme some post or article
--
You received this message because you are subscribed to the Google Groups
"Django REST
class Category(models.Model):
name = models.CharField(max_length=100,null=True,blank=True)
def __str__(self):
return str(self.name)
class Items(models.Model):
name = models.CharField(max_length=100)
category = models.ForeignKey(Category,on_delete=models.CASCADE
,related_name='items')
def __str__
It's urgent
I have a task,
How to Update a product Price in our database from excel sheet
for eg i have a product name ABC on my website, i want to update that price
from an excel sheet
models.py
class Product(models.Model):
product_name=models.CharField(max_length=255,blank=True,null=True)
pro
class Photo(models.Model):
image1=models.FileField(blank=True,
default="",upload_to="media/images",null=True)
image2=models.FileField(blank=True,
default="",upload_to="media/images",null=True)
def __str__(self):
return str(self.image1)
i want to download images from both fields image1 and image
Hello guys I have a task.I have an authentication model in which there is a
custom user model and nurse model,email and password will store in custom
user model rest details of the nurse will store in the nurse model,and
token will be generated.I am unable to figure out how can i do this,i am a
of objects. You provide a single object; hence you get an
> error about argument not being iterable.
>
> On Wed, Nov 4, 2020 at 1:32 AM Ashutosh Mishra <
> ashutoshmishra...@gmail.com> wrote:
>
>> I want to fetch a particular entry by using primary key,suppose if I put
&g
I want to fetch a particular entry by using primary key,suppose if I put 1
the entry associated with 1 will appear
On Wed 4 Nov, 2020, 12:01 Xavier Ordoquy, wrote:
> The question is, what are you trying to do and what outcome are you
> expecting ?
>
> Le 4 nov. 2020 à 07:28, Ashuto
rd which means the serializer will expect an
> iterable of Articles as the error suggests.
>
> Regards,
> Xavier O.
> Linovia.
>
>
> Le 4 nov. 2020 à 07:03, Ashutosh Mishra a
> écrit :
>
> whenever i try to fetch data usinng primary key,getting above er
so do i need to add serializer_class every where i have put serializer?
On Monday, October 26, 2020 at 9:32:56 PM UTC+5:30 beignet...@gmail.com
wrote:
>
> in RegisterApi add serializer_class=RegisterSerializer , model = Nurse and
> queryset or get_queryset
> On Monday, 26 October 2020 at 14:24:
getting error=RegisterAPI' should either include a `serializer_class`
attribute, or override the `get_serializer_class()` method
models.py:
class Nurse(models.Model):
name = models.CharField(max_length=255, null=False)
email = models.CharField(max_length=255, null=False)
nurseid = models.CharFiel
I have some fields related to user,i need to send validation link to user
email ,link opens a web page to enter password twice for comlete
registration.Later user can log in through this password.Anyone?
--
You received this message because you are subscribed to the Google Groups
"Django REST
I am getting the url while printing it
On Wed 14 Oct, 2020, 14:07 Ashutosh Mishra,
wrote:
> buddy i have tried the way i have coded,i have got results too,but today i
> am not getting
>
> On Wednesday, October 14, 2020 at 9:45:28 AM UTC+5:30 rsalg...@gmail.com
> wrote:
https://stackoverflow.com/questions/64349822/not-getting-the-url-of-update-api-in-django
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-fra
wSet instead of ViewSet.
>
> On Wednesday, October 14, 2020 at 9:24:57 AM UTC+5:30
> ashutosh...@gmail.com wrote:
>
>> can anyone see my code through teamviewer ?
>>
>>
>> On Monday, October 12, 2020 at 11:34:54 PM UTC+5:30 matemat...@gmail.com
>> wrote:
&
can anyone see my code through teamviewer ?
On Monday, October 12, 2020 at 11:34:54 PM UTC+5:30 matemat...@gmail.com
wrote:
> On Mon, Oct 12, 2020 at 6:52 AM Ashutosh Mishra
> wrote:
>
>> I have create update api in django,but i am not getting its api link in
>> postma
I have create update api in django,but i am not getting its api link in
postman
urls.py
from rest_framework.routers import DefaultRouter
from doctor import views
from .views import*
router=DefaultRouter()
router.register(r'Patient', views.PatViewSet, basename='PatViewSet')
router.register(r'Sch',
I have a schedule model in which there is a doctor and his STARTING_TIME
and CLOSING_TIM ARE 10am to 6pm.So how can i give 15 minute slots to the
patients while booking in the other appointment model?
--
You received this message because you are subscribed to the Google Groups
"Django REST fr
i am tring to add boolean field true through postman but it is giving an
error,and i am unable to figure out the problem
models.py
class Tutorial(models.Model):
title=models.CharField(max_length=50,blank=False,default='')
description=models.CharField(max_length=200,blank=False,default='')
publishe
I want to create an api to feed opening time and closing time of restaraunt
for each day in a week.All days are in choice field.How can i do that
models.py
class Schedule(models.Model):
restaraunt=models.ForeignKey(Restaraunt,
on_delete=models.CASCADE,related_name='restaraunt_name')
days=mo
Can you please tell me the flow,I. Am a beginner in def.
On Sun 20 Sep, 2020, 15:11 naveen Kumar, wrote:
> What's the exact issue I can help you...
>
>
>
>
> On Sun, 20 Sep, 2020, 3:06 pm Ashutosh Mishra, <
> ashutoshmishra...@gmail.com> wrote:
>
>> He
First of all I am not using serializers
All custom code.
I am having problem with forget password.
On Sun 20 Sep, 2020, 15:11 naveen Kumar, wrote:
> What's the exact issue I can help you...
>
>
>
>
> On Sun, 20 Sep, 2020, 3:06 pm Ashutosh Mishra, <
> ashut
Hello everyone i am creating an project,can anyone help me its some
features.
i am posting the link
https://marvelapp.com/prototype/150je746/screen/40505991
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this grou
unable to get what are you saying.
On Sunday, September 20, 2020 at 2:11:51 PM UTC+5:30 beignet...@gmail.com
wrote:
> you can simply use dj-rest-auth
>
> Le dim. 20 sept. 2020 à 05:40, Ashutosh Mishra a
> écrit :
>
>> I have create an api's for sending otp and otp
I have create an api's for sending otp and otp verification.But unable to
figure out how to reset password of the user whose password field is in
some other model.
Hers is my question on stackoverflow
*https://stackoverflow.com/questions/63975517/how-to-change-password-in-after-otp-verification
I have created custom user ,through which i have authenticated and got
token .Later the user log in .Now i want to create logout.How can i get
that user token who recently logged in.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To
adable.
> Thanks
>
> On Thu, Sep 10, 2020 at 4:16 AM Ashuosh Mishra
> wrote:
>
>> Trying to generate token of custom user but getting above error,
>>
>> models.py
>> class MyUserManager(BaseUserManager):
>> def create_user(self, email, password=None, **extra_f
Trying to generate token of custom user but getting above error,
models.py
class MyUserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
if not email:
raise ValueError('Users must have an email address')
account = self.model(
email=self.normalize_email(email),
at Cisco that was
> three years and it's still being worked on. Building for the web is
> time-consuming there are NO short cuts. An make sure you write tests on
> your code WILL be broken.
>
> ~Carl
>
> On Tue, Sep 8, 2020 at 12:33 PM Ashutosh Mishra <
> ashutoshm
the frontend
> and backend. This is usually non-trivial.
>
> Think about what you are asking and you will see it takes work and
> customization is always part of it.
>
> ~Carl
>
> On Tue, Sep 8, 2020 at 3:21 AM Ashutosh Mishra <
> ashutoshmishra...@gmail.com> wrote:
i want to create authentication of student,admin and superadmin using
viewset and routers without serializers(custom code) how can i do this,some
please guide me
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this
I want to create api's to get personal horoscope and the matching horoscope
by providing
date of birth for girl and boy,some one plz guide how can we do this
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this gro
i am creating an api to get the images from django model to excel sheet ,i
am trying using openpyxl,but getting only the url of image of excel sheet
not the image.,
i have posted the link of my question
https://stackoverflow.com/questions/62848215/unable-to-get-images-on-excel-sheet-using-openpy
m+=1
row = [
obj.Id,
obj.Name,
obj.Image1.url,
obj.Image2.url,
str(obj.Date),
]
print(type(row))
for col_num in range(len(row)):
c = ws.cell(row=row_num + 1, column=col_num + 1)
c.value = row[col_num]
wb.save(response)
return response
except Exception as error:
traceback.print_exc()
return Response({&q
> Are you able to produce a excel file?
>
> On Fri, Jul 10, 2020 at 5:02 AM Ashutosh Mishra <
> ashutoshmishra...@gmail.com> wrote:
>
>> I am creating an api to get data and images from django model to excel
>> sheet ,how can i do that,someone please help me.
>&g
I am creating an api to get data and images from django model to excel
sheet ,how can i do that,someone please help me.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, s
i want to get the data from the django model contans(name,age,photo) on a
excel sheet.
How can i do that.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
I am creating an api to export image from django model to the excel
sheet.But unable to do that,while doing that geeting only the root path of
images.Please help it's uergent.
models.py
class Task(models.Model):
Id=models.IntegerField()
Name=models.CharField(max_length=50,null=False,b
I have Three models User, Consumer and Tasks. My consumer is one to one
with user(django inbuilt) and my consumer model is one to many with tasks
i.e one consumer can add many tasks.
My models are like this :
class Consumer(models.Model):
user=models.OneToOneField(User,on_delete=models.CA
40 matches
Mail list logo