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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:18:55+00:00 2026-05-22T16:18:55+00:00

I wanted to start getting into developing with Django, however, I am unable to

  • 0

I wanted to start getting into developing with Django, however, I am unable to figure out how to make it work. I have installed apache2, I have tried many tutorials on configuring apache to run Django, but I just do not understand how it all works together. Can someone give me a dummies guide on how to install it, how things work, and why?

  • 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-22T16:18:56+00:00Added an answer on May 22, 2026 at 4:18 pm

    The best way to link between Django and Apache is using WSGI. You will need to install the mod_wsgi apache module to do this.

    Next step: modify the apache configuration file to designate where you want the root of your django website.

     WSGIScriptAlias / /path/to/mysite/apache/myApp.wsgi
    

    Next, you should create the wsgi file. This is what initializes your django application. An example wsgi file looks like this

    import sys                                                       
    import os
                                                                                                sys.path.insert(0,os.path.normpath(os.path.dirname(os.path.abspath(__file__))))   
    
    sys.path.insert(0,'/path/to/directory/containing/application')        
    
    import django.core.handlers.wsgi 
    
    os.environ['DJANGO_SETTINGS_MODULE'] = 'twitmycity.settings'  
    
    application = django.core.handlers.wsgi.WSGIHandler()
    

    Once you have this, restart apache

    sudo /etc/init.d/apache2 restart
    

    Now, point your browser to the root directory where you established the wsgi handler. This should bring you to the root to your django application. I hope this helps!

    Also note, when you make a change to your application, you need to refresh the modified time on the wsgi file to prevent wsgi from just using a cache version of the django application. To do this, execute

    touch myApp.wsgi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting ready to start my first app, and I wanted to grab some
I'm trying to get into Android app developing. My first problem is actually getting
If you wanted to start a 'website' that could be accessible from multiple 'endpoints'.
For quite a long time I've wanted to start a pet project that will
I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my
I am trying to use Swing Timer and I wanted to start from a
Wanted to convert <br/> <br/> <br/> <br/> <br/> into <br/>
I have the following start of an XSD: <?xml version=1.0 encoding=UTF-8?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns:no=http://www.sychophants.com>
Say I wanted to define a function start and a function stop, and I
I am getting pretty frustrated, i have an tcp server running on my mac

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.