SlideShare a Scribd company logo
1 of 59
• This PPT explains three things
1. How to install Django framework on
Windows 8 64 bit OS?
2. How to configure aptana Studio for using
Django framework?
3. How to create a simple sample application
using Django framework in Aptana Studio?
How to install Django
framework on Windows 8 64
bit OS with Aptana?
Haris NP
haris@baabtra.com
www.facebook.com/haris.np
9
twitter.com/np_haris
in.linkedin.com/in/harisnp
Steps
• Install Python 2.7
• Install MySQL for Python (You need to install
the corresponding driver for your DBMS)
• Install Django
• Install Aptana
Step 1: Python installation
• Down load Python from the following link
– http://www.python.org/ftp/python/2.7.5/python2.7.5.msi (Please note that you should not install 64 bit
version of the Python. If you install, you will get an error
that MySQL is not a valid Win32 application). The idea is if
you are using Python and MySQL, then you should use
both Python and MySQL 32 bit. The 32 bit version of
python will run in 64 bit operating system.
– http://python.org/ftp/python/3.3.2/python3.3.2.amd64.msi (If you are using MySQL database, you
can not use python 3.3.2 as there is no MySQL driver
released for Python 3.3.2)
– After installation, add the path of Python to the
environment variables as shown in the screen shot
• Python 2.7 and Python 3.3
• In order to verify that Python is installed
properly, type python in the command
prompt. As we have added to the
environment path, python command should
execute from any folder in the computer
Step 2: MySQL-Python-1.2.3 install
• Download the mysql driver for python from
the following link
http://www.codegood.com/download/10/
File Name : MySQL-python-1.2.3.win32py2.7.exe
Or MySQL-python-1.2.4.win32-py2.7
• Double click on the EXE file
Now you might get this error
• Python version 2.7 required, which was not
found in the registry – Windows 8 64 Bit OS
Reason
• Setup is looking for the Python installation
registry value InstallPath
inHKEY_LOCAL_MACHINESOFTWAREWow64
32NodePythonPythonCore2.7InstallPath.
Notice the Wow6432Node, which is a registry
compatibility layer used for 32-bit apps in
Windows 8 64-bit
What to do?
• Open Run (Window + R)
• Type regedit
• Go to Wow6432Node as shown
• Click Edit  New  Key
• Create Folder Python
• Repeat the same steps by choosing the folder
Python
• Create the folder structure
• Python  PythonCore  2.7 InstallPath
InstallGroup
• Double click on (Default) as shown

• Copy paste the value from the registry
HKLM Software Python PythonCore
2.7  InstallPath
• Double click on InstallGroup
• Change to the value in HKLM Software
Python PythonCore 2.7  InstallPath 
InstallGroup
• In my case it is Python 2.7
• Rerun the MySQL-python-1.2.3.win32-py2.7
• Click next and click Finish
Verification
• Type import MySQLdb
Step 2: Install Django
• Download Django tar file from the following
location
https://www.djangoproject.com/download/1.5.
5/tarball/
• Copy and paste the tar file to C:Python33
(where you have installed your python) as
shown in the attachment
• Extract the files as shown
• Obtain the administrator command prompt
by typing Window + X
Allow the user control to make
changes on the computer
• From the administrator command prompt, Go
to the Django folder
• There will be a setup.py python file as shown
in the screen shot.
• In the command prompt, type the command
python setup.py install
• Press Enter
You can see something like this
Finally
• In order to verify that Django is installed,
please type import django in the python
command line as shown. If there is no error,
you can confirm that it is installed successfully.
• Now python and Django framework are
installed in your machine.
• Now for the IDE, you can install Aptana Studio.
Step3: Install Aptana Studio
• Download latest Aptana studio from
http://www.aptana.com/
• Double click the set up to install Aptana Studio
• It runs as a stand alone application.
Aptana Studio
Setting up Django in Aptana
• Go to Window  Preferences
• Click on Interpreter- Python under PyDev
Click on Auto Config
• It asks for which python folders to select as
shown
Select the options that are already
selected
• Click Ok and you can find
a screen shown
on the side
Click Apply
Click Ok
• Now you are ready to go 
First sample Django project
• Click on File  New  Other
• Select PyDev  PyDev Django Project
Click Next
• Provide the project name and click Next
• Select Django version as 1.4 or later. We had installed 1.5.5 (Refer
the initial slides)
• Database Type : mysql (You can choose your database from the
drop down list)
• Database Host: localhost (you can give the IP address if you are
using a different system)
• Database Name: baabtra (Your database name) If you are using
sqLite, the database will be created automatically. Other databases,
you have to create the database before itself.
• Port number 3306 (Your port number)
• Username : root (Username for connecting to the database)
• Password : ******(Your password for the username above for
connecting to the database)
• Please note that the above information will be stored in the
configuration file for connecting to the database.
• After filling the form 
• Click Finish
• For verification, right click the project root
and Select Run As  PyDev: Django
Another possible error
• The interpreter configured does not exist in the
filesystem: C:Python33python.exe

