- All the linux distributions will have Python installed by default. The version can be verified using the
python
command.
-
Install pip and related packages
sudo apt-get install python-pip
-
Install virtualenvwrapper
#================ 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 |
#### 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 #### |
#### 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 #### |
#### 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 |
adduser appuser
passwd appuser
# Provide the password here
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 |
$ jupyter notebook
New -> Python (root)
from the right-hand top menu. It will open another tab. In the cell, on that new tab, enter the following command : import pandas as pd
shift+enter
to run it. If it runs fine, you are good to go for the workshop.Download and install Python from here
C:\Python27
). If you are providing custom locations, avoid using spacesAdd the below directories to PATH environment variable. For more details, refer here
C:\Python27
)C:\Python27\Scripts
)It should look similar to this
[Existing Paths];C:\Python27;C:\Python27\Scripts;