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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:34:26+00:00 2026-05-19T05:34:26+00:00

In Python-Django, I’ve got a Model with a FileField member in it. This member

  • 0

In Python-Django, I’ve got a Model with a FileField member in it. This member stores video files.

I’d like to “interfere” with the standard “add model row/object/instance” proecdure of Django, and manipulate each video I’m adding, before actually committing or adding it to database.

The manipulation is to convert the video to a specific uniform format. Thus, all added videos will eventually be stored in the same format (WebM).

How can I do that? I’ve looked into Django’s custom managers, but I don’t think that’s what I’m looking for.

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-05-19T05:34:27+00:00Added an answer on May 19, 2026 at 5:34 am

    I am actually doing this very same thing. You don’t want to process the video file on the same request as it comes in on for several reasons:

    1) You will hang the user on a non-responsive page for a long time, possibly timing them out and wondering if it worked.
    2) And if they go to see if it uploaded – it still hasn’t finished and saved in the DB (non-consistent) they’ll think it is broken.

    You want to initially save the record and file on your server. Mark it as needs-to-be-worked-on. And fire off a celery task that will do that work and update that flag when it is complete. I am actually doing this very same thing with zencoder for a project I am working on right now. It works wonderfully.

    Celery: http://pypi.python.org/pypi/django-celery
    Ghettoq (for local): http://pypi.python.org/pypi/ghettoq

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

Sidebar

Related Questions

I'm using Python/Django, but this is more about the data model and how I
I am working on a web application using Python (Django) and would like to
This particular example relates to Django in Python, but should apply to any language
(Django 1.x, Python 2.6.x) I have models to the tune of: class Animal(models.Model): pass
I am python/django developer. As a part of improving my knowledge and felt like
I've got a Python/Django application which runs quite a lot of SQL statements. For
I've just started Django and Python 50 hours ago ;-) so this might be
My problem is a python/django mix. I have a form model that will display
I'm runnig Python Django on Apache2 with ModWSGI and I would like to run
I'm currently looking at the Python framework Django for future db-based web apps as

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.