SlideShare ist ein Scribd-Unternehmen logo
1 von 28
25-08-2014
Talentica Software
Heard of MVC ?...
• Models
• Views
• Controllers
8/25/2014 Talentica Software
DJANGO ARCHITECTURE
Django instead uses a similar MTV pattern .
Models
Templates
Views
But this is just naming convention and is pretty much
the MVC pattern.
8/25/2014 Talentica Software
8/25/2014 Talentica Software
DJANGO PROJECT STRUCTURE
django-admin.py startproject helloworld
helloworld/manage.py
helloworld/__init__.py
settings.py
urls.py
wsgi.py
• python manage.py startapp polls
polls/ __init__.py
admin.py
models.py
tests.py
views.py
8/25/2014 Talentica Software
3 options …
Virtual Machine
Web Sites
Cloud Services
25-08-2014 Talentica Software
Virtual Machine
We can deploy the django app in any VM .
We will create a Ubuntu(Linux) vm and deploy django
app there .
25-08-2014 Talentica Software
Creating and setup the Linux VM on Windows Azure (from gallery)
25-08-2014 Talentica Software
25-08-2014 Talentica Software
25-08-2014 Talentica Software
Once it is ready, click to open the VM management, and go to Endpoints. Click Add Enpoints in the command bar at
the bottom, and open the port 80 for your VM
25-08-2014 Talentica Software
SSH using Putty
Download putty if you haven’t. Open Putty and connect to your Linux VM using your VM url, and SSH port.
25-08-2014 Talentica Software
Once you are login, enter the following commands to install Python, Django and Apache server.
The Python Package Index is a repository of software for the Python programming language
sudo apt-get install python-setuptools
sudo easy_install django
sudo apt-get install apache2 libapache2-mod-wsgi
Nano views.py
Nano urls.py
25-08-2014 Talentica Software
Now open up your apache default config file using nano
sudo nano /etc/apache2/httpd.conf
Insert these the two lines to the top of the file
WSGIScriptAlias / /home/azureuser/back-end/trainerplus/wsgi.py
WSGIPythonPath /home/azureuser/back-end
<Directory /home/azureuser/back-end/trainerplus>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
sudo apachectl restart
25-08-2014 Talentica Software
Azure Websites
To publish Websites and Cloud Services , we need
Python Tools 2.0 for Visual Studio
Python 2.7 (32-bit)
Visual Studio and Windows Azure SDK:
VS 2010 Pro or higher with Windows Azure SDK 2.1
VS 2012 Pro or higher with Windows Azure SDK 2.1, 2.2 or later
VS 2013 Pro or higher with Windows Azure SDK 2.2 or later
25-08-2014 Talentica Software
Creating a Project
25-08-2014 Talentica Software
Creating a Virtual Environment
Talentica Software
Azure Websites
Download the publishing profile .
25-08-2014 Talentica Software
In Visual Studio, right-click on the project node and select Publish.
Import the web site publish profile file you downloaded previously.
Accept the defaults and click Publish to initiate the publishing.
When publishing has completed, a web browser will open to the published web site.
25-08-2014 Talentica Software
25-08-2014 Talentica Software
Azure Cloud Service
Right-click on the project node and select Add Windows Azure Cloud Service
Project or Convert →Convert to Windows Azure Cloud Service Project (you'll see one or the other,
depending on your version of Visual Studio). This will add a new project to the solution, with the
.Azure suffix. This new project is marked as the startup project in the solution
25-08-2014 Talentica Software
25-08-2014 Talentica Software
25-08-2014 Talentica Software
25-08-2014 Talentica Software
25-08-2014 Talentica Software
What to choose???
Windows Azure Web Sites are ideal for… Windows Azure Web Roles are ideal
for...
Windows Azure Virtual Machines
are ideal for...
Modern Web Apps
Applications that consist of client-side
markup and scripting and/or server-side
scripting and a database. You can scale out
or up as needed.
Also the web tier of multi-tier applications.
Multi-tier Applications
Applications that are composed
of multiple tiers, each of which can be
scaled independently (i.e. asynchronous
background processing, like order
processing) using both Web and Worker
Roles.
Note: Web Sites can also be used for the
web tier.
Server Applications
Existing applications that leverage
SQL Server, MySQL, MongoDB,
Sharepoint Server, etc.
Continuous Development
Deploy directly from your source code
repository using Git or Team Foundation
Service.
Apps that require advanced
administration
Applications that require admin access,
remote desktop access, or running code
with elevated privileges.
Existing line-of-business apps
Choose an image from the gallery or
upload your own VHD.
Popular Open Source Apps
Launch a site with a few clicks using apps
like WordPress, Joomla!, and Drupal.
Apps that require advanced
networking
Applications that require network
isolation with Windows Azure
Connect or Windows Azure Virtual
Network.
Windows or Linux
Support for Windows Server and
community/commercial versions of
Linux. Connect VMs with Cloud
Services to take advantage of PaaS
services.
Talentica Software
(Web Sites vs Web Roles) Feature breakdown…
Feature Web Sites Web Roles
Access to services like Caching, Service Bus, Storage,
SQL Azure Database Yes Yes
Support for ASP.NET, classic ASP, Node.js, PHP Yes Yes
Shared content and configuration Yes No
Deploy code with GIT, FTP Yes No
Near-instant deployment Yes No
Integrated MySQL-as-a-service support Yes Yes*
Multiple deployment environments (production and
staging) No Yes
Network isolation No Yes
Remote desktop access to servers No Yes
Ability to run programs with elevated permissions No Yes
Ability to define/execute start-up tasks No Yes
Ability to use unsupported frameworks or libraries No Yes
Support for Windows Azure Connect/ Windows Azure
Network No Yes
Talentica Software
References
Django Web Site/Cloud Service Tutorial
Running Django on Linux VM
25-08-2014 Talentica Software

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to DevSecOps on AWS
Introduction to DevSecOps on AWSIntroduction to DevSecOps on AWS
Introduction to DevSecOps on AWSAmazon Web Services
 
