0% found this document useful (0 votes)
6 views

SBLC 2 Asmita

Prac

Uploaded by

Raj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
6 views

SBLC 2 Asmita

Prac

Uploaded by

Raj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Date: DATTA MEGHE COLLEGE OF ENGINEERING page no.: ddssignment 2 Django —is—hi - ny -foamextork thet | -neourages rap pment and Clean, pragmatic design. it’s designed! _to_bet p_cdevelopeds build «web apph canons quickly, With o focus __|| =r simplices the prncess of building web —___ | applicanbns by providing Several to als and librawies to help develapess__Create cure ,Scatable and. maintainable websites . Tt arms _to__reckuce. repebinn of _softenare patterns and__paomake_rapid || development and__clean., pra gmat design... Key featurer_cf Django_are: | 4 ~ Object. Relandnship _Mappmg (orm) 2, Admin__tnterface = S$... _URL__CRewting 4._“Template _fagine St. Form Handling a 6. Authentication § Authesization 4. Security fearures s 2. _Taternarbnoalizanien _§ _locatzaton__ reas fat oe _ _Nyanges___Camprehensive set of - feattiver and tee focus On Simplicity» Flexibility and Scatabillitty —have_made_it_a—_poputar choice fox__buiidy ng |_a wide “range __c& _web_app Counbas fam smo | personal _Wwelsiies _te _lavge -scate eniewrigea ~ |-opplicahons = DATTA MEGHE COLLEGE OF ENGINEERING Wwe / - _ Date: __ What is. virtual environment 9 ———— A_vatwal_ environment is a_self + contamed 4 dnectory that contams. a python installatinn os tar as additonal packages and dependencies isolated fromthe __dystem= wide Python installahon..NVirteal environment are ured to __ | create an environment with specific __verstons_ of python and_ packages Yequired for a avhicelar _ praje ct, without affechhg other Projects ov ___ Systems _ Python ihsballathon , [Wittak environment ave useful fer managing @ project _dependencior and ensupng that _ cl Fferend projets cam be use hifferen ts: _ versions cf packages eaithout con fti'c#s They -cso__heip mamtan a clean and _@nsistent 1clevelopment environment, especialy when _ Working — on__multipie projects earth olifferent —) requirements... : - j Shy do _u_use django} mentinn reasons of fs —|-wide scale we ———— = Django is a power fol 4 versatie -Wweb__frometw-~— oe Ehok simpli eres the demelapment of‘ wela © Opplicambns . Tt is used to create Sppiicanbns 1 voxfely of _domats , = eoivin__examples . Remsons fut _\45__wide-seate use Meludea: —| 4. Rapid development —|-2. Scatability = aan 3+ Security = _ 4. Community & @Cosystem |S» Mersasitity |§. Docuimentatton. DATTA MEGHE COLLEGE OF ENGINEERING ageno:—___— Date: @xamples—of websites built with Django taetude-— «to. fanaa’ Dintereat Eventbrite . dlow to Start aa _vértuot environment. _creabinn of vital envionment jis dane by execubing the command venv: Python_=na _ env. Myveny. To_acKvate__vittval _envivonment: # On windows — Fee pee aE _magOs /Linv jo A ive acer: mnyeny 1 bin fonvoe Fie | S| Pip insta —_pjango start_vivtual enviroment. > || step 4d: Instat vivtuat envy = — z command pip install _victvaleav a Pip rep 2: Create a _wivtua Coe ee || Command: vittoalenv. my fayj eck. ! Step 3. Actwate the virtual environment |-Commands: Source _mypagjeck Kep Ws Tastart Django and other clependencies ___ Command pip inet pip__inckett package namo Lo | gourd dhe Command: django = admin | Start moje ce mysite / Ox: | 6. Access | tow to Start Q Command ine nike, Creates: manage. py mysite / —-init__.p. secongs.py Osis. py OSGi. py Wsgi- PY Ore__ next Steps ~ Configure settings py . 2. Register __medels Mro _divectasy to. Store. your code , then Stork Frgject vere ble 3 Mmysite. i 4 Starting projeu uaith admin. py from ange.contib impart admin from .models Your madel admin. site. register Clourmoedel ) 3. Create a_Supemuses || command + python —_ | 4. Ruan MIgTanbos u Crearesuper yer Python Manage. Pry make migrahbns Stare Python manage. Py dhe develapment Semen: python manage. py ahe_odmin_ mterface migrate. wnserven http.// localhost: 2000 /admm/ 4. Customize dhe admin mex face Coptmast DATTA MEGHE COLLEGE OF ENGINEERING race o.: Date : | genexote —Content_.____— A uals + URLs _map URL paths _to_view_in—_Qjange-r detining the _ structure of web application ———~ iii) Views, Views — ave_python—-funckions—_ar _classes ——__— thar receive web requests_and —retuto_web————— ne responses * ~ Se _||iv) Models. Models defne_the__shucture oft _database— tables wn Django, asing— python —_¢cloass.. vJ Database. Django —supparts— _vaypus —_dlatabases—_—— through its ORM aligwoing _Yev_to__fnterect—seith— database__using- nigh-level__Py than_-abjects. _vi} ey assignment —_Tn_database :_ In _Django,—__— _ primary _Keys are typicatly assigned —aitomoticatty | toy database _ using an autky = inevemen tg —_§£— _inkeges field. to] Hove te ‘ron dhe site 9 —_— >! python manage .py—arens 1 @n — —__]|__ django = cxcmia rors ened 90 © DATTA MEGHE COLLEGE OF ENGINEERING roost. Date : | How to Susitch tne webpage —* Joux views? itch: the webpage “mn —_your—viee | eee cuieferein tt ally define _-cEE ent vieros “URLs ia yours tuys. “py: are tone te nplabh tat funchd0 e the odmmistrotiba —__ wntexface Super uses have -foll access _@ — -KO___att objects and _actians 1 -adatin____ | miter face =

You might also like