• In my case the error happened because I had
installed Python 3.3 and when I tried to install
Python-mysql connector, it was available only for
Python 2.6. So I had to remove Python 3.3 and
install 2.6.
• Fix
• Go to Window  Preferences
Click on Auto Config
• Click OK
• Click Apply
• And then Ok.
• After that go to Project root folder Preference
• Click on “Click here to configure an interpreter
not listed”
• Remove Python 3.3 by clicking Remove
• Click Apply
• Click OK
Another Possible Error
• Traceback (most recent call last):
File "C:UsersadminDocumentsAptana Studio 3
WorkspaceBaabtraFirstDjangomanage.py", line 8, in <module>
from django.core.management import
execute_from_command_line
ImportError: No module named django.core.management
Reason
• Django was installed on Python 3.3. Now it
was reinstalled to Python 2.7. So we have to
reinstall the Django framework.
• Follow the same steps as given in Step No.2 of
this PPT
Final Verification
• New  Run As  PyDev: Django
• From the console, copy and paste
http://127.0.0.1:8000/ to a browser
Yes. It worked for you as well.
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.

Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baab
te.com
Baabtra django framework installation and sample project using aptana

More Related Content

What's hot

Sphinx + robot framework = documentation as result of functional testing
Sphinx + robot framework = documentation as result of functional testingSphinx + robot framework = documentation as result of functional testing
Sphinx + robot framework = documentation as result of functional testingplewicki
 
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Sam Becker
 
Code Igniter Code Sniffer
Code Igniter  Code SnifferCode Igniter  Code Sniffer
Code Igniter Code SnifferAlbert Rosa
 
Nagios Conference 2007 | State of the Plugins by Ton Voon
Nagios Conference 2007 | State of the Plugins by Ton VoonNagios Conference 2007 | State of the Plugins by Ton Voon
Nagios Conference 2007 | State of the Plugins by Ton VoonNETWAYS
 
Pharo JS
Pharo JSPharo JS
Pharo JSPharo
 
Test-Driven JavaScript Development (JavaZone 2010)
Test-Driven JavaScript Development (JavaZone 2010)Test-Driven JavaScript Development (JavaZone 2010)
Test-Driven JavaScript Development (JavaZone 2010)Christian Johansen
 
Who’s afraid of WinDbg
Who’s afraid of WinDbgWho’s afraid of WinDbg
Who’s afraid of WinDbgDror Helper
 
RIT 2009 Intellectual Pwnership
RIT 2009 Intellectual PwnershipRIT 2009 Intellectual Pwnership
RIT 2009 Intellectual PwnershipRob Fuller
 
Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1Albert Rosa
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummiesRajesh Rajamani
 