Internship Presentation 2 Web Developer
Internship Presentation 2 Web DeveloperInternship Presentation 2 Web Developer
Internship Presentation 2 Web DeveloperHemant Sarthak
 
Azure DDoS Protection Standard
Azure DDoS Protection StandardAzure DDoS Protection Standard
Azure DDoS Protection Standardarnaudlh
 
Cross Origin Resource Sharing
Cross Origin Resource SharingCross Origin Resource Sharing
Cross Origin Resource SharingLuke Weerasooriya
 
Web application development with Django framework
Web application development with Django frameworkWeb application development with Django framework
Web application development with Django frameworkflapiello
 
React Native for React Developers v.2.0.pdf
React Native for React Developers v.2.0.pdfReact Native for React Developers v.2.0.pdf
React Native for React Developers v.2.0.pdfNikolaGorgiev
 
Top frontend web development tools
Top frontend web development toolsTop frontend web development tools
Top frontend web development toolsBenji Harrison
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework tola99
 
Deployment Strategies Powerpoint Presentation Slides
Deployment Strategies Powerpoint Presentation SlidesDeployment Strategies Powerpoint Presentation Slides
Deployment Strategies Powerpoint Presentation SlidesSlideTeam
 
OReilly-Web-Application-Security-NGINX.pdf
OReilly-Web-Application-Security-NGINX.pdfOReilly-Web-Application-Security-NGINX.pdf
OReilly-Web-Application-Security-NGINX.pdfRazaMehmood7
 
Monitor Azure HDInsight with Azure Log Analytics
Monitor Azure HDInsight with Azure Log AnalyticsMonitor Azure HDInsight with Azure Log Analytics
Monitor Azure HDInsight with Azure Log AnalyticsAshish Thapliyal
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS Ganesh Kondal
 
Nitin resume dev_ops
Nitin resume dev_opsNitin resume dev_ops
Nitin resume dev_opsNitin Kolla
 
