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

  • Home
  • SEARCH
  • 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 343643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:55:00+00:00 2026-05-12T10:55:00+00:00

I have a website which fetches information from RSS feeds periodically (well, currently manually,

  • 0

I have a website which fetches information from RSS feeds periodically (well, currently manually, and this is my problem). This is currently implemented as a normal Django view, which isn’t very nice in my opinion. I’d like to have a Python program which is run using a cronjob instead of manually visiting the correct URL to update the information.

What is the easiest way to make a Python program have access to my particular Django application and the Django ORM?

  • 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-12T10:55:00+00:00Added an answer on May 12, 2026 at 10:55 am
    from django.core.management import setup_environ
    from django.core.mail import EmailMultiAlternatives, send_mail
    from django.contrib.auth.models import User
    
    import settings
    from my.app.models import *
    
    setup_environ(settings)
    

    This was how I did it for a cron that emailed parties daily updates. The .py lived in the root of my django app, so the import settings would reflect that accordingly.

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

Sidebar

Related Questions

I have a website which includes this RSS JavaScript. When I click feed, it
I have PHP scrapping script which fetches HTML table content from another website. The
I have some website which requires a logon and shows sensitive information. The person
Short Explanation Currently I have a UITableView which contains cells of videos from a
I was working on my website when I cam across this problem, I have
I have a website which is ranked pretty well by search engines, and I
I have a website which is loading jQuery from Google's CDN servers: <script type=text/javascript
I have a function which fetches a certain website's HTML code. Eventually that function
I am developing an ASP.Net website. I have to execute a query which fetches
I'm developing an Android app that fetches a web page from a website which

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.