Skip to main content

A library with many features for interacting with Django

Project description

ADjango

ADjango

Sometimes I use this in different projects, so I decided to put it on pypi

Installation

pip install adjango

Settings

  • Add the application to the project.

    INSTALLED_APPS = [
        #...
        'adjango',
    ]
    
  • In settings.py set the params

    ADJANGO_BACKENDS_APPS = BASE_DIR / 'apps'
    ADJANGO_FRONTEND_APPS = BASE_DIR.parent / 'frontend' / 'src' / 'apps'
    ADJANGO_APPS_PREPATH = 'apps.'
    ADJANGO_EXCEPTION_REPORT_EMAIL = ('ivanhvalevskey@gmail.com',)
    ADJANGO_EXCEPTION_REPORT_TEMPLATE = 'core/error_report.html'
    ADJANGO_LOGGER_NAME = 'global'
    ADJANGO_EMAIL_LOGGER_NAME = 'email'
    
    MIDDLEWARE = [
        ...
        # add request.ip in views
        'adjango.middleware.IPAddressMiddleware',  
        ...
    ]
    

Project details


Download files

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

Source Distribution

adjango-0.0.3.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

adjango-0.0.3-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page