Bridging the Security Testing Gap in Your CI/CD Pipeline
Bridging the Security Testing Gap in Your CI/CD PipelineBridging the Security Testing Gap in Your CI/CD Pipeline
Bridging the Security Testing Gap in Your CI/CD PipelineDevOps.com
 

Was ist angesagt? (20)

Introduction to DevSecOps on AWS
Introduction to DevSecOps on AWSIntroduction to DevSecOps on AWS
Introduction to DevSecOps on AWS
 
Internship Presentation 2 Web Developer
Internship Presentation 2 Web DeveloperInternship Presentation 2 Web Developer
Internship Presentation 2 Web Developer
 
Azure DDoS Protection Standard
Azure DDoS Protection StandardAzure DDoS Protection Standard
Azure DDoS Protection Standard
 
Cross Origin Resource Sharing
Cross Origin Resource SharingCross Origin Resource Sharing
Cross Origin Resource Sharing
 
SecDevOps
SecDevOpsSecDevOps
SecDevOps
 
Web application development with Django framework
Web application development with Django frameworkWeb application development with Django framework
Web application development with Django framework
 
React Native for React Developers v.2.0.pdf
React Native for React Developers v.2.0.pdfReact Native for React Developers v.2.0.pdf
React Native for React Developers v.2.0.pdf
 
Spring boot
Spring bootSpring boot
Spring boot
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Top frontend web development tools
Top frontend web development toolsTop frontend web development tools
Top frontend web development tools
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Deployment Strategies Powerpoint Presentation Slides
Deployment Strategies Powerpoint Presentation SlidesDeployment Strategies Powerpoint Presentation Slides
Deployment Strategies Powerpoint Presentation Slides
 
OReilly-Web-Application-Security-NGINX.pdf
OReilly-Web-Application-Security-NGINX.pdfOReilly-Web-Application-Security-NGINX.pdf
OReilly-Web-Application-Security-NGINX.pdf
 
Monitor Azure HDInsight with Azure Log Analytics
Monitor Azure HDInsight with Azure Log AnalyticsMonitor Azure HDInsight with Azure Log Analytics
Monitor Azure HDInsight with Azure Log Analytics
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS
 
Spring Boot Tutorial
Spring Boot TutorialSpring Boot Tutorial
Spring Boot Tutorial
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Nitin resume dev_ops
Nitin resume dev_opsNitin resume dev_ops
Nitin resume dev_ops
 
Spring Web MVC
Spring Web MVCSpring Web MVC
Spring Web MVC
 
Bridging the Security Testing Gap in Your CI/CD Pipeline
Bridging the Security Testing Gap in Your CI/CD PipelineBridging the Security Testing Gap in Your CI/CD Pipeline
Bridging the Security Testing Gap in Your CI/CD Pipeline
 

Andere mochten auch

Developing Python Apps on Windows Azure
Developing Python Apps on Windows AzureDeveloping Python Apps on Windows Azure
Developing Python Apps on Windows Azurepycontw
 
Web development with django - Basics Presentation
Web development with django - Basics PresentationWeb development with django - Basics Presentation
Web development with django - Basics PresentationShrinath Shenoy
 
Sharing is the new lead gen - Talk at Web 2.0 expo
Sharing is the new lead gen - Talk at Web 2.0 expoSharing is the new lead gen - Talk at Web 2.0 expo
Sharing is the new lead gen - Talk at Web 2.0 expoRashmi Sinha
 
Presentation for Cardiff University Library staff
Presentation for Cardiff University Library staffPresentation for Cardiff University Library staff
Presentation for Cardiff University Library staffkratec
 
Interview exercise
Interview exerciseInterview exercise
Interview exerciseworkventures
 
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会Yusuke Suzuki
 
Interview Ilb Life Style Dordrecht Dec2011
Interview Ilb Life Style Dordrecht Dec2011Interview Ilb Life Style Dordrecht Dec2011
Interview Ilb Life Style Dordrecht Dec2011Leanne_Eline
 

Andere mochten auch (11)

Developing Python Apps on Windows Azure
Developing Python Apps on Windows AzureDeveloping Python Apps on Windows Azure
Developing Python Apps on Windows Azure
 
