Skip to main content

Simplifying the import structure of Django.

Project description

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:

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 dj-ango, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size dj_ango-0.2.0-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size dj-ango-0.2.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page