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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:45:51+00:00 2026-06-13T22:45:51+00:00

paster serve has –reload option to auto-restart serving wsgi application when any of Python

  • 0

paster serve has --reload option to auto-restart serving wsgi application when any of Python source files or the CONFIG_FILE changes.
How to make paster initiate auto-restart also when some other file (not Python source file) changes?

UPDATE

watch_file() function suggested by mksh looks like the solution to the problem. However mksh suggested adding its invocation to the application’s entry point which seems to be more invasive than it should. Can I (non-intrusively) extend Paste’s serve command adding new option which would result in invocation of watch_file() with filenames read from the app’s section in CONFIG_FILE?

  • 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-13T22:45:53+00:00Added an answer on June 13, 2026 at 10:45 pm

    See Paster source link

    So, you can watch your non-source files as simple as putting such lines at bottom of your application`s entry points:

    from paste.reloader import watch_file
    
    #
    # logic that puts list of your non-source file names suitable 
    # for open() into iterable non_source_file_list
    #
    
    for non_source_file in non_source_file_list:
        watch_file(non_source_file_name)
    

    In general, try to rely more on source code than documentation when working with such modern and really written in pythonic style frameworks as Paste, their code is mostly well documented and futhermore self-documenting .

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

Sidebar

Related Questions

I'm using Python + ZOPE/ZODB/Repoze BFG (the acronyms all get quite confusing) + paster.
I have an application using a third party package that has a factory that
I am trying to run a program using paster serve , but I keep
I'm running pylons and I did this: paster server development.ini It's running on :5000
Alex Papadimoulis' Smart Paster is a great little tool that can paste text in
For an image file (JPEG) that has been uploaded to the server via a
I need to download a file from a url which has format similar to
One of our clients has logged a very strange issue with us- We launched
I'm migrating data from a legacy database that has many tables with primary keys
I have an open workbook that has a bunch of macros in it, one

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.