Browse Source

Fixed app name validation (#3146)

Angelina Sheyko 1 year ago
parent
commit
cd1a30d758
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reflex/utils/prerequisites.py

+ 1 - 1
reflex/utils/prerequisites.py

@@ -325,7 +325,7 @@ def validate_app_name(app_name: str | None = None) -> str:
         app_name if app_name else os.getcwd().split(os.path.sep)[-1].replace("-", "_")
         app_name if app_name else os.getcwd().split(os.path.sep)[-1].replace("-", "_")
     )
     )
     # Make sure the app is not named "reflex".
     # Make sure the app is not named "reflex".
-    if app_name == constants.Reflex.MODULE_NAME:
+    if app_name.lower() == constants.Reflex.MODULE_NAME:
         console.error(
         console.error(
             f"The app directory cannot be named [bold]{constants.Reflex.MODULE_NAME}[/bold]."
             f"The app directory cannot be named [bold]{constants.Reflex.MODULE_NAME}[/bold]."
         )
         )