Skip to main content

dj-ango

https://badge.fury.io/py/dj-ango.png https://travis-ci.org/pydanny/dj-ango.png?branch=master

Simplifying the import structure of Django.

Documentation

The full documentation is at https://dj-ango.readthedocs.org.

Quickstart

Install dj-ango:

pip install dj-ango

Then use it in a project:

from ango import settings, TemplateView, url

class AboutView(TemplateView):
    template_name = "about.html"

    def get_context_data(self, **kwargs):
        context = super(AboutView, self).get_context_data(**kwargs)
        context['is_debug_mode'] = settings.DEBUG
        return context

urlpatterns = [
    url(
        regex=r'^about/$',
        view=AboutView.as_view(),
        name='about'
    )
]

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-text.txt
(myenv) $ python runtests.py

Credits

Tools used in creating this package:

Release files for dj-ango 0.2.0

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

Source distribution (sdist)

Source distribution for dj-ango 0.2.0
File Size Uploaded
dj-ango-0.2.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dj-ango 0.2.0
File Interpreter ABI Platform
dj_ango-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.3 kB

Release files / dj-ango-0.2.0.tar.gz

Download URL dj-ango-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0aeaa4a343071cbfa34d4dddc7b269b2ec8dbe73292c175ec67e1b9878bcec28
BLAKE2b-256 checksum
How to use checksums
609e1136ba50fb13853df16480574c57dead15c2fc454d487fe803543abebbce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dj_ango-0.2.0-py2.py3-none-any.whl

Download URL dj_ango-0.2.0-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cb2b300b2fa6923a28ff8d1166552c383a317a9657f5233c0e083050a9e248f9
BLAKE2b-256 checksum
How to use checksums
e69c0e45c994b4e35c19b1243665744ef92691a9cd7cd43e46b78b16076c460c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

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