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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:43:02+00:00 2026-06-16T04:43:02+00:00

Earlier i had a problem with my pyodbc module, that did not run my

  • 0

Earlier i had a problem with my pyodbc module, that did not run my application on the apache server, running on my windows machine. I found to solve my problem of getting the django project to run on apache using this hint.

But now I am facing a bit of a different problem. The django application runs on apache but throws this error on the page.

ImproperlyConfigured at /auth/login/
settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

Just to be clear, this project runs perfectly when deployed through djangos inbuilt server. This is how my database connection looks like in the settings.py

DATABASES = {
    'default': {
        'ENGINE': 'sql_server.pyodbc',
        'NAME': 'myDbName',
        'USER': 'myusername',    
        'PASSWORD': '',
        'HOST': '',
        'OPTIONS' : {
            'driver': 'SQL Native Client',
            'dsn': 'test',
            'MARS_Connection': True,
        },
    },    
}

UPDATE:

I updated my code according to Django MSSQL Documentation, ran into a few problems and got it to work by updating my pywin32 And again this works on djangos inbuilt server and NOT APACHE giving me the same ImproperlyConfigured error

DATABASES = {
    'default': {
        'NAME': 'myDbName',
        'ENGINE': 'sqlserver_ado',
        'HOST': 'MYHOST',
        'USER': 'myusername',
        'PASSWORD': 'mypassword',
        'OPTIONS' : {
            'provider': 'SQLNCLI11', 
            'use_mars': False,
        },
    }
}

My system – Windows 7, Apache 2.2, python 2.7, django 1.4.2, pyodbc-3.0.6.win32-py2.7

Any hints or tips towards this is highly appriciated, i ahve been trying to get this project up and running for quite some time now.

Thanks alot

  • 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-16T04:43:04+00:00Added an answer on June 16, 2026 at 4:43 am

    The answer to my question might be a bit wierdbut hey this is how i got things to work on my machine.

    The main problem I had was that my DSN was not getting connected with the django project, in the steps I have mentioned below, its the last step that made the whole difference in making it work. Previously I had selected “With integrated Windows authentication” while creating my DSN, but surprisingly it worked when I was running it using djangos inbuilt server.

    • Open the app ODBC Data Source Administrator in Windows 7 (search ODBC from Start Menu).
    • Under System DSN tab, click the Add button.
    • Select SQL Server Native Client 10.0
    • Enter DSN your_dsn_name, description(optional), and the SQL Server to connect , click Next
    • Select option “With SQL Server authentication using a login ID and password entered by the user”.
    • Enter Login ID (‘your_username’) and password (‘your_password’). Click Next, Next and Finish.

    And i changed my database connection back to the original code

    DATABASES = {
        'default': {
            'ENGINE': 'sql_server.pyodbc',
            'NAME': 'MaDaMa_App',
            'USER': 'your_username',
            'PASSWORD': 'your_password',
            'HOST': 'MYHOST',
            'OPTIONS' : {
                'driver': 'SQL Native Client',
                'dsn': 'your_dsn_name',
                'MARS_Connection': True,
            },
        },
     }
    

    Thanks to all who helped me solve this, and hope this is helpfull for someone out there.

    Cheers

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

Sidebar

Related Questions

Earlier I had a problem when an inner anonymous class did not see a
I'm running Emacs 22.3 in Windows. Earlier today I had gdb working within Emacs
This is a question that came from an earlier problem I had . Basically,
I had posted another question earlier about deployment with Passenger. That problem turned out
I had my server working with an earlier version of node.js, npm, and socket.io
I had similar problem few days earlier but now is more complicated. I am
I was facing this problem earlier today, and since I could not find a
I'm having a problem with $.get that I've never had before, and can't seem
Are there any gotchas in JDK 6 which did not exist in earlier versions?
This is somewhat of an updated question from a problem I had earlier. 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.