-
Download and install Python from here
- Better to install at the default location(
C:\Python27
). If you are providing custom locations, avoid using spaces
- Better to install at the default location(
-
Add the below directories to PATH environment variable. For more details, refer here
- Python Base directory (Example:
C:\Python27
) - Python Scripts directory (Example:
C:\Python27\Scripts
)
- Python Base directory (Example:
-
It should look similar to this
[Existing Paths];C:\Python27;C:\Python27\Scripts;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Create Movie Add form | |
• movies.html | |
<form action="/movies/" method="post"> {% csrf_token %} | |
Movie Name: <input type="Text" name="name"> <input type="submit" value="Add"> | |
</form> | |
• views.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================ PART - 0 - PRE-REQUISTES ================ | |
# Install Django and Selenium | |
# Create a Django Project and add a package called functional_test | |
#================ PART - 1 - GETTING READY ================ | |
# Step 1: Check if the server is running | |
from selenium import webdriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Step 0: Installtion/Setup #### | |
Microsoft Windows 7 : http://bit.ly/pycon-gswd-windows-setup | |
GNU/Linux Ubuntu : http://bit.ly/pycon-gswd-linux-setup | |
GNU/Linux CentOS : http://bit.ly/pycon-gswd-centos-setup | |
# Once the above setup is done, pull the latest content from the repository | |
git pull | |
#### Step 1: Django Project Creation #### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Step 0: Installtion/Setup #### | |
Microsoft Windows 7 : http://bit.ly/pycon-gswd-windows-setup | |
GNU/Linux Ubuntu : http://bit.ly/pycon-gswd-linux-setup | |
# Once the above setup is done, pull the latest content from the repository | |
git pull | |
#### Step 1: Django Project Creation #### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Step 0: Movie app Creation & Registration #### | |
# Create a demo app | |
python manage.py startapp movie | |
# Create a 'templates' directory under fav/movie/ folder | |
mkdir movie/templates | |
# Registred this app in the INSTALLED_APPS tuple in fav/fav/settings.py |
- Launch a new CentOS (latest version) Image from AWS market place (https://aws.amazon.com/marketplace/pp/B00IOYDTV6)
- Wait for the machine to create and start
- Login with the keys chosen. The default user is root
adduser appuser
passwd appuser
# Provide the password here
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ Part 0 - Prerequistes ############# | |
# Step 1 : Setup your virtual environment | |
# Step 2 : Install the required dependencies | |
$ pip install django | |
$ pip install gunicorn | |
$ pip install PIL (For Windows : easy_install PIL) | |
# Step 3 : Create thin/thin.py |
OlderNewer