dj-ango
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)
| File | Size | Uploaded | |
|---|---|---|---|
| dj-ango-0.2.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 |