/django-uploads

Django file uploader app for admin

Primary LanguagePythonMIT LicenseMIT

django-uploads

Python 3 Django 3 Python CI codecov Code style: black
Django file uploader app. Admin users can upload and manage files in a dedicated app.

Installation

Install with pip:

pip install -e git://github.com/briefmnews/django-uploads.git@main#egg=django_uploads

Setup

In order to make django-uploads works, you'll need to follow the steps below.

Settings

First you need to add the following configuration to your settings:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',

    'uploads',
    ...
)

Migrations

Next, you need to run the migrations in order to update your database schema.

python manage.py migrate

Tests

Testing is managed by pytest. Required package for testing can be installed with:

make install

To run testing locally:

pytest

Resources

django-simple-file-handler