CodeIgniter Ant Scripting
CodeIgniter Ant ScriptingCodeIgniter Ant Scripting
CodeIgniter Ant ScriptingAlbert Rosa
 
Debugging NET Applications With WinDBG
Debugging  NET Applications With WinDBGDebugging  NET Applications With WinDBG
Debugging NET Applications With WinDBGCory Foy
 
Testing Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowTesting Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowPantheon
 

What's hot (18)

Scripting robot
Scripting robotScripting robot
Scripting robot
 
Sphinx + robot framework = documentation as result of functional testing
Sphinx + robot framework = documentation as result of functional testingSphinx + robot framework = documentation as result of functional testing
Sphinx + robot framework = documentation as result of functional testing
 
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8
 
Code Igniter Code Sniffer
Code Igniter  Code SnifferCode Igniter  Code Sniffer
Code Igniter Code Sniffer
 
Nagios Conference 2007 | State of the Plugins by Ton Voon
Nagios Conference 2007 | State of the Plugins by Ton VoonNagios Conference 2007 | State of the Plugins by Ton Voon
Nagios Conference 2007 | State of the Plugins by Ton Voon
 
Pharo JS
Pharo JSPharo JS
Pharo JS
 
JavaScript Unit Testing
JavaScript Unit TestingJavaScript Unit Testing
JavaScript Unit Testing
 
Test-Driven JavaScript Development (JavaZone 2010)
Test-Driven JavaScript Development (JavaZone 2010)Test-Driven JavaScript Development (JavaZone 2010)
Test-Driven JavaScript Development (JavaZone 2010)
 
JavaScript Unit Testing
JavaScript Unit TestingJavaScript Unit Testing
JavaScript Unit Testing
 
Who’s afraid of WinDbg
Who’s afraid of WinDbgWho’s afraid of WinDbg
Who’s afraid of WinDbg
 
RIT 2009 Intellectual Pwnership
RIT 2009 Intellectual PwnershipRIT 2009 Intellectual Pwnership
RIT 2009 Intellectual Pwnership
 
Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
CodeIgniter Ant Scripting
CodeIgniter Ant ScriptingCodeIgniter Ant Scripting
CodeIgniter Ant Scripting
 
Read me
Read meRead me
Read me
 
Debugging NET Applications With WinDBG
Debugging  NET Applications With WinDBGDebugging  NET Applications With WinDBG
Debugging NET Applications With WinDBG
 
Performance testing locust
Performance testing   locustPerformance testing   locust
Performance testing locust
 
Testing Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowTesting Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade Workflow
 

Similar to Baabtra django framework installation and sample project using aptana

Run python from windows taskscheduler
Run python from windows taskschedulerRun python from windows taskscheduler
Run python from windows taskschedulerNorifumi Irie
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python courseEran Shlomo
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?Celine George
 
Introduction to Python.pdf
Introduction to Python.pdfIntroduction to Python.pdf
Introduction to Python.pdfRahul Mogal
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonAll Things Open
 
Run Python on windows
Run Python on windowsRun Python on windows
Run Python on windowsSitthykun LY
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtInexture Solutions
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment HowtoTzu-ping Chung
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdfArpana Awasthi
 
Configure Project in Odoo 16
Configure Project in Odoo 16Configure Project in Odoo 16
Configure Project in Odoo 16Celine George
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingAlessandro Molina
 
Introduction To programming.pptx
Introduction To programming.pptxIntroduction To programming.pptx
Introduction To programming.pptxssuser11011f
 
L2 - Install Python.pptx
L2 - Install Python.pptxL2 - Install Python.pptx
L2 - Install Python.pptxEloAOgardo
 
How to install windows 7
How to install windows 7How to install windows 7
How to install windows 7elboob2025
 

Similar to Baabtra django framework installation and sample project using aptana (20)

Robot Framework
Robot FrameworkRobot Framework
Robot Framework
 
Run python from windows taskscheduler
Run python from windows taskschedulerRun python from windows taskscheduler
Run python from windows taskscheduler
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?
 
