File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
22
from pyscaffold .shell import ShellCommand
23
23
from pyscaffold .structure import merge , reify_content , resolve_leaf
24
24
from pyscaffold .templates import get_template
25
- from pyscaffold .warnings import UpdateNotSupported
26
25
27
26
from . import templates
28
27
29
28
django_admin = ShellCommand ("django-admin" )
30
29
template = partial (get_template , relative_to = templates )
31
30
31
+ UPDATE_WARNING = (
32
+ "Updating code generated using external tools is not "
33
+ "supported. The extension `django` will be ignored, only "
34
+ "changes in PyScaffold core features will take place."
35
+ )
36
+
32
37
33
38
class Django (Extension ):
34
39
"""Generate Django project files"""
@@ -59,7 +64,7 @@ def create_django(struct: Structure, opts: ScaffoldOpts) -> ActionParams:
59
64
:obj:`RuntimeError`: raised if django-admin is not installed
60
65
"""
61
66
if opts .get ("update" ):
62
- logger .warning (UpdateNotSupported ( extension = "django" ) )
67
+ logger .warning (UPDATE_WARNING )
63
68
return struct , opts
64
69
65
70
try :
You can’t perform that action at this time.
0 commit comments