o
    %]h5J                     @   s   d dl Z d dlmZ d dlmZ d dlmZ d dlZd dlm	Z	 d dl
mZ d dlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ G dd	 d	eZdS )
    N)BaseCommand)ContentFile)slugify)BytesIO)settings)CourseCourseEligibility	CourseFee	FeeDetail	HostelFeeSemesterSubjectCareerProspectAdmissionStepDirectAdmission	RecruiterWhyJoinCourseHighlightCourseImageTestimonialc                   @   s0   e Zd ZdZdd Zdd Zdd Zdd	 Zd
S )CommandzFSeeds the database with courses for Roorkee College of Smart Computingc                    s   j  jd tjtjtj	ddd  fdd}ddd	d
dddddd
dddddd
dddddddddddddddddddddd d!dd"dd#d$d%dd"dd&d'd(dd)dd*d+d,dd)dd-d.d/d0d)dd1d2d3dd4dd5d6d7d0d"dd8d9d:d0ddd;d<d=dddg}|D ]y}t
|d> }g d?}|t|d> t|  }d@| }	||	dA| }
tjj||d> |dB |dC |dD |dE ddF\}}|
r|
|_|  |r j  jdG|j  n j  jdH|j   ||  ||  || qd S )INz(Starting to seed Smart Computing courseszcourses/bannersT)exist_okc              
      s   z)t | }|jdkr| d}t|j|d}|W S  j jd|   W d S  t	yK } z j j
dt|  W Y d }~d S d }~ww )N   z.jpg)namezFailed to download image from zError downloading image: )requestsgetstatus_coder   contentstdoutwritestyleWARNING	ExceptionERRORstr)url
field_nameresponsefilenameimage_contenteself M/var/www/apihucms/courses/management/commands/seed_smart_computing_courses.pysave_image_from_url   s   


