Skip to content

Instantly share code, notes, and snippets.

View ceshm's full-sized avatar
🤖
Greetings fellow humans!

César Hernández Monsrreal ceshm

🤖
Greetings fellow humans!
View GitHub Profile
@ceshm
ceshm / django_cheat_sheet.md
Last active August 4, 2022 20:08
Django cheat sheet

Django Cheat Sheet, etc.

Create the project folder

~ $ mkdir project_name

~ $ cd project_name

Create Python virtual env

# M x N matrix spiriling direction
# Tested on python 2.7.16 and 3.4.4
import sys
if sys.version_info >= (3, 0):
my_input = input # Python 3.x
else:
my_input = raw_input # Python 2.x
@ceshm
ceshm / newpyenv.md
Last active November 19, 2019 21:04
Create python env with virtualenvwrapper and python3 version

Check specific python3 version

$ python3 --version

Python 3.4.0

also for specific python3.x

$ python3.7 --version