Introduction to Python.pdf
Introduction to Python.pdfIntroduction to Python.pdf
Introduction to Python.pdf
 
The New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by PythonThe New York Times: Sustainable Systems, Powered by Python
The New York Times: Sustainable Systems, Powered by Python
 
Run Python on windows
Run Python on windowsRun Python on windows
Run Python on windows
 
Python Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txtPython Requirements File How to Create Python requirements.txt
Python Requirements File How to Create Python requirements.txt
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdf
 
Configure Project in Odoo 16
Configure Project in Odoo 16Configure Project in Odoo 16
Configure Project in Odoo 16
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
 
Interpret tutorial
Interpret tutorialInterpret tutorial
Interpret tutorial
 
Introduction To programming.pptx
Introduction To programming.pptxIntroduction To programming.pptx
Introduction To programming.pptx
 
Python Lecture 0
Python Lecture 0Python Lecture 0
Python Lecture 0
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
 
Counterparty
CounterpartyCounterparty
Counterparty
 
L2 - Install Python.pptx
L2 - Install Python.pptxL2 - Install Python.pptx
L2 - Install Python.pptx
 
How to install windows 7
How to install windows 7How to install windows 7
How to install windows 7
 
django_2.pdf
django_2.pdfdjango_2.pdf
django_2.pdf
 

More from baabtra.com - No. 1 supplier of quality freshers

More from baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Recently uploaded

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