z+Command.handle.<locals>.save_image_from_urlzB.Tech. Hons. (CSE)zfHonours program in Computer Science & Engineering with advanced curriculum and research opportunities.a1  The B.Tech. Honours in Computer Science & Engineering is an advanced undergraduate program designed for academically outstanding students. This program combines rigorous coursework with research opportunities, preparing students for leadership roles in technology industries or advanced academic pursuits.z4 Years (8 Semesters)zComputer Science & Engineering)titleshort_descriptionoverviewdurationcategoryzB.Tech. Hons. (AI & ML)zbSpecialized Honours program focusing on Artificial Intelligence and Machine Learning technologies.a  The B.Tech. Honours in AI & ML is a cutting-edge program that combines computer science fundamentals with advanced artificial intelligence and machine learning concepts. Students will learn deep learning, neural networks, data science, and AI applications across various industries.z*Artificial Intelligence & Machine LearningzRB.Tech. Hons. (IOT, Cyber Security including Blockchain Technology / Data Science)z]Comprehensive program covering IoT, Cybersecurity, Blockchain, and Data Science technologies.a#  This innovative program integrates Internet of Things (IoT), Cybersecurity, Blockchain Technology, and Data Science. Students will gain expertise in emerging technologies that are shaping the digital future, including secure IoT systems, blockchain applications, and advanced data analytics.zEmerging TechnologieszB.Tech. Hons. LE (CSE)zTLateral Entry Honours program in Computer Science & Engineering for diploma holders.zThe B.Tech. Honours Lateral Entry program in CSE is designed for diploma holders who want to pursue advanced studies in computer science. This program allows direct admission to the second year while maintaining the honours curriculum standards.z3 Years (6 Semesters)zB.Tech. Hons. LE (AI & ML)zLLateral Entry Honours program in Artificial Intelligence & Machine Learning.zThis lateral entry program provides diploma holders with an opportunity to specialize in AI & ML through an accelerated honours curriculum. Students will focus on advanced AI concepts, machine learning algorithms, and practical applications.zUB.Tech. Hons. LE (IOT, Cyber Security including Blockchain Technology / Data Science)z>Lateral Entry program covering advanced emerging technologies.zThis lateral entry honours program focuses on the convergence of IoT, Cybersecurity, Blockchain, and Data Science. Diploma holders can directly join this advanced program to specialize in these high-demand technology areas.BCAzcBachelor of Computer Applications - Comprehensive program in computer applications and programming.zThe BCA program provides a strong foundation in computer applications, programming languages, database management, and software development. This program prepares students for careers in software development, web development, and IT support.zComputer Applicationsz-BCA (AI & ML / Cyber Security / Data Science)zNSpecialized BCA program with focus on AI & ML, Cybersecurity, or Data Science.a  This specialized BCA program allows students to choose from three cutting-edge specializations: Artificial Intelligence & Machine Learning, Cybersecurity, or Data Science. Students will gain expertise in their chosen field while maintaining a strong foundation in computer applications.zB.Sc. Computer SciencezSUndergraduate program in Computer Science with theoretical and practical knowledge.a  The B.Sc. Computer Science program provides a comprehensive understanding of computer science principles, programming, mathematics, and problem-solving skills. This program is ideal for students interested in software development, research, or pursuing higher studies.zComputer Sciencez@B.Sc. Computer Science (AI & ML / Cyber Security / Data Science)zKSpecialized B.Sc. Computer Science with focus on modern technology domains.zThis specialized B.Sc. program combines computer science fundamentals with specialization in AI & ML, Cybersecurity, or Data Science. Students will develop expertise in their chosen area while maintaining a strong theoretical foundation.zM.Sc. Computer SciencezNAdvanced postgraduate program in Computer Science with research opportunities.a  The M.Sc. Computer Science program is designed for graduates who want to deepen their knowledge in computer science. The program includes advanced topics, research methodology, and dissertation work, preparing students for research careers or industry leadership roles.z2 Years (4 Semesters)zB.Sc. Animation & MultimediazXCreative program combining animation, multimedia design, and digital media technologies.a  The B.Sc. Animation & Multimedia program prepares students for careers in the creative digital industry. Students will learn 2D/3D animation, video editing, graphic design, web design, and multimedia production using industry-standard software and techniques.zAnimation & MultimediaMCAzeMaster of Computer Applications - Advanced program in computer applications and software development.zThe MCA program is a professional postgraduate course in computer applications. It focuses on advanced programming, software engineering, database management, networking, and emerging technologies, preparing students for senior roles in the IT industry.zM.Tech. (CS/CSE)zHMaster of Technology in Computer Science/Computer Science & Engineering.a  The M.Tech. program in CS/CSE is an advanced engineering degree focusing on specialized areas of computer science and engineering. Students will engage in cutting-edge research and development projects, preparing them for leadership roles in technology industries or academic careers.zDiploma (CSE)zGDiploma program in Computer Science & Engineering with practical focus.a
  The Diploma in CSE is a technical program that provides hands-on training in computer science and engineering. This program prepares students for immediate employment in the IT industry or provides a pathway to pursue higher education through lateral entry programs.r0   )zcomputer,technologyzartificial,intelligencecybersecurityzprogramming,codezdata,science
blockchainzanimation,designz&https://source.unsplash.com/1200x600/?banner_r1   r2   r3   r4   )slugdefaultszCreated course: zUpdated course: )r   r   r    SUCCESSosmakedirspathjoinr   
MEDIA_ROOTr   hashlenr   objectsupdate_or_createbanner_imagesaver0   _create_course_eligibility_create_course_fees_create_course_highlights)r,   argsoptionsr/   courses_datacourse_datar:   banner_themestheme
banner_urlrF   coursecreatedr-   r+   r.   handle   s   m