Web development with django - Basics Presentation
Web development with django - Basics PresentationWeb development with django - Basics Presentation
Web development with django - Basics Presentation
 
Sharing is the new lead gen - Talk at Web 2.0 expo
Sharing is the new lead gen - Talk at Web 2.0 expoSharing is the new lead gen - Talk at Web 2.0 expo
Sharing is the new lead gen - Talk at Web 2.0 expo
 
Top 10 SUVs
Top 10 SUVsTop 10 SUVs
Top 10 SUVs
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
 
Presentation for Cardiff University Library staff
Presentation for Cardiff University Library staffPresentation for Cardiff University Library staff
Presentation for Cardiff University Library staff
 
Interview exercise
Interview exerciseInterview exercise
Interview exercise
 
Zaragoza turismo 200
Zaragoza turismo 200Zaragoza turismo 200
Zaragoza turismo 200
 
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会
ITサービス運営におけるアーキテクチャ設計 - 要求開発アライアンス 4月定例会
 
Judit Jorba
Judit JorbaJudit Jorba
Judit Jorba
 
Interview Ilb Life Style Dordrecht Dec2011
Interview Ilb Life Style Dordrecht Dec2011Interview Ilb Life Style Dordrecht Dec2011
Interview Ilb Life Style Dordrecht Dec2011
 

Ähnlich wie Django app deployment in Azure By Saurabh Agarwal

Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...
Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...
Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...Peter Concha
 
Light-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationLight-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationBoulos Dib
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hourConvert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hourBrian Culver
 
Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)Tuan Yang
 
The Windows Azure Platform (MSDN Events Series)
The Windows Azure Platform (MSDN Events Series)The Windows Azure Platform (MSDN Events Series)
The Windows Azure Platform (MSDN Events Series)Dave Bost
 
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...Ajeet Singh Raina
 
Visual Studio 2017 - Montreal Launch Event
Visual Studio 2017  - Montreal Launch EventVisual Studio 2017  - Montreal Launch Event
Visual Studio 2017 - Montreal Launch EventGuy Barrette
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
 
Pivotal Platform - December Release A First Look
Pivotal Platform - December Release A First LookPivotal Platform - December Release A First Look
Pivotal Platform - December Release A First LookVMware Tanzu
 
WebFest 2011 Hosting Applications CR by David Tang
WebFest 2011 Hosting Applications CR by David TangWebFest 2011 Hosting Applications CR by David Tang
WebFest 2011 Hosting Applications CR by David TangSpiffy
 
[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson LinHanLing Shen
 
CVCC - Data Visualization and VisiFire
CVCC - Data Visualization and VisiFireCVCC - Data Visualization and VisiFire
CVCC - Data Visualization and VisiFireryanaoliveira
 
Jak nie zwariować z architekturą Serverless?
Jak nie zwariować z architekturą Serverless?Jak nie zwariować z architekturą Serverless?
Jak nie zwariować z architekturą Serverless?The Software House
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
 
Collision 2018: CodeStar for CICD Pipelines
Collision 2018: CodeStar for CICD PipelinesCollision 2018: CodeStar for CICD Pipelines
Collision 2018: CodeStar for CICD PipelinesAmazon Web Services
 

Ähnlich wie Django app deployment in Azure By Saurabh Agarwal (20)

Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...
Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...
Microsoft Azure: Desarrollando en la Nube con PHP y Control de Código Fuente ...
 
Light-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationLight-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch Application
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hourConvert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
 
Lab view web vis
Lab view web visLab view web vis
Lab view web vis
 
Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)
 
The Windows Azure Platform (MSDN Events Series)
The Windows Azure Platform (MSDN Events Series)The Windows Azure Platform (MSDN Events Series)
The Windows Azure Platform (MSDN Events Series)
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
 
Introducción al SharePoint Framework SPFx
Introducción al SharePoint Framework SPFxIntroducción al SharePoint Framework SPFx
Introducción al SharePoint Framework SPFx
 
