mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16734 -- Set script prefix even outside of requests
Thanks Tim Graham for the review.
This commit is contained in:
10
tests/user_commands/management/commands/reverse_url.py
Normal file
10
tests/user_commands/management/commands/reverse_url.py
Normal 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')
|
||||
Reference in New Issue
Block a user