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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:35:40+00:00 2026-05-23T16:35:40+00:00

I almost finish my django web aplication, but i never using shell for it.

  • 0

I almost finish my django web aplication, but i never using shell for it. It is hard to checking some things by making changes in code, restarting server and reloading page. But I can’t configure django settings environment or something like this.
I do:

export DJANGO_SETTINGS_MODULE=my_project.settings

Then:

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'my_project.settings'

Then I try:

>>> os.environ['DJANGO_SETTINGS_MODULE']
'my_project.settings'

But when I try:

>>> python
>>> import urls

I get:

ImportError: Could not import settings 'my_project.settings' (Is it on sys.path?): No module named mysite.settings

And when I try:

>>> django-admin.py shell

I get:

Error: Could not import settings 'my_project.settings' (Is it on sys.path?): No module named mysite.settings

I am frustrated because of that. The server that I am using have mod_passanger. Does someon know what is the reason of problem? Maybe mod_passanger? Or I am doiung something wrong?

  • 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-23T16:35:41+00:00Added an answer on May 23, 2026 at 4:35 pm

    You shouldn’t need to do any of this. The manage.py script does it all for you, which is why you should always use it (instead of django-admin.py) once you’re inside a project.

    Just do this:

    ./manage.py shell
    

    That’s it.

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

Sidebar

Related Questions

Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
Almost every Java book I read talks about using the interface as a way
Almost every Python web framework has a simple server that runs a wsgi application
I always coded console applications and learned some basic UML/patterns skills, using C++. Now
I almost finish the chapter 3 of Real World Haskell. The last exercise blocks
I came up with a problem right now when my game is almost finish.
This is from my study guide. From my perspective this is almost done but
I'm trying to finish a site for my friends brother, and everything (almost) works
I have been using Asp.Net for designing web applications recently and was wondering if
Almost certainly a stupid question but I can't find the answer anywhere. In the

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.