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 6051621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:50:20+00:00 2026-05-23T07:50:20+00:00

To be able to use the idle shell with django i am trying to

  • 0

To be able to use the idle shell with django i am trying to set the DJANGO_SETTINGS_VARIABLE manually.I included the directory where the settings.py resides in the sys.path.and was able to import it.but the following doesn’t seem to work .

  import settings
  from django.core.management import execute_manager
  execute_manager(settings)

I also tried

 settings = imp.find_module('settings')
 execute_manager(settings)

taking clue from manage.py but of no help. what’s going on here , also how can a file be imported as a module , i remember a module needs to have a inti file inside a dir .

  • 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-23T07:50:20+00:00Added an answer on May 23, 2026 at 7:50 am

    You should be using configure()

    from django.conf import settings
    from myapp import myapp_defaults
    
    settings.configure(default_settings=myapp_defaults, DEBUG=True)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use android.server.ProcessStats class to get cpu usage statistics (pcpu, idle
I have an app that needs to be able use either an sqlite3 datebase
I am not able to use the breakpoint in Studio with Javascript. I'm able
I am able to use the NHibernate Criteria API for an IN statement using
Requirements: Must be able to use C strings as well as C++ strings Fast
The init() is able to use the parameter passed to it in this example:
I need to be able to use https to connect to a server and
I want to be able to use mklink to create symbolic links on my
I want to be able to use the iPhones Mail.app inside my application so
I want to be able to use Python to open a .csv file like

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.