Sagar Bhadarka
2018-07-20 06:54:49 UTC
Hello everyone,
I made django rest-api for user registration. It is working fine when I
entered data from api root which comes built in with django. Now I want to
know that when I host this api on web and call it from any platform, do I
need to make any change in code so it accept request from the app? Below is
the code.
class user(models.Model):
user_name = models.CharField(max_length=20, blank=False)
email = models.EmailField(max_length=20, blank=False)
password = models.CharField(max_length=20, blank=False)
objects = models.DjongoManager()
def __str__(self):
return self.user
I have views and serializers for this api. I just want to know that right
now it is handling the request but what happens when I host this api on web?
I made django rest-api for user registration. It is working fine when I
entered data from api root which comes built in with django. Now I want to
know that when I host this api on web and call it from any platform, do I
need to make any change in code so it accept request from the app? Below is
the code.
class user(models.Model):
user_name = models.CharField(max_length=20, blank=False)
email = models.EmailField(max_length=20, blank=False)
password = models.CharField(max_length=20, blank=False)
objects = models.DjongoManager()
def __str__(self):
return self.user
I have views and serializers for this api. I just want to know that right
now it is handling the request but what happens when I host this api on web?
--
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-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.