zCommand.handlec                 C   s   d|j v rd}d}d}n(d|j v sd|j v sd|j v r"d}d	}d
}nd|j v r.d}d}d}nd}d}d}tjj||||dd dS )z*Create eligibility criteria for the courseLEzRDiploma in Engineering/Technology in relevant field from a recognized institution.z5Minimum 60% aggregate in Diploma (55% for SC/ST/OBC).z5Lateral Entry Entrance Test or merit-based admission.M.TechM.Scr6   zABachelor's degree in relevant field from a recognized university.z?Minimum 60% aggregate in qualifying degree (55% for SC/ST/OBC).z7GATE/University Entrance Test or merit-based admission.Diplomaz,10th standard (SSC) from a recognized board.z;Minimum 50% aggregate in 10th standard (45% for SC/ST/OBC).z'Merit-based admission or entrance test.zG10+2 (Senior Secondary) with relevant subjects from a recognized board.z2Minimum 60% aggregate in 10+2 (55% for SC/ST/OBC).z6JEE Main/State Entrance Test or merit-based admission.)academic_qualificationminimum_marksentrance_examrR   r;   N)r0   r   rD   rE   )r,   rR   rN   academic_qualrZ   r[   r-   r-   r.   rH      s,   


z"Command._create_course_eligibilityc                 C   s   d|j v s
d|j v rd}d}n'd|j v rd}d}nd|j v r#d	}d
}nd|j v s-d|j v r2d}d}nd}d}tjj|||dd dS )z#Create fee structure for the courserV   rW   u   ₹1,80,000 per yearz$6,000 per yearr6   u   ₹1,60,000 per yearz$5,500 per yearzB.Techu   ₹1,75,000 per yearz$5,800 per yearr5   zB.Scu   ₹1,20,000 per yearz$4,000 per yearu   ₹80,000 per yearz$3,000 per year)domesticinternationalr\   N)r0   r	   rD   rE   )r,   rR   rN   domestic_feeinternational_feer-   r-   r.   rI      s(   


zCommand._create_course_feesc                 C   s(  g }d|j v rddddddddd	d
ddddddg}nSd|j v s(d|j v r?ddddddddddddddddg}n2d|j v r[ddd dd!d"d#dd$d%d&dd'd(d)dg}nd*d+d,dd-d.d/dd0d1d2dd3d4d5dg}|D ]}tjj||d6 |d7 |d8 d9d: qs| j| jd; d<S )=zCreate course highlightszAI & MLzAdvanced AI CurriculumzOComprehensive coverage of machine learning, deep learning, and neural networks.brain)r0   descriptioniconzHands-on Projectsz3Real-world AI projects and industry collaborations.zproject-diagramzResearch Opportunitiesz7Access to cutting-edge AI research labs and facilities.
microscopezIndustry Connectionsz3Strong ties with leading AI companies and startups.	handshakezCyber SecurityIOTzLatest Security Technologiesz@Learn about modern cybersecurity threats and defense mechanisms.z
shield-altzPractical Labsz8Hands-on experience with security tools and IoT devices.toolszIndustry Certificationsz<Preparation for industry-recognized security certifications.certificatezReal-world Scenariosz9Training with actual security incidents and case studies.zexclamation-triangle	AnimationzCreative Software Trainingz7Master industry-standard animation and design software.zpaint-brushzPortfolio Developmentz4Build a professional portfolio with guided projects.zfolder-openzIndustry Mentorshipz;Learn from experienced professionals in animation industry.zuser-tiezLatest Techniquesz=Stay updated with current trends in animation and multimedia.starzComprehensive CurriculumzGComplete coverage of computer science fundamentals and advanced topics.bookzPractical Learningz7Extensive lab work and project-based learning approach.zlaptop-codezIndustry Readyz:Curriculum designed with industry requirements and trends.industryzResearch FocuszCOpportunities for research and innovation in emerging technologies.searchr0   rc   rd   )rc   rd   )rR   r0   r;   z0Successfully seeded all Smart Computing courses!N)r0   r   rD   rE   r   r   r    r<   )r,   rR   rN   highlights_datahighlight_datar-   r-   r.   rJ      sB   

















	z!Command._create_course_highlightsN)__name__
__module____qualname__helprT   rH   rI   rJ   r-   r-   r-   r.   r      s     /r   )r=   django.core.management.baser   django.core.files.baser   django.utils.textr   r   ior   django.confr   courses.modelsr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r-   r-   r-   r.   <module>   s    D