Coder Social home page Coder Social logo

django-unfurl's Introduction

django-unfurl

Author: Keryn Knight
Version: 0.1.1
Release Status
stable (0.1.1) travis_stable
master travis_master

What it is

A small re-usable app for Django to output all the URLs used in a project, both via a view and a management command. Internally re-uses functionality of admindocs

Rationale

Ever come onto a project for the first time, or after a long period of time away from it, and can't remember all the URLs being used? This is a quick and dirty way to find out what's going on, if you're not using admindocs (which I never do) ...

Getting started

You'll need to get the package onto your python path. For now, that's something like:

pip install git+https://github.com/kezabelle/django-unfurl.git#egg=django-unfurl

You'll also need to ensure it's part of your INSTALLED_APPS:

INSTALLED_APPS += (
  'unfurl',
)

Setting up the view

Then, in your root URLCONF (usually projectname/urls.py), add:

urlpatterns = [
  # ...
  url(r'^urls/', include('unfurl.urls')),
  # ...
]

Using the management command

Simply call python manage.py urls_list to have a list of all URLs output to your console. If possible, it will output them in the less pager, unless you're redirecting output (ie: python manage.py urls_list > all_urls.txt

Tests

There aren't many. This was just an experiment which I've refined a touch. Trust it or don't.

The license

It's the FreeBSD. There's should be a LICENSE file in the root of the repository, and in any archives.

django-unfurl's People

Contributors

kezabelle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.