Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-snippetscream 0.0.7

    Download button

    No screenshots available
    Downloads: 176  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Shaun Sephton | More programs
    BSD License / FREE
    September 19th, 2011, 13:18 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-snippetscream description

    Django app packaging the best snippets found on http://djangosnippets.org

    django-snippetscream is a 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'



    Product's homepage

    Requirements:

    · Python
    · Django

    What's New in This Release: [ read full changelog ]

    · Removed monkeypatching on and added test for 1378.
    · Included 2536 - Configurable defaults for contrib.sites default Site during syncdb

      


    TAGS:

    packaging snippets | Django plugin | snippets | packaging | Django

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM