• ILOVALAR
  • Online ta’lim
  • Sertifikat
  • Bitiruv malakaviy ishi mavzu: “Python academy” o‘quv markazining integrallashgan ta’lim platformasi axborot tizimini ishlab chiqish




    Download 5,79 Mb.
    bet8/8
    Sana11.06.2024
    Hajmi5,79 Mb.
    #262566
    1   2   3   4   5   6   7   8
    Bog'liq
    1NEW UMAROV BMI

    Internet saytlar

  • Mohirdev.uz

  • https://python.org

  • https://www.w3schools.com/

  • https://www.djangoproject.com/

    18. www.intuit.ru.
    20. https://gov.uz/
    21. https://lex.uz/
    22. https://stackoverflow.com/
    23. https://www.google.com/

    ILOVALAR










    data-duration-in=".3" data-animation-in="fadeInLeft" data-delay-in=".1">
    PYTHON ACADEMY




    data-duration-in=".3" data-animation-in="fadeInLeft" data-delay-in=".4">
    Zamonaviy kasblarga o‘qitish ta’lim platformasiga xush kelibsiz


    data-delay-out="5" data-duration-in=".3" data-animation-in="fadeInLeft"
    data-delay-in=".7">Tizimga kirish




















    Online ta’lim



    2024-ta’lim standartlariga mos zamonaviy IT kasblariga o‘qitish




    Mentiyorlar



    Ta’lim oluvchi o‘quvchilar bilan muntazam aloqa




    Sertifikat



    Kursni tugatgan xar bir o‘quvchilarni sertifikat bilan ta’minlash




    Ishga joylash



    Kursni a’lo naatijalar bilan tamomlagan o‘quvchialrni ish bilan taminlash







    Backend
    Ilova
    import os
    import sys
    def main():
    """Run administrative tasks."""
    os.environ.setdefault('DJANGO_SETTINGS_MODULE’, 'config.settings')
    try:
    from django.core.management import execute_from_command_line
    except ImportError as exc:
    raise ImportError(
    "Couldn't import Django. Are you sure it's installed and "
    "available on your PYTHONPATH environment variable? Did you "
    "forget to activate a virtual environment?"
    ) from exc
    execute_from_command_line(sys.argv)
    if __name__ == '__main__':
    main()
    def home(request):
    """A view that displays a main page."""
    events = Event.objects.all().order_by('-created_at')[:3]
    courses = Coures.objects.all().order_by('-created_at')[:3]
    teachers = Teacher.objects.all().order_by('-created_at')[:3]
    context = {
    'events': events,
    'courses': courses,
    'teachers': teachers,
    }
    return render(request, 'index.html',
    class Contact(models.Model):
    name = models.CharField(_('name’), max_length=50, blank=True, null=True)
    phone = models.CharField(_('phone’), max_length=50, blank=True, null=True)
    tg_username = models.CharField(
    _('telegram username’), max_length=50, blank=True, null=True)
    is_asnwered = models.BooleanField(_('is answered'), default=False)
    # Timestamps
    created = models.DateTimeField(_('created'), auto_now_add=True)
    updated = models.DateTimeField(_('updated'), auto_now=True)
    def __str__(self):
    return f'{self.name} - {self.email}'
    class Meta:
    verbose_name = _('contact')
    verbose_name_plural = _('contacts')
    ordering = ('-created',)
    class Coures(models.Model):
    name = models.CharField(max_length=50)
    image = models.ImageField(upload_to='course/images')
    teacher = models.ForeignKey(
    Teacher, on_delete=models.CASCADE, related_name='courses')
    description = models.TextField()
    price = models.IntegerField()
    duration = models.IntegerField(help_text='Duration in days')
    is_published = models.BooleanField(default=True)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    def __str__(self):
    return f"{self.name} - {self.teacher.name}"
    class CourseLesson(models.Model):
    course = models.ForeignKey(Coures, on_delete=models.CASCADE)
    title = models.CharField(max_length=50)
    youtube_url = models.CharField(max_length=200)
    description = models.TextField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    def __str__(self):
    return f"{self.title} - {self.course.name}"
    class Event(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    image = models.ImageField(upload_to='event/images')
    location = models.CharField(max_length=255)
    date = models.DateField()
    time = models.TimeField()
    price = models.IntegerField()
    is_published = models.BooleanField(default=False)
    speakers = models.ManyToManyField(
    Teacher, related_name='events', blank=True)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    def __str__(self):
    return f"{self.title} - {self.location}"
    class Meta:
    verbose_name = 'Event'
    verbose_name_plural = 'Events'
    class Teacher(models.Model):
    name = models.CharField(max_length=50)
    profile_pic = models.ImageField(upload_to='teacher/profile_pics')
    job_title = models.CharField(max_length=255)
    email = models.EmailField()
    phone = models.CharField(max_length=20)
    address = models.CharField(max_length=100)
    bio = models.TextField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    def __str__(self):
    return f"{self.name} - {self.email}"
    class Meta:
    verbose_name = 'Teacher'
    verbose_name_plural = 'Teachers'


    Download 5,79 Mb.
  • 1   2   3   4   5   6   7   8




    Download 5,79 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Bitiruv malakaviy ishi mavzu: “Python academy” o‘quv markazining integrallashgan ta’lim platformasi axborot tizimini ishlab chiqish

    Download 5,79 Mb.