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

Having issues getting django custom commands to work. From django documetation , have placed
Im having issues getting this to work, maybe its not even possible? I have
We are having some issues getting SharePoint to work as we want it to.
At work we're having issues with different people wanting/suggesting different names for a new
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
I'm having issues getting Firefox to update a webpage when its class is changed
I am using Fluent NHibernate and having some issues getting a many to many
I m new to use ankhSVN and having issues. I have created some new
I'm running into performance issues with Django because of m2m relationships. I have a

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.