Baabtra django framework installation and sample project using aptana

  • 1.
  • 2. • This PPT explains three things 1. How to install Django framework on Windows 8 64 bit OS? 2. How to configure aptana Studio for using Django framework? 3. How to create a simple sample application using Django framework in Aptana Studio?
  • 3. How to install Django framework on Windows 8 64 bit OS with Aptana? Haris NP haris@baabtra.com www.facebook.com/haris.np 9 twitter.com/np_haris in.linkedin.com/in/harisnp
  • 4. Steps • Install Python 2.7 • Install MySQL for Python (You need to install the corresponding driver for your DBMS) • Install Django • Install Aptana
  • 5. Step 1: Python installation • Down load Python from the following link – http://www.python.org/ftp/python/2.7.5/python2.7.5.msi (Please note that you should not install 64 bit version of the Python. If you install, you will get an error that MySQL is not a valid Win32 application). The idea is if you are using Python and MySQL, then you should use both Python and MySQL 32 bit. The 32 bit version of python will run in 64 bit operating system. – http://python.org/ftp/python/3.3.2/python3.3.2.amd64.msi (If you are using MySQL database, you can not use python 3.3.2 as there is no MySQL driver released for Python 3.3.2) – After installation, add the path of Python to the environment variables as shown in the screen shot
  • 6. • Python 2.7 and Python 3.3
  • 7. • In order to verify that Python is installed properly, type python in the command prompt. As we have added to the environment path, python command should execute from any folder in the computer
  • 8. Step 2: MySQL-Python-1.2.3 install • Download the mysql driver for python from the following link http://www.codegood.com/download/10/ File Name : MySQL-python-1.2.3.win32py2.7.exe Or MySQL-python-1.2.4.win32-py2.7
  • 9. • Double click on the EXE file
  • 10. Now you might get this error • Python version 2.7 required, which was not found in the registry – Windows 8 64 Bit OS
  • 11. Reason • Setup is looking for the Python installation registry value InstallPath inHKEY_LOCAL_MACHINESOFTWAREWow64 32NodePythonPythonCore2.7InstallPath. Notice the Wow6432Node, which is a registry compatibility layer used for 32-bit apps in Windows 8 64-bit
  • 12. What to do? • Open Run (Window + R) • Type regedit
  • 13. • Go to Wow6432Node as shown
  • 14. • Click Edit  New  Key
  • 16. • Repeat the same steps by choosing the folder Python • Create the folder structure • Python  PythonCore  2.7 InstallPath InstallGroup
  • 17. • Double click on (Default) as shown • Copy paste the value from the registry HKLM Software Python PythonCore 2.7  InstallPath
  • 18. • Double click on InstallGroup • Change to the value in HKLM Software Python PythonCore 2.7  InstallPath  InstallGroup • In my case it is Python 2.7
  • 19. • Rerun the MySQL-python-1.2.3.win32-py2.7
  • 20. • Click next and click Finish
  • 22. Step 2: Install Django • Download Django tar file from the following location https://www.djangoproject.com/download/1.5. 5/tarball/ • Copy and paste the tar file to C:Python33 (where you have installed your python) as shown in the attachment
  • 23.
  • 24. • Extract the files as shown
  • 25. • Obtain the administrator command prompt by typing Window + X Allow the user control to make changes on the computer
  • 26. • From the administrator command prompt, Go to the Django folder
  • 27. • There will be a setup.py python file as shown in the screen shot.
  • 28. • In the command prompt, type the command python setup.py install • Press Enter
  • 29. You can see something like this
  • 31. • In order to verify that Django is installed, please type import django in the python command line as shown. If there is no error, you can confirm that it is installed successfully.
  • 32. • Now python and Django framework are installed in your machine. • Now for the IDE, you can install Aptana Studio.
  • 33. Step3: Install Aptana Studio • Download latest Aptana studio from http://www.aptana.com/ • Double click the set up to install Aptana Studio • It runs as a stand alone application.
  • 35. Setting up Django in Aptana • Go to Window  Preferences
  • 36. • Click on Interpreter- Python under PyDev
  • 37. Click on Auto Config • It asks for which python folders to select as shown
  • 38. Select the options that are already selected • Click Ok and you can find a screen shown on the side Click Apply Click Ok
  • 39. • Now you are ready to go 
  • 40. First sample Django project • Click on File  New  Other
  • 41. • Select PyDev  PyDev Django Project
  • 42. Click Next • Provide the project name and click Next
  • 43. • Select Django version as 1.4 or later. We had installed 1.5.5 (Refer the initial slides) • Database Type : mysql (You can choose your database from the drop down list) • Database Host: localhost (you can give the IP address if you are using a different system) • Database Name: baabtra (Your database name) If you are using sqLite, the database will be created automatically. Other databases, you have to create the database before itself. • Port number 3306 (Your port number) • Username : root (Username for connecting to the database) • Password : ******(Your password for the username above for connecting to the database) • Please note that the above information will be stored in the configuration file for connecting to the database.
  • 44. • After filling the form  • Click Finish
  • 45. • For verification, right click the project root and Select Run As  PyDev: Django
  • 46. Another possible error • The interpreter configured does not exist in the filesystem: C:Python33python.exe • In my case the error happened because I had installed Python 3.3 and when I tried to install Python-mysql connector, it was available only for Python 2.6. So I had to remove Python 3.3 and install 2.6.
  • 47. • Fix • Go to Window  Preferences
  • 48. Click on Auto Config • Click OK
  • 49. • Click Apply • And then Ok. • After that go to Project root folder Preference
  • 50.
  • 51. • Click on “Click here to configure an interpreter not listed” • Remove Python 3.3 by clicking Remove
  • 53. Another Possible Error • Traceback (most recent call last): File "C:UsersadminDocumentsAptana Studio 3 WorkspaceBaabtraFirstDjangomanage.py", line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named django.core.management
  • 54. Reason • Django was installed on Python 3.3. Now it was reinstalled to Python 2.7. So we have to reinstall the Django framework. • Follow the same steps as given in Step No.2 of this PPT
  • 55. Final Verification • New  Run As  PyDev: Django
  • 56. • From the console, copy and paste http://127.0.0.1:8000/ to a browser
  • 57. Yes. It worked for you as well.
  • 58. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baab te.com