Skip to main content

Application to make Django file fields save their values between page reloads

Project description

An application that solves a problem, when you need to save form’s file field values between page reloads (including form validation errors).

Currently in development.


Install an application:

pip install django-sticky-files

Then add sticky_files to INSTALLED_APPS.

Include urls:

url(r'^sticky-images/', include('sticky_files.urls', namespace='sticky_files')),


There are four model fields that implement sticky files behaviour:

from django.db import models
from sticky_files import fields
from sticky_files.models import FileBase

class SomeImage(FileBase):

class SomeFile(FileBase):

class SomeModel(models.Model):
    main_image = fields.StickyImageField(
    images = fields.ManyStickyImageField(
    file = fields.StickyFileField(
    files = fields.ManyStickyFileField(

It looks like this:

Project is in development, so there are no documentation and tests yet.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-sticky-files, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size django-sticky-files-0.3.2.tar.gz (1.0 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page