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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:54:47+00:00 2026-06-09T21:54:47+00:00

When I run django in localhost via runserver I see that .py files are

  • 0

When I run django in localhost via runserver I see that .py files are compiled to .pyc.

When I deploy everything to server using apache and mod_wsgi – should www user has write access to folders with my application? So it will be able to create .pyc

Of course, having write access is not a good idea – if I remove it, will ti slow down app; or compiled python code is cached in memory?

thanks

  • 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-09T21:54:48+00:00Added an answer on June 9, 2026 at 9:54 pm

    .pyc files are only used as bytecode cache between invocations of the interpreter; Python will use them if present but has no problem with recompiling the code instead. So to answer your question, you do not need to give the WSGI application write access to the source location.

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

Sidebar

Related Questions

I'm trying to run a local Django server on Apache with mod_wsgi. I am
I'm trying to run Django 1.3.1 on apache 2.6.6, using mod_wsgi, CentOS 6. I
I have a fabfile.py for my django project that I'm using for auto-deploy. I
When I try and run django, this is what I get: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python manage.py runserver
When I run my django project on apache with mod_wsgi, I receive something like
Under my debian copy, I run a django site runs via apache2 and mod_wsgi.
I wrote a function like def cmd_run(host=localhost, port=8000): Run server at given host port
I am struggling to run unit tests using the Django Client class on the
I am using django-1.2 and python-2.6 and I am using mysql server. After working
What is the best system to run django on, operating system, database, web server

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.