Metadata-Version: 2.1
Name: django-urlman
Version: 0.2.0
Summary: UNKNOWN
Home-page: https://github.com/randydu/django-urlman.git
Author: randydu
Author-email: randydu@gmail.com
License: MIT
Download-URL: https://github.com/randydu/django-urlman/archive/v0.2.0.tar.gz
Description: # django-urlman
        URL manager for Django
        ======================
        
        Django is powerful, we want it to be as simple as possible without sacrificing flexibility.
        
        Usage
        ------
        
        Assume the django project is named 'mysite', in the project's url-config file (mysite/urls.py):
        
        ```python
        
        from django_urlman import mount
        
        urlpatterns = [
            # original django urls
            path('polls/', include('polls.urls')),
            path('admin/', admin.site.urls),
        
            # django-urlman aware apps
            * mount('mysite', # main project name 
               {
                'app1': 'app1/', # mount app1 at anchor 'app1/'
                'app2': 'app2/', # mount app2 at anchor 'app2/'
               }),
        ]
        
        ```
        
        In app1 module:
        
        ```python
        from django_urlman import url
        
        @url
        def hi(_):
            return HttpResponse('Hello World')
        
        ```
        
        Then the api endpoint "app1/hi" should return "Hello World". 
        
Keywords: django,url,route
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
