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

  • SEARCH
  • Home
  • 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 8542231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:00:52+00:00 2026-06-11T12:00:52+00:00

I made and successfully ran Django project in Windows, but after copying it to

  • 0

I made and successfully ran Django project in Windows, but after copying it to Linux and executing command “python manage.py runserver” following error occured:

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    os.environ.setdefault("DJANGO_SETTINGS_MODULE")
  File "/home/blizzard/webapps/django_1_3/moz455/env0/lib/python2.6/UserDict.py", line 63, in setdefault
    self[key] = failobj
  File "/home/blizzard/webapps/django_1_3/moz455/env0/lib/python2.6/os.py", line 472, in __setitem__
    putenv(key, item)
TypeError: putenv() argument 2 must be string, not None

Right values for key and item are “DJANGO_SETTINGS_MODULE” and “settings”.
How to avoid this error?

  • 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-06-11T12:00:53+00:00Added an answer on June 11, 2026 at 12:00 pm

    Answer is so simple that this question should not be asked 🙂 But maybe it save somebody several minutes.
    For Linux correct command is

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'my_project_name.settings')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've successfully made the links clickable but how do i make them revert back
I've successfully made JQuery work with Master Pages, but not JQuery UI.My header in
I have successfully made an application but whenever I try installing it in the
I have successfully made an app that sends a request from my Windows Phone
I'm using Pex and Moles 0.94.51023.0 with VS2010 SP1. I have successfully made some
i have made my custom Static Library (.a) successfully. i have tested it in
I made a dll in c# but i need to export the functions. Is
I've successfully made several Visual Studio debugger visualizers, and they're working very well, except
I have successfully made contact with the internet and parsed a few documents via
I'm still new to PHP/Javascript.I've made a simple Clock program in Javascript successfully. Now

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.