Neil C. Obremski
  • About
  • Blog
  • Music
    • Moo
    • Necros
    • colbie
    • TravelEra
  • CPP
    • Multi Dimension Arrays and Pointer Pointers
    • Structures
  • Tech
    • ASP
    • Apache2 SSL Windows
    • Celery
    • Chromebook
    • Django
    • FFMPEG
    • IIS
    • JS >
      • Save Binary File to Disk in JavaScript
      • Simple JavaScript/AJAX Optimizations
    • Kindle Self-Publishing
    • Linux Shell
    • Mac OS X
    • QB
    • Pyodbc
    • SQL
    • Subversion for VSS Users
    • VSS
    • WinHttp
    • WSH
  • Games
    • Daggerfall
    • Minecraft
    • Thief >
      • Install Thief on 2000/XP
      • Run Thief without CD
      • Fix Thief Freeze
+1 (206) 795-1327

Neil's Django Stuff

Last Updated February 2014

Error: That port is already in use.

Error: That port is already in use.
If you're on Mac OS X using the Django Development Server and you get this error, then what you need to do is kill the rogue Python process. Open Activity Monitor, find Python, and click the Quit button in the upper-left. I always Force Quit and it's fine.
Find
Force Quite Python on Mac OS X

django.core.exceptions.ImproperlyConfigured

"Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."

I get this error all the time because I try loading my Django modules from a vanilla Python prompt instead of running python manage.py shell .

References

Submit
Proudly powered by Weebly