ImportError cannot import name employees from rest framework

0 votes

from django.db import models

# Create your models here.

class employees(models.Model):

    firstname = models.CharField(max_length=10)

    lastname = models.CharField(max_length=10)

    emp_id = models.IntegerField()

    def __str__(self):

        return self.firstname

Mar 29, 2022 in Python by Rajni

edited Mar 4 11 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP