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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:01:12+00:00 2026-06-10T13:01:12+00:00

I am running a web app on python2.7 with mod_wsgi/apache. Everything is fine but

  • 0

I am running a web app on python2.7 with mod_wsgi/apache. Everything is fine but I can’t find any .pyc files. Do they not get generated with mod_wsgi?

  • 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-10T13:01:13+00:00Added an answer on June 10, 2026 at 1:01 pm

    By default apache probably doesn’t have any write access to your django app directory which is a good thing security wise.

    Now Python will byte recompile your code once every apache restart then cache it in memory.

    As it is a longlive process it is ok.

    Note: if you really really want to have those pyc, give a write access to your apache user to the source directory.

    Note2: This can create a hell lot of confusion when you start with manage.py a test instance shared by apache as this will create those pyc as root and will keep them if you then run apache despite a source code change.

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

Sidebar

Related Questions

I have a python daemon running as a part of my web app/ How
I'm running a web app in Jboss application server and I'm trying to implement
I'm running a web app on IIS 7.5 and it needs to recycle occasionally
I'm running through my web app and I'm trying to test various parts of
I have a Java web app running on Tomcat 7 that is using JDBC
We have a web app running on Rails, using Devise and OmniAuth for user
I am developing a web app that will have two parts running on two
i'm creating a web app that's running on an Advantage Database server, not my
I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I
I have a PHP app running happily on the following system: web app: PHP

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.