Skip to content

Conversation

@PenguinBoi12
Copy link
Contributor

@PenguinBoi12 PenguinBoi12 commented Feb 28, 2025

This PR aim to add the possibility to skip the database generation when creating a new project. Along those base features, major refactor have been brought to the application.py and config.py to support this feature.

When using the option --no-database, the project will not generate the following :

  • db directory
  • database configuration in config.py

The database can be added later on by using grace generate database.

from logging import info


class DatabaseGenerator(Generator):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add optional instructions when added later on

Add the following to your `config.py`:
    
    [database]
    config = database.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant