mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #18634 -- Don't escape variables in the context for startproject/startapp.
The & symbols which can come up in the secret key were being escaped to &.
This commit is contained in:
parent
59d99772f0
commit
a875f612e0
4 changed files with 31 additions and 1 deletions
|
@ -0,0 +1,11 @@
|
|||
from optparse import make_option
|
||||
|
||||
from django.core.management.commands.startproject import Command as BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
option_list = BaseCommand.option_list + (
|
||||
make_option('--extra',
|
||||
action='store', dest='extra',
|
||||
help='An arbitrary extra value passed to the context'),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue