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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:31:52+00:00 2026-05-28T02:31:52+00:00

I’ve been developing in my own django environment for a while now using the

  • 0

I’ve been developing in my own django environment for a while now using the manage.py runserver with no problems, but now that we’ve got a designer and a front-end developer needing to work on the project, I find myself at a loss as to what is the Best Practise for their environments.

I could ask them to setup their own python environment, but that’s asking an awful lot since they’re not Python people and they’re running Windows (my dev and the production environment are both Linux).

So instead, I’ve set them up on a remote server, the disk of which they can mount locally. However in this setup, I’m actually using different instances of manage.py runserver ip:port running in a screen instance. It doesn’t handle things like constant reloads very well (common for our designer) and it hangs from time to time due to the single-threaded nature of the dev server. I’d like to know how to set this up with Apache.

The problem with this of course is the staticfiles. Every time either of the aforementioned parties want to add or change a static file, they’d have to run manage.py collectstatic which just isn’t practical. I just don’t know any other way to do it though. All of the documentation I’ve found for using Apache is for a production environment, so… that’s why I’m here.

  • 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-28T02:31:53+00:00Added an answer on May 28, 2026 at 2:31 am

    The answer to this one was a lot simpler than I thought it would be and I apologise for confusing those who responded. Basically all I wanted was a way to host our designer’s dev environment in something more stable than ./manage.py runserver ip:port in a screen session. I figured that there had to be a way to set something like this up for Apache but had no idea what it was.

    Here’s what I got to work:

    In your settings.py set your STATIC_URL and MEDIA_URL variables to relative URLs. In my case I used /static/ and /media/.

    MEDIA_ROOT = PROJECT_ROOT + "/htdocs/media/"
    MEDIA_URL = "/media/"
    SERVE_STATIC = True
    STATIC_ROOT = PROJECT_ROOT + "/htdocs/public/"
    STATIC_URL = "/static/"
    

    Configure Apache as you would if you didn’t have any static files at all. In other words, ignore the recommendations of the docs to use SetHandler None in a <Locaiton> block.

    <VirtualHost *:80>
    
        WSGIScriptReloading On
        WSGIDaemonProcess someprocessname
        WSGIProcessGroup somegroupname
        WSGIApplicationGroup somegroupname
        WSGIPassAuthorization On
    
        WSGIScriptAlias / /path/to/config.wsgi
    
        ServerName somewhere.awesome.ca
    
        <Location "/">
            Order Allow,Deny
            Allow from all
        </Location>
    
        ErrorLog  /var/log/apache2/somewhere.awesome.ca.err
        CustomLog /var/log/apache2/somewhere.awesome.ca.log combined
    
    </VirtualHost>
    
    • Lastly, you just have to follow the Django howto for serving staticfiles through Python at https://docs.djangoproject.com/en/1.3/howto/static-files/#serving-other-directories

    I hope this helps to point someone in the right direction in the future.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... 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.