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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:40:21+00:00 2026-05-13T05:40:21+00:00

I having issues getting Django to work with settings.py at different location I have

  • 0

I having issues getting Django to work with settings.py at different location

I have a folder setting with test.py as copy of settings.py

Folder laid out as

   models.py
   settings.py
   setting/
       test.py

this one works with default location

SetEnv DJANGO_SETTINGS_MODULE myproject.settings

python manage.py syncdb  --settings="myproject.settings"

this does not work when tring to use file in a subdirectory

SetEnv DJANGO_SETTINGS_MODULE myproject.setting.test

python manage.py syncdb  --settings="myproject.setting.test"

Error

Error: Could not import settings 'myproject.setting.test' (Is it on sys.path? 
Does it have syntax errors?): No module named setting.test
  • 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-13T05:40:21+00:00Added an answer on May 13, 2026 at 5:40 am

    I think your setting directory needs an __init__.py file so it is a valid Python package.

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

Sidebar

Related Questions

I am having issues getting this to work, here is what I am trying
I'm having issues getting Rake to work on my machine. This only happens from
Having issues getting links that match a given word to display using Xpath and
I'm having issues getting my databinding working for a ListBox. I suspect it's because
I'm having issues getting a simple server/client socket app working in C# between two
I am attempting to stream a csv file as an attachment download. The CSV
I'm creating a bare bones backbone example to try to learn it and am
I am trying to make a long list of xpath query tests into a
Accept my early apologies as totally new to this so my terminology may not
I'm trying to develop an application and am stuck at this specific part. I

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.