startapp¶
Module: espressodb.management.management.commands.startapp
Starting app interface for EspressoDB.
-
class
Command
(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶ Start a new application in the project base dir (
ROOT_DIR/PROJECT_NAME
).See also
espressodb.management.utilities.settings.ROOT_DIR
andespressodb.management.utilities.settings.PROJECT_NAME
The default app layout is (see also the templates.)
{PROJECT_NAME}/ |-- {APP_NAME}/ |-- __init__.py |-- admin.py |-- apps.py |-- models.py |-- tests.py |-- views.py |-- templates/ |-- migrations/ |-- __init__.py
Important
EspressoDB requires this layout for import statements and static/template path finding.
Note
This command overrides default startapp command to match new folder layout.
-
validate_name
(name, *args, **kwargs)[source]¶ This Override of validate_name disables the import_module check which was implemented on django commit fc9566d42daf28cdaa25a5db1b5ade253ceb064f or ticket https://code.djangoproject.com/ticket/30393#no1 (TemplateCommand.handle calls validate name on the target directory).
-