Metadata-Version: 2.1
Name: django_urls
Version: 1.1.1
Summary: URL decorator for django views
Home-page: https://github.com/isik-kaplan/django_urls
Author: isik-kaplan
Author-email: 
License: AGPL-3.0-only
Description: [![Build Status](https://travis-ci.org/isik-kaplan/django_urls.svg?branch=master)](https://travis-ci.org/isik-kaplan/django_urls)
        [![PyPI - License](https://img.shields.io/pypi/l/django-urls.svg)](https://pypi.org/project/django-urls/)
        [![PyPI - Downloads](https://img.shields.io/pypi/dm/django-urls.svg)](https://pypi.org/project/django-urls/)
         
        ## What is *django_urls*?
        
        It is flask style urls for django. 
        
        ## How to use it?
        
        ```python
        # app/urls.py or where-ever you want really.
        from django_urls import UrlManager
        app_urls = UrlManager(views_root='dotted.path.to.app.views.module')
        
        app_urls.extend(extra_urls_list)
        ```
        
        ```python
        # app/views/foo.py
        
        from app.urls import app_urls
        
        @app_urls.path('path/', name='MyView', importance=5) # the bigger the importance higher in the list it goes
        class MyView(View):
            ...
            
        @app_urls.re_path('path2/', name='my_view', importance=1)
        def my_view(request):
            ...    
        ```
        
        ```python
        # project/urls.py
        from django.urls import include, path
        from app.urls import app_urls
        
        url_patterns = [
            path('some_path/', include(app_urls.url_patterns))
        ]
        ```
        
        
        That's it, not too much setup, right?
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Django
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.5
Description-Content-Type: text/markdown
