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.

Source Distribution

dj-ango-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

dj_ango-0.2.0-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj-ango-0.2.0.tar.gz.

File metadata

  • Download URL: dj-ango-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-ango-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0aeaa4a343071cbfa34d4dddc7b269b2ec8dbe73292c175ec67e1b9878bcec28
MD5 652444bc4835be2d9f8f81230af37f22
BLAKE2b-256 609e1136ba50fb13853df16480574c57dead15c2fc454d487fe803543abebbce

See more details on using hashes here.

File details

Details for the file dj_ango-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_ango-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb2b300b2fa6923a28ff8d1166552c383a317a9657f5233c0e083050a9e248f9
MD5 7b3298f69aee9544fe1d94369f19fb99
BLAKE2b-256 e69c0e45c994b4e35c19b1243665744ef92691a9cd7cd43e46b78b16076c460c

See more details on using hashes here.

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