Visual Studio 2017 - Montreal Launch Event
Visual Studio 2017  - Montreal Launch EventVisual Studio 2017  - Montreal Launch Event
Visual Studio 2017 - Montreal Launch Event
 
Visual studio 2019 launch
Visual studio 2019 launch Visual studio 2019 launch
Visual studio 2019 launch
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
 
Pivotal Platform - December Release A First Look
Pivotal Platform - December Release A First LookPivotal Platform - December Release A First Look
Pivotal Platform - December Release A First Look
 
WebFest 2011 Hosting Applications CR by David Tang
WebFest 2011 Hosting Applications CR by David TangWebFest 2011 Hosting Applications CR by David Tang
WebFest 2011 Hosting Applications CR by David Tang
 
[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin
 
CVCC - Data Visualization and VisiFire
CVCC - Data Visualization and VisiFireCVCC - Data Visualization and VisiFire
CVCC - Data Visualization and VisiFire
 
Jak nie zwariować z architekturą Serverless?
Jak nie zwariować z architekturą Serverless?Jak nie zwariować z architekturą Serverless?
Jak nie zwariować z architekturą Serverless?
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
 
Collision 2018: CodeStar for CICD Pipelines
Collision 2018: CodeStar for CICD PipelinesCollision 2018: CodeStar for CICD Pipelines
Collision 2018: CodeStar for CICD Pipelines
 

Mehr von ratneshsinghparihar

Mehr von ratneshsinghparihar (10)

requirement documentation
requirement documentation requirement documentation
requirement documentation
 
Tech stack portal
Tech stack portalTech stack portal
Tech stack portal
 
Online examination system
Online examination systemOnline examination system
Online examination system
 
Mobile device management presentation
Mobile device management presentationMobile device management presentation
Mobile device management presentation
 
Talentica innovation group Road map
Talentica innovation group Road mapTalentica innovation group Road map
Talentica innovation group Road map
 
Temperature monitoring system
Temperature monitoring systemTemperature monitoring system
Temperature monitoring system
 
Real time survey tool
Real time survey toolReal time survey tool
Real time survey tool
 
Pune microsoft azure developers 2nd meetup
Pune microsoft azure developers 2nd meetupPune microsoft azure developers 2nd meetup
Pune microsoft azure developers 2nd meetup
 
Azure deployment techniques By Arindam
Azure deployment techniques By ArindamAzure deployment techniques By Arindam
Azure deployment techniques By Arindam
 
1st Pune Azure meetup
1st Pune Azure meetup1st Pune Azure meetup
1st Pune Azure meetup
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 

Kürzlich hochgeladen (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Django app deployment in Azure By Saurabh Agarwal

  • 2. Heard of MVC ?... • Models • Views • Controllers 8/25/2014 Talentica Software
  • 3. DJANGO ARCHITECTURE Django instead uses a similar MTV pattern . Models Templates Views But this is just naming convention and is pretty much the MVC pattern. 8/25/2014 Talentica Software
  • 5. DJANGO PROJECT STRUCTURE django-admin.py startproject helloworld helloworld/manage.py helloworld/__init__.py settings.py urls.py wsgi.py • python manage.py startapp polls polls/ __init__.py admin.py models.py tests.py views.py 8/25/2014 Talentica Software
  • 6. 3 options … Virtual Machine Web Sites Cloud Services 25-08-2014 Talentica Software
  • 7. Virtual Machine We can deploy the django app in any VM . We will create a Ubuntu(Linux) vm and deploy django app there . 25-08-2014 Talentica Software
  • 8. Creating and setup the Linux VM on Windows Azure (from gallery) 25-08-2014 Talentica Software
  • 11. Once it is ready, click to open the VM management, and go to Endpoints. Click Add Enpoints in the command bar at the bottom, and open the port 80 for your VM 25-08-2014 Talentica Software
  • 12. SSH using Putty Download putty if you haven’t. Open Putty and connect to your Linux VM using your VM url, and SSH port. 25-08-2014 Talentica Software
  • 13. Once you are login, enter the following commands to install Python, Django and Apache server. The Python Package Index is a repository of software for the Python programming language sudo apt-get install python-setuptools sudo easy_install django sudo apt-get install apache2 libapache2-mod-wsgi Nano views.py Nano urls.py 25-08-2014 Talentica Software
  • 14. Now open up your apache default config file using nano sudo nano /etc/apache2/httpd.conf Insert these the two lines to the top of the file WSGIScriptAlias / /home/azureuser/back-end/trainerplus/wsgi.py WSGIPythonPath /home/azureuser/back-end <Directory /home/azureuser/back-end/trainerplus> <Files wsgi.py> Order deny,allow Allow from all </Files> </Directory> sudo apachectl restart 25-08-2014 Talentica Software
  • 15. Azure Websites To publish Websites and Cloud Services , we need Python Tools 2.0 for Visual Studio Python 2.7 (32-bit) Visual Studio and Windows Azure SDK: VS 2010 Pro or higher with Windows Azure SDK 2.1 VS 2012 Pro or higher with Windows Azure SDK 2.1, 2.2 or later VS 2013 Pro or higher with Windows Azure SDK 2.2 or later 25-08-2014 Talentica Software
  • 16. Creating a Project 25-08-2014 Talentica Software
  • 17. Creating a Virtual Environment Talentica Software
  • 18. Azure Websites Download the publishing profile . 25-08-2014 Talentica Software
  • 19. In Visual Studio, right-click on the project node and select Publish. Import the web site publish profile file you downloaded previously. Accept the defaults and click Publish to initiate the publishing. When publishing has completed, a web browser will open to the published web site. 25-08-2014 Talentica Software
  • 21. Azure Cloud Service Right-click on the project node and select Add Windows Azure Cloud Service Project or Convert →Convert to Windows Azure Cloud Service Project (you'll see one or the other, depending on your version of Visual Studio). This will add a new project to the solution, with the .Azure suffix. This new project is marked as the startup project in the solution 25-08-2014 Talentica Software
  • 26. What to choose??? Windows Azure Web Sites are ideal for… Windows Azure Web Roles are ideal for... Windows Azure Virtual Machines are ideal for... Modern Web Apps Applications that consist of client-side markup and scripting and/or server-side scripting and a database. You can scale out or up as needed. Also the web tier of multi-tier applications. Multi-tier Applications Applications that are composed of multiple tiers, each of which can be scaled independently (i.e. asynchronous background processing, like order processing) using both Web and Worker Roles. Note: Web Sites can also be used for the web tier. Server Applications Existing applications that leverage SQL Server, MySQL, MongoDB, Sharepoint Server, etc. Continuous Development Deploy directly from your source code repository using Git or Team Foundation Service. Apps that require advanced administration Applications that require admin access, remote desktop access, or running code with elevated privileges. Existing line-of-business apps Choose an image from the gallery or upload your own VHD. Popular Open Source Apps Launch a site with a few clicks using apps like WordPress, Joomla!, and Drupal. Apps that require advanced networking Applications that require network isolation with Windows Azure Connect or Windows Azure Virtual Network. Windows or Linux Support for Windows Server and community/commercial versions of Linux. Connect VMs with Cloud Services to take advantage of PaaS services. Talentica Software
  • 27. (Web Sites vs Web Roles) Feature breakdown… Feature Web Sites Web Roles Access to services like Caching, Service Bus, Storage, SQL Azure Database Yes Yes Support for ASP.NET, classic ASP, Node.js, PHP Yes Yes Shared content and configuration Yes No Deploy code with GIT, FTP Yes No Near-instant deployment Yes No Integrated MySQL-as-a-service support Yes Yes* Multiple deployment environments (production and staging) No Yes Network isolation No Yes Remote desktop access to servers No Yes Ability to run programs with elevated permissions No Yes Ability to define/execute start-up tasks No Yes Ability to use unsupported frameworks or libraries No Yes Support for Windows Azure Connect/ Windows Azure Network No Yes Talentica Software
  • 28. References Django Web Site/Cloud Service Tutorial Running Django on Linux VM 25-08-2014 Talentica Software