Skip to content

Instantly share code, notes, and snippets.

@chhantyal
Last active August 25, 2016 20:11
Show Gist options
  • Save chhantyal/f28bb58161dd7bceffc44d50ff38eb9f to your computer and use it in GitHub Desktop.
Save chhantyal/f28bb58161dd7bceffc44d50ff38eb9f to your computer and use it in GitHub Desktop.
Script to run Django development server.
#!/bin/bash
# script to run development server
# Instead of typing `python manage.py runserver` all the time
# just use ./runserver.sh
# you might need to do: chmod +x runserver.sh
DJANGO_SETTINGS_MODULE=project.settings.local venv/bin/python manage.py runserver 0.0.0.0:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment