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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:29:58+00:00 2026-06-05T03:29:58+00:00

I am setting up our project to integrate with a shipping platform called Endicia

  • 0

I am setting up our project to integrate with a shipping platform called Endicia which has the ability to insert new rows into our database when a package is shipped.

How can I detect from python when a new row has been inserted?

My solution for now would be to query the DB every 30 seconds or so for new rows… is there another solution to send a signal from postgres to python?

  • 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-05T03:30:00+00:00Added an answer on June 5, 2026 at 3:30 am

    You’d set up a custom command that is run by the manage.py file.

    You’d put it in `yourapp/management/commands/’ folder. Make sure to add an init.py file to both the management and commands folder or the command won’t work. Then you create the code for the custom command.

    Then, see this related question about running a shell script when changes are made to a postgres database. The answer there was to use PL/sh. You’ll need to figure that part out on your own, but basically however you do it, the end result is that the script should call something like /path/to/app/manage.py command_name

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

Sidebar

Related Questions

I'm using rvm with rails at work and when I cd into our project
I've been tasked with setting up a continuous integration server for our project and
Currently we are using cron strings for setting Quartz jobs in our project. But
I've been tasked with setting up a wiki for our developers to share project
We have an SQL contacts database that links into all our project information with
Our network team is thinking of setting up a virtual desktop environment (via Windows
We are currently setting up Team Build 2010 for our company, and I am
We are setting up a nginx web server to allow /suburi access in our
We are working on setting up a git environment, and for our workflow, we
Setting up the multi language site I now need to decide which option I

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.