o
    rh}                     @   sL   d dl mZ d dlmZ d dlmZ d dlZd dlmZ G dd deZ	dS )    )BaseCommand)Course)settingsN)Documentc                   @   s   e Zd ZdZdd ZdS )Commandz-Upload About BCOM content to the BCOM course.c                 O   s<  d}t jtjdd}t j|s | j| j	d|  d S t
|}ddd |jD }g d}g d	}d
d| d d| }	|d |	 }
d}d}z	tjj|d}W n  tjyx   tjjd|||ddd}| j| jd Y nw ||_||_|  | j| jd ddlm}m} d}z |jj|d}||_d|_d|_|  | j| jd W n |jy   |jj||ddd | j| jd Y nw z|jj|d}d|_d|_|  | j| jd  W n |jy   |jj|ddd! | j| jd" Y nw | j| jd# d S )$NbcomrawdocumentszAbout BCOM.docxzDOCX file not found: 
c                 S   s   g | ]
}|j  r|j qS  )textstrip).0parar
   r
   B/var/www/apihucms/courses/management/commands/upload_bcom_about.py
<listcomp>   s    z"Command.handle.<locals>.<listcomp>)
AccountantzFinancial AnalystAuditorzTax ConsultantzBanking OfficerzInvestment AnalystzBusiness AnalystzManagement Traineez%Sales Executive/Marketing CoordinatorzHuman Resources AssistantzLogistics CoordinatorzRetail Store Manager TraineezCustomer Service RepresentativezEntrepreneur/Startup Founder)zCA (Chartered Accountant)z!CPA (Certified Public Accountant)z!CFA (Chartered Financial Analyst)z%CMA (Certified Management Accountant)z CIA (Certified Internal Auditor)z!CFP (Certified Financial Planner)z

Career Prospects:
z

Certifications:
z

a  Bachelor of Commerce (B.Com) at Haridwar University is a top-rated undergraduate program in India, covering finance, accounting, business management, and economics. Prepare for careers in banking, auditing, marketing, and more. Admissions open for 2025. Apply now!u4  Enroll in the B.Com program at Haridwar University, Uttarakhand—one of India's best commerce degrees. Our curriculum blends financial accounting, business law, corporate finance, and marketing with hands-on internships and projects. Graduates excel in finance, accounting, marketing, management, and analytics. Career prospects include Accountant, Financial Analyst, Auditor, Tax Consultant, Banking Officer, Investment Analyst, Business Analyst, Management Trainee, Sales Executive, HR Assistant, Logistics Coordinator, Retail Manager, Customer Service, and Entrepreneur. Certifications: CA, CPA, CFA, CMA, CIA, CFP. Eligibility: 12th in any stream with 50% marks. Join a university focused on ethical business, global opportunities, and industry collaboration. Apply for B.Com admissions 2025 at Haridwar University!)slugzBachelor of Commerce (BCOM)z3 YearsCommerce)titler   short_descriptionoverviewdurationcategoryzCourse created.zCourse updated.r   )CourseEligibility	CourseFeezA12th -in any stream with at least 50% marks from recognized board)coursez50%NonezEligibility updated.)r   academic_qualificationminimum_marksentrance_examzEligibility created.z Refer to official fee structure.zFee updated.)r   domesticinternationalzFee created.zAbout BCOM content uploaded.)ospathjoinr   BASE_DIRexistsstdoutwritestyleERRORr   
paragraphsr   objectsgetDoesNotExistcreateSUCCESSr   r   savecourses.modelsr   r   r   r   r    r!   r"   )selfargsoptionscourse_slug	docx_pathdocument
about_textcareer_prospectscertifications
extra_infofull_overview	seo_shortseo_overviewr   r   r   eligibility_texteligibilityfeer
   r
   r   handle
   s   
zCommand.handleN)__name__
__module____qualname__helprD   r
   r
   r
   r   r      s    r   )
django.core.management.baser   r3   r   django.confr   r#   docxr   r   r
   r
   r
   r   <module>   s    