Skip to content

PythonPostgreSQLDeveloperCourse/Section10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Web and APIs

Installing Virtualenv

Sublime

Useful for Sublime

Virtualenv

Optional

Speed Bumps

  • Setting up and using virtualenv using virtualenvwrapper-win in conjunction with Sublime can be a bit confusing
  • Not using virtualenvwrapper-win AKA virtualenvwrapper command and windows CMD prompt can lead to undesired results setting up virtualenv for use inside Sublime.
    • Option: Use git bash for running virtualenv commands
    • I found that using Windows CMD prompt and virtualenvwrapper command work best
  • Project setup that works best for me
    • create project directory
    • create requirements.txt in project directory and include psycopg2==2.7.x.x (.x.x = current version) in its contents
    • mkvirtualenv -a S:\Udemy\python-postgresql\section10-python-web-apis\project -r S:\Udemy\python-postgresql\section10-python-web-apis\project\requirements.txt udemy-postgresql-section10
    • After setting up sublime-text-virtualenv, open the package manager * ctrl+shift+,, p, search "Virtualenv: Activate" then select the option udemy-postgresql-section10

Setting Up Twitter

Sentiment Analysis

Sessions

  • Cookies are small bits of information stored in the browser and are a way for memory to persist across pages of a domain
  • Sessions are server-side storage and are accessed by the client via a session id
  • More on sessions and cookies

CSS Styling