Skip to main content

FilesNow is a Django app to download documnets, images from AWS S3 and serve is a temporary static content to customers.

FilesNow is a way to serve AWS S3 documents/media files without giving access to your s3 buckets.

FilesNow itself cleans it’s downloaded presentable files, as such maintainig a healthy file system

Dependecies

AWS Boto3 Framework : pip install boto3 Configure AWS Credentilas using command : aws configure

Quick start

  1. Add “filesnow” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'filesnow',
    ]
  2. Include the polls URLconf in your project urls.py like this:

    path('filesnow/', include('filesnow.urls'))
    
        Your URL Pattern must end with concinated string of "+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)"
    
        It should look something like
    
        urlpatterns = [
    path('admin/', admin.site.urls),
        path('filesnow/', include('filesnow.urls')) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  3. Add the environment variables for media files within filesnow/settings.py:

        DOWNLOAD_LOC = < Describe Media Directory of your django Project or App >
        APP_MEDIA_URL = < Describe Media URL in case of App >
    
        Example :
        I have a django project with below descriptions
        django Project name => "docdocgo"
        django App name => "filesnow"
        django App Media directory => C:\\Users\\Jackuna\\PycharmProjects\\docdocgo\\media\\filesnow\\
    
        Incase we don't have a media directory, create a media directory under django parent project folder
        and then add a folder named by app name.
        docdocgo --> media --> filesnow
    
        Considering above below is the way we define it.
    
        DOWNLOAD_LOC = 'C:\\Users\\Jackuna\\PycharmProjects\\docdocgo\\media\\filesnow\\'
    APP_MEDIA_URL = MEDIA_URL+'filesnow/'
  4. Start the development server python manage.py runserver 0.0.0.0:9090

  5. Visit http://127.0.0.1:9090/filesnow and explore it.

Release files for django-filesnow 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-filesnow 0.1
File Size Uploaded
django-filesnow-0.1.tar.gz 1.6 MB Details

Release files / django-filesnow-0.1.tar.gz

Download URL django-filesnow-0.1.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
08efb93ab9dfd1020eba8169326312f2edf76b5a8ad89fa7b715819e02221aa6
BLAKE2b-256 checksum
How to use checksums
694964f53327857a450da55e344052f3e62e29cc70a0ad2532dca8c0f39c5ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page