2015-10-24 03:02:34 +08:00
|
|
|
from django.core.management.base import BaseCommand
|
2015-12-30 23:51:16 +08:00
|
|
|
from django.urls import reverse
|
2015-10-24 03:02:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
"""
|
|
|
|
This command returns a URL from a reverse() call.
|
|
|
|
"""
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
return reverse('some_url')
|