diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frest/manage/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frest/manage/utils.py b/src/frest/manage/utils.py index 4f35937..8ff6dcb 100644 --- a/src/frest/manage/utils.py +++ b/src/frest/manage/utils.py @@ -112,7 +112,12 @@ def create_model_cli(name): def create_app(name): - name = name.lower() + name = name.lower().replace('-', '_') + + if name.isdigit() or name[0].isdigit(): + logging("Name cannot be a number o starts with a number", 2) + return + if len(name) < 2: logging("Name of app must be minimun 2 characters long", 2) return |