Overview
You can find a list of all child apps routers in the _apps.py
system module.
Create App
You can simply create a new app by running the following command:
(venv) python3 -m manage create-app
It will prompt you for some required arguments.
As an example, here we will create an app called notes
:
(venv) python3 -m manage create-app
App Name: notes
App URL: notes
-
Valid characters for App Name are:
a-z
, _
(Notice that the -
character itself is not valid.)
-
Valid characters for App URL are:
a-z
, -
(Notice that the _
character is not valid.)
-
All characters must be in English lowercase alphabetical letters.
For simplicity, it is recommended to use the same name for your App Name & App URL.
You must provide unique names for both parameters or else you will get an error message!
The above command creates the following components for the newly created app:
- Controller blueprints.
- View blueprints
- Static blueprints.
- Form blueprints.
It also updates the _apps.py
module for you, so you don't need to update it manually.
Notes!
Aurora framework makes it easier for you to write and maintain your code.
It doesn't write your code for you. There is no framework which does.
It's the developer's job to deal with.
Aurora will be your assistant, and tries to lift some weight off your shoulders.
Only you know what you need, and how to do it.
You need to fill out these blueprints with some useful code that serves your project.
Delete App
You can simply delete an existing app by running the following command:
(venv) python3 -m manage delete-app
It will prompt you for some required arguments.
As an example, here we try to delete an existing app called notes
:
(venv) python3 -m manage delete-app
App Name: notes
It will alert you with the data loss, if you confirm, it will delete all the data for the selected app.
Here we enter no
, because we need this app for the remaining sections of this documentation.
If the requested app doesn't exist, it will alert you.
Very Important Note!
Be super careful with all delete commands.
If you delete something accidentally you won't be able to reverse the process. The data loss will be permanent.