1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #16734 -- Set script prefix even outside of requests

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2015-10-23 21:02:34 +02:00
parent 9dcfecb7c6
commit 7d81ee6efc
8 changed files with 64 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
from django.core.management.base import BaseCommand
from django.core.urlresolvers import reverse
class Command(BaseCommand):
"""
This command returns a URL from a reverse() call.
"""
def handle(self, *args, **options):
return reverse('some_url')