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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:55:26+00:00 2026-06-01T16:55:26+00:00

I use a Windows machine and have a Django project that I have successfully

  • 0

I use a Windows machine and have a Django project that I have successfully deployed to Heroku, albeit using the development server. To use a production server Heroku seems to require ‘Gunicorn’ which does not run on Windows.

This is not good for testing locally before deploying. Does anyone know of any way to get around this? Perhaps some way to use a different server on Heroku?

  • 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-01T16:55:27+00:00Added an answer on June 1, 2026 at 4:55 pm

    I found a solution that may help when deploying to heroku using a Windows machine. Here is what I do:

    Use the development server locally with:

    python manage.py runserver
    

    Install and add ‘Gunicorn’ to your installed apps in settings.py.

    Add a process file in the root directory that tells heroku to use the Gunicorn server. This is a file called ‘Procfile’ with the following code:

    web: python kalail/manage.py run_gunicorn --bind=0.0.0.0:$PORT
    

    This way you test using the development server, while heroku uses the Gunicorn server. Make sure you set up serving static files(css/js/imgs) after this, because only the development server automatically serves static files, and the Gunicorn server will need to be configured to do so.

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

Sidebar

Related Questions

I have a maven project created with maven-archetype-webapp. As i use on Windows machine,
I have an Apache server installed on my windows machine using XAMPP. Now I'm
I have a server running on my local machine (Windows 7) that listens to
I have two machines I work on: Windows Client (Development Machine) Linux Web Server
Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due
I have a Django project that uses Celery for running asynchronous tasks. I'm doing
I am running Solr on my windows machine using jetty. I have downloaded the
I have a git repository on Unfuddle , and a Windows machine I'm using
I have set up SQL Server 2008 R2 on a Windows Server 2008 machine
I have a new 64-bit Windows machine and use python for various things and

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.