Metadata-Version: 1.0
Name: django-snippetscream
Version: 0.0.1
Summary: Django app packaging the best snippets found on http://djangosnippets.org
Home-page: http://github.com/shaunsephton/django-snippetscream
Author: Shaun Sephton
Author-email: shaunsephton@gmail.com
License: UNKNOWN
Description: Django Snippets Cream
        =====================
        
        Django app packaging the best snippets found on http://djangosnippets.org
        
        
        Included Snippets
        -----------------
        
        963. RequestFactory 
        ++++++++++++++++++++
        Easily create mock request objects for use in testing.
        
        Original Snippet - http://djangosnippets.org/snippets/963/
        
        Example::
        
            from snippetscream import RequestFactory
            request = RequestFactory().get('/')
            
        
        1378. Resolve URLs to View Name
        +++++++++++++++++++++++++++++++
        Supplies a resolve_to_name function that takes in a path and resolves it to a view name or view function name (given that the path is actually defined in your urlconf).
        
        Original Snippet - http://djangosnippets.org/snippets/1378/
        
        Example::
        
            === urlconf ====
            urlpatterns = patterns(''
                (r'/some/url', 'app.views.view'),
                (r'/some/other/url', 'app.views.other.view', {}, 'this_is_a_named_view'),
            )
        
            === example usage in interpreter ===
            >>> from snippetscream import resolve_to_name
            >>> print resolve_to_name('/some/url')
            'app.views.view'
            >>> print resolve_to_name('/some/other/url')
            'this_is_a_named_view'
        
        Authors
        =======
        
        963. RequestFactory
        -------------------
        
        #. simon
        #. akalhola
        
        1378. Resolve URLs to View Name
        -------------------------------
        
        #. UloPe
        
        Changelog
        =========
        
        0.0.1
        -----
        #. Initial release
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
