Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6581151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:06:58+00:00 2026-05-25T16:06:58+00:00

when running $ django-admin.py runserver I get: (in red letters) Error: Settings cannot be

  • 0

when running

$ django-admin.py runserver

I get:
(in red letters)

Error: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.

in previous versions (python 2.5, django 1.2) I never had this problem.
Ive tried setting the setting module manually then it tells me to put it on sys.path. once I set the sys path in bash using the python interpreter I close it and it dissappears from the sys.path? Im using OSX 10.7’s Apache 2.2.19 and python 2.7.1 build right out of the box. Running out of ideas. Help!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:06:59+00:00Added an answer on May 25, 2026 at 4:06 pm

    I actually figured it out. for anyone else that has become as forgetful as I, you have to pass those variable to the shell by adding python to the front of it.

    python manage.py runserver
    

    without the python in front of it the shell doesn’t know where to send it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running Django 1.2.2 and I get the following error when I try
Django-admin is pluralizing a model that I have running as a proxy class. The
I created a pretty basic Django project using django-admin and I'm now running into
I'm running a django installation on lighttpd +FCGI. Everything works fine except the admin.
I'm running Django 1.0 and I'm close to deploying my app. As such, I'll
I am running Django trunk and have template Autoescaping on (default). Do I need
I'm running a django instance behind nginx connected using fcgi (by using the manage.py
I'm running a Django app using FastCGI and lighttpd. Can somebody explain me what
I have a nice and lovely Django site up and running, but have noticed
I have a medium sized Django project, (running on AppEngine if it makes any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.