o
    g                     @   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                   @   s   e Zd ZdZdd ZdS )CommandzMSeeds the database with B.Tech. in Computer Science & Engineering course datac           %         s	   j  jd tjtjtj	ddd tjtjtj	ddd tjtjtj	ddd tjtjtj	ddd  fdd	}d
ddddddd}||d d}t
jj|d |d |d |d |d |d dd\}}|rz||_|  |r j  jd|j  n j  jd|j  ddd d!}tjj||d" tjj|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/d0d1d1d1dd*d2d3d1d1d1dd*g}tjj|	d4  |D ]}tjjdWd5|	i| qtjj|d6d7d.d8d9d" d:d;d<d=d>d?d@dAdBd>dCd@dDdEdFdGd@dHdIdFdJd@dKdLdMdNd@dOdPdFdQd@gdRdSdMdTdUd>dVd@dWdXd>dYd@dZd[dFd\d@d]d^d>d_d@d`dadMdbd@dcdddMded@gdRdfdFdgdhd>did@djdkd>dld@dmdndFdod@dpdqd>drd@dsdtdFdud@dvdwdMdxd@gdRdyd>dzd{d>d|d@d}d~d>dd@dddFdd@dddFdd@dddFdd@dddMdd@gdRddddd>dd@ddd>dd@dddFdd@dddFdd@dddFdd@dddMdd@gdRddddd>dd@dddFdd@dddFdd@dddFdd@dddFdd@dddMdd@gdRdddddFdd@dddFdd@dddFdd@dddFdd@ddddd@gdRdddddFdd@ddddd@dddMdd@gdRg}tjj|d͍D ]}tjj|d΍  q>tjj|d͍  |D ]$}tjj||d |d dэ}|d D ]}tjjdWd|i| qiqVddddלddddלddddלddddלddddלddddלddddלddddלg}tjj|d͍  |D ]}tjjdWd|i| qddd;ddddMddddFdddd>dddddddddddddg}tjj|d͍  |D ]}tjjdWd|i| qtjj|dddd" ddd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g
}tjj|d͍  |D ](}||d dt|d  }tjj||d d}|ry||_|  qRdddddddddddddddd d!dd"d#dg}tjj|d͍  |D ]}tjjdWd|i| qd$d%d&d'd(d)d*d'd+d,d-d'd.d/d0d'd1d2d3d'd4d5d6d'g}t jj|d͍  |D ]}t jjdWd|i| qd7d8d)d9d:d;d)d9d<d=d)d9d>d?d)d9g}t!jj|d͍  |D ],}||d@ dAt|d  }t!jj||d |dB dC} |rt|| _"|   qIdDdEddFdGdHdIdJddKdLdHdMdd dNdOdHg}!t#jj|d͍  |!D ]4}"||"dP dQt|"d  }#t#jj||"d |"dR |"dS |"dT dU}$|#r|#|$_$|$  q j  jdV d S (X  Nz(Starting to seed B.Tech. CSE course datazcourses/bannersT)exist_okzcourses/recruiterszcourses/galleryzcourses/testimonialsc              
      s   z:t | }|jdkr+tj| dd }|rd|vr!| d}t|j|d}|W S  j	
 jd|   W d S  ty\ } z j	
 jdt|  W Y d }~d S d }~ww )	N   ?r   .z.jpg)namezFailed to download image from zError downloading image: )requestsgetstatus_codeospathbasenamesplitr   contentstdoutwritestyleWARNING	ExceptionERRORstr)url
field_nameresponsefilenameimage_contenteself @/var/www/apihucms/courses/management/commands/seed_cse_course.pysave_image_from_url   s   


z+Command.handle.<locals>.save_image_from_urlz)B.Tech. in Computer Science & Engineeringz"btech-computer-science-engineeringzA comprehensive program covering computer science fundamentals, software development, and engineering principles to prepare students for careers in technology.a  The B.Tech. in Computer Science & Engineering program is designed to provide students with a strong foundation in computer science theory, programming skills, and engineering principles. The curriculum covers a wide range of topics including algorithms, data structures, operating systems, database management, artificial intelligence, machine learning, and software engineering.

Students will gain hands-on experience through laboratory work, projects, and internships, preparing them for careers in software development, system administration, data science, and other technology fields. The program also emphasizes problem-solving, critical thinking, and communication skills that are essential for success in the industry.

With state-of-the-art facilities, experienced faculty, and industry connections, our B.Tech. CSE program ensures that graduates are well-equipped to meet the challenges of the rapidly evolving technology landscape.z4 Years (8 Semesters)zComputer Science & EngineeringzAhttps://source.unsplash.com/random/1200x600/?computer,programming)titleslugshort_descriptionoverviewdurationcategorybanner_image_urlr<   
cse_bannerr7   r6   r8   r9   r:   r;   )r6   r8   r9   r:   r;   )r7   defaultszCreated course: zUpdated course: a!  10+2 (Senior Secondary) with Physics, Chemistry, and Mathematics as compulsory subjects from a recognized board or equivalent.

Diploma holders in any branch of Engineering/Technology from a recognized institution are also eligible for admission through lateral entry into the second year.zGeneral Category: Minimum 60% aggregate in PCM (Physics, Chemistry, Mathematics) at 10+2 level.
SC/ST/OBC Category: Minimum 55% aggregate in PCM at 10+2 level.
For lateral entry: Minimum 60% aggregate in Diploma.aE  Admission is based on merit in national/state level entrance examinations such as:
- JEE Main (Joint Entrance Examination)
- State Engineering Entrance Examinations
- University-level Engineering Entrance Test

Candidates must qualify in the entrance examination and participate in the counseling process for seat allocation.)academic_qualificationminimum_marksentrance_exam)courser>   u$   ₹1,50,000 per year (approximately)z$5,000 per year (approximately))domesticinternationalzTuition Feeu   ₹1,00,000u   ₹1,10,000F)fee_head
first_yearsecond_year
third_yearfourth_yearis_one_timezDevelopment Feeu	   ₹15,000zExamination Feeu	   ₹10,000zRegistration Feeu   ₹5,000u   ₹0zSecurity Deposit (Refundable)u	   ₹20,000)
course_feerK   u	   ₹75,000u	   ₹25,000zHostel fees include accommodation, mess charges, and basic amenities. AC rooms are subject to availability. Hostel allocation is based on merit and distance from hometown.)fee_per_yearac_room_additionalsecurity_depositnotesz
Semester 1   CS101zIntroduction to Programming   zFundamentals of programming using C, including variables, data types, control structures, functions, arrays, and basic algorithms.)coder   creditsdescriptionMA101zEngineering Mathematics Iz[Calculus, differential equations, matrices, and their applications in engineering problems.PH101zEngineering Physics   z[Mechanics, waves, optics, and modern physics concepts relevant to engineering applications.CH101zEngineering Chemistryz^Basic concepts of chemistry including thermodynamics, electrochemistry, and materials science.HU101zCommunication Skills   zeEnglish language proficiency, technical writing, presentation skills, and professional communication.ME101zEngineering DrawingzZPrinciples of engineering drawing, orthographic projections, dimensioning, and CAD basics.)r   numbersubjectsz
Semester 2CS102zData StructureszImplementation and application of arrays, linked lists, stacks, queues, trees, graphs, and various searching and sorting algorithms.MA102zEngineering Mathematics IIzWProbability, statistics, numerical methods, and their applications in computer science.EC101zDigital ElectronicszoNumber systems, Boolean algebra, logic gates, combinational and sequential circuits, and digital system design.CS103zObject-Oriented ProgrammingzObject-oriented programming concepts using C++ or Java, including classes, objects, inheritance, polymorphism, and encapsulation.HU102zEnvironmental Studiesz]Environmental issues, sustainability, and the role of technology in environmental protection.CS104zProgramming LabzEPractical implementation of programming concepts and data structures.z
Semester 3CS201z&Computer Organization and Architecturez]Computer organization, CPU design, memory hierarchy, I/O systems, and performance evaluation.CS202zDatabase Management SystemszvDatabase concepts, ER modeling, relational model, SQL, normalization, transaction management, and concurrency control.CS203zDiscrete MathematicsziSets, relations, functions, graph theory, combinatorics, and mathematical reasoning for computer science.CS204zOperating SystemszgProcess management, memory management, file systems, I/O management, and security in operating systems.CS205zWeb TechnologieszSHTML, CSS, JavaScript, client-server architecture, and web application development.CS206zDBMS LabzXPractical implementation of database concepts using SQL and database management systems.z
Semester 4CS207z!Design and Analysis of AlgorithmsznAlgorithm design techniques, complexity analysis, greedy algorithms, dynamic programming, and NP-completeness.CS208zComputer NetworkszhNetwork architectures, protocols, routing algorithms, network security, and application layer protocols.CS209zSoftware EngineeringzlSoftware development life cycle, requirements engineering, design patterns, testing, and project management.CS210zTheory of ComputationzYAutomata theory, formal languages, Turing machines, computability, and complexity theory.CS211zPython ProgrammingzcPython syntax, data structures, object-oriented programming in Python, and application development.CS212zNetworks LabzTPractical implementation of networking concepts, protocols, and network programming.z
Semester 5   CS301zArtificial IntelligencezhProblem-solving, knowledge representation, reasoning, machine learning, and natural language processing.CS302zCompiler Designz[Lexical analysis, parsing, semantic analysis, code generation, and optimization techniques.CS303zMobile Application DevelopmentzXAndroid/iOS app development, UI design, data storage, and integration with web services.CS304zInformation SecurityzWCryptography, network security, authentication, access control, and security protocols.CS305zProfessional Elective IzASpecialized course based on student interest and industry trends.CS306z!AI and Mobile App Development LabzMPractical implementation of AI algorithms and mobile application development.z
Semester 6   CS307zMachine LearningzWSupervised and unsupervised learning, neural networks, deep learning, and applications.CS308zCloud Computingz[Cloud architectures, virtualization, service models, deployment models, and cloud security.CS309zBig Data AnalyticszLHadoop ecosystem, MapReduce, Spark, NoSQL databases, and data visualization.CS310zProfessional Elective IICS311zOpen Electivez8Course from other departments to broaden knowledge base.CS312zMachine Learning LabzEPractical implementation of machine learning algorithms and projects.z
Semester 7   CS401zInternet of ThingszRIoT architectures, protocols, sensors, actuators, and IoT application development.CS402zProfessional Elective IIICS403zProfessional Elective IVHU401z$Engineering Economics and ManagementzNEconomic analysis, financial management, and project management for engineers.CS404zProject Phase IzlFirst phase of the capstone project involving problem definition, literature review, and preliminary design.z
Semester 8   CS405zProfessional Elective VCS406zProject Phase II   zYFinal phase of the capstone project involving implementation, testing, and documentation.CS407SeminarzGPresentation on emerging technologies and research in computer science.)rB   )semesterr   r]   )rB   r   r]   r^   r   zSoftware Developer/Engineeru$   ₹5,00,000 - ₹15,00,000 per annumzgDesign, develop, and maintain software applications using various programming languages and frameworks.)r6   salary_rangerU   zData Scientist/Analystu$   ₹6,00,000 - ₹18,00,000 per annumzOAnalyze and interpret complex data to help organizations make better decisions.zMachine Learning Engineeru$   ₹8,00,000 - ₹20,00,000 per annumzVDevelop and implement machine learning models and algorithms for various applications.zCloud Computing Specialistu$   ₹7,00,000 - ₹16,00,000 per annumzEDesign, implement, and manage cloud-based systems and infrastructure.zDevOps EngineerzTCombine software development and IT operations to improve the development lifecycle.zCybersecurity Analystu$   ₹7,00,000 - ₹20,00,000 per annumzTProtect computer systems and networks from information disclosure, theft, or damage.zFull Stack Developeru$   ₹6,00,000 - ₹16,00,000 per annumz=Develop both client and server software for web applications.zMobile Application DeveloperzUDesign and develop applications for mobile devices on platforms like Android and iOS.rB   zEntrance ExaminationzDAppear for JEE Main or state-level engineering entrance examination.)r6   rU   orderzCounseling RegistrationzVRegister for the counseling process conducted by the respective examination authority.zChoice FillingzJFill in your college and branch preferences during the counseling process.zSeat Allotmentz=Seats are allotted based on rank, category, and availability.zFee Paymentz;Pay the admission fee as specified in the allotment letter.zDocument VerificationzGSubmit original documents for verification at the allotted institution.zAdmission ConfirmationzLReceive admission confirmation letter and complete the registration process.a3  A limited number of seats are available for direct admission under the management quota. Candidates must have a minimum of 60% aggregate in PCM at 10+2 level. Selection is based on merit and personal interview. Contact the admission office for more details on the direct admission process and fee structure.)rU   is_available	Microsoftz'https://logo.clearbit.com/microsoft.com)r   logo_urlGooglez$https://logo.clearbit.com/google.comAmazonz$https://logo.clearbit.com/amazon.comIBMz!https://logo.clearbit.com/ibm.comInfosysz%https://logo.clearbit.com/infosys.comTCSz!https://logo.clearbit.com/tcs.comWiproz#https://logo.clearbit.com/wipro.com	Accenturez'https://logo.clearbit.com/accenture.comOraclez$https://logo.clearbit.com/oracle.comIntelz#https://logo.clearbit.com/intel.comr   
recruiter_)rB   r   zIndustry-Aligned CurriculumzOur curriculum is regularly updated in consultation with industry experts to ensure it meets the current and future needs of the technology sector.)r6   rU   zExperienced FacultyzwLearn from highly qualified faculty members with academic and industry experience who are dedicated to student success.zState-of-the-Art InfrastructurezjAccess to modern computer labs, high-speed internet, specialized software, and digital learning resources.zIndustry PartnershipszhCollaborations with leading technology companies for internships, projects, and placement opportunities.zResearch OpportunitieszvEngage in cutting-edge research projects under faculty guidance in areas like AI, machine learning, and cybersecurity.zHands-on LearningzdPractical approach to education with emphasis on projects, lab work, and real-world problem-solving.zExcellent Placement RecordzsConsistent placement record with students securing positions in top technology companies with competitive packages.zAICTE ApprovedzBProgram approved by the All India Council for Technical Education.zcheck-circle)r6   rU   iconzIndustry Internshipsz?Mandatory internship program with leading technology companies.	briefcasezModern LabszAWell-equipped laboratories with the latest hardware and software.serverzExpert Facultyz?Highly qualified faculty with industry and research experience.userszPlacement Assistancez=Dedicated placement cell with excellent industry connections.awardzResearch FocuszCOpportunities to participate in research projects and publications.searchzComputer Labz8https://source.unsplash.com/random/800x600/?computer,lab)r6   	image_url	is_bannerzProgramming Classz=https://source.unsplash.com/random/800x600/?programming,classzStudent Projectz;https://source.unsplash.com/random/800x600/?student,projectzCampus Technology Centerz=https://source.unsplash.com/random/800x600/?campus,technologyr   course_r   )rB   r6   r   zRahul SharmazSoftware EngineerzThe B.Tech CSE program provided me with a strong foundation in computer science concepts and practical skills that have been invaluable in my career. The faculty support and industry exposure helped me secure a position at Microsoft.z6https://source.unsplash.com/random/300x300/?indian,man)r   positioncompanyr#   	photo_urlzPriya PatelzData ScientistzI am grateful for the comprehensive curriculum that covered both traditional computer science and emerging technologies like AI and machine learning. The project-based learning approach prepared me well for real-world challenges.z8https://source.unsplash.com/random/300x300/?indian,womanz
Amit KumarzThe emphasis on practical learning and industry projects gave me an edge during placements. The programming skills and problem-solving abilities I developed during the program have been crucial for my success as a developer.z<https://source.unsplash.com/random/300x300/?indian,developerr   testimonial_r   r   r#   )rB   r   r   r   r#   z+Successfully seeded B.Tech. CSE course datar3   )%r$   r%   r&   SUCCESSr   makedirsr    joinr   
MEDIA_ROOTr   objectsupdate_or_createbanner_imagesaver6   r   r	   r
   filterdeletecreater   r   r   r   r   r   r   r   logor   r   r   imager   photo)%r2   argsoptionsr5   course_datar   rB   createdeligibility_datarK   _fee_detailsdetailsemesters_datar   semester_datasubject_datacareer_prospectsprospectadmission_stepsstep
recruitersrecruiter_datar   	recruiterwhy_joinitem
highlights	highlightcourse_images
image_datar   course_imagetestimonialstestimonial_datar   testimonialr3   r1   r4   handle   s  	

				,++++++%    >
	,
'
,  
"
  zCommand.handleN)__name__
__module____qualname__helpr   r3   r3   r3   r4   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   r3   r3   r3   r4   <module>   s    D