Skip to content

Commit

Permalink
no need to validate name as the super class does that, re #10759
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters authored and chiatt committed Apr 15, 2024
1 parent a4d11bd commit 0068118
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
15 changes: 0 additions & 15 deletions arches/install/arches-admin
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,6 @@ class ArchesProjectCommand(TemplateCommand):

def handle(self, options):
project_name, target = options.pop('name'), options.pop('directory')
self.validate_name(project_name, "project")

# Check that the project_name cannot be imported.
try:
import_module(project_name)
except ImportError:
pass
except:
raise CommandError(
"%r conflicts with the name of an existing "
"Python module and cannot be used as an "
"application or project name. Please try "
"another name." %
project_name
)

# Create a random SECRET_KEY to put it in the main settings.
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
Expand Down
12 changes: 0 additions & 12 deletions arches/install/arches-project
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ class ArchesCommand(TemplateCommand):

def handle(self, options):
project_name, target = options.pop('name'), options.pop('directory')
self.validate_name(project_name, "project")

# Check that the project_name cannot be imported.
try:
import_module(project_name)
except ImportError:
pass
else:
raise CommandError("%r conflicts with the name of an existing "
"Python module and cannot be used as a "
"project name. Please try another name." %
project_name)

# Create a random SECRET_KEY to put it in the main settings.
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
Expand Down

0 comments on commit 0068118

Please sign in to comment.