Category: Python
Run Webserver with current folder as root
December 1, 2022
Different ways to run a webserver using the current directory as root. Useful to serve static files.
Django server on custom Port
April 30, 2009
Running Django server on a custom Port python manage.py runserver 8001
Start a new Django Project
April 27, 2009
Command to start a new Django project… django-admin.py startproject [PROJECT_NAME] cd [PROJECT_NAME] python manage.py startapp [PROJECT_NAME]
Share Current Folder over the Web
May 29, 2008
Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just…
Creating a Toolbar in GTK Python(PyGTK)
October 14, 2007
Creating a toolbar using GTK Python. There is an old method – but this example shows a better method of…
Python Function for Space Units
October 9, 2007
A Python function to return readable size using the given size(KB) # Returns a more readable format of the given…
Get Result of Command using Python in Linux
October 7, 2007
Execute a command and get its results using python in Linux import commands result = commands.getoutput(“ls”)
Recent Comments