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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:48:26+00:00 2026-06-16T02:48:26+00:00

This question has been asked before and answered here , and I understand the

  • 0

This question has been asked before and answered here, and I understand the reasoning as to why I am getting the error, however I am still unclear about the solution from the answer given. What code or changes should I be adding to make it work? Do I need to make changes to

 DATABASES['default'] =  dj_database_url.config()

in my settings? The tutorial isn’t very clear about this. Thanks for any help.

  • 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-16T02:48:27+00:00Added an answer on June 16, 2026 at 2:48 am

    What ended up working eventually was to add:

    import dj_database_url
    DATABASES['default'] =  dj_database_url.config(default='postgres://<user>:<password>@localhost:5432/<name>')
    

    instead of just

    import dj_database_url
    DATABASES['default'] =  dj_database_url.config()
    

    like the tutorial states. Then when trying to run

    python manage.py runserver
    

    I still got the error

    ImportError: DLL load failed: %1 is not a valid Win32 application.
    

    I then was able to figure out that the stickpeople build i needed to use was the 64 bit instead of the 32 bit that the tutorial had me use, and the 64 bit build is:

    easy_install http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.5.win-amd64-py2.7-pg9.1.3-release.exe
    

    I don’t know if it was the best way, but in order to use the 64 bit build I started over from the beginning. Now it finally works. Hopefully this can also be used to help anyone else who is also stuck. There are a lot of holes in the heroku tutorial.

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

Sidebar

Related Questions

This question has been asked before but i still don't understand it fully so
I know this type of question has been asked and answered before but I
I know this question has been asked before however the answers I found where
Edit: While this question has been asked and answered before ( 1 ), (
This question has been asked/answered (mostly) before, BUT I've tried three things to stop
I'm sure this question has been asked and answered before, but my Google-fu is
I'm sorry if this question has been asked before, I've tried googling/looking on here/browsing
So this question has been asked before , but not answered in great detail.
This question has been asked and answered numerous times, but I'm still stumped. All
I know this question has been asked and answered before, but none of 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.