Management Commands¶
To smooth your development flow, please get familiar with these commands to help ensure your nxtbn development success:
python manage.py nxtbn_initThis command initializes the nxtbn environment by generating some predefined categories and collections. It internally calls
python manage.py populate_predefined_categoryandpython manage.py populate_predefined_collection.
python manage.py populate_predefined_categoryGenerates categories that are defined in a JSON file. This helps in setting up the initial category structure for your e-commerce site.
python manage.py populate_predefined_collectionGenerates collections that are hard-coded into the system. These collections can be used to group products in various ways for display on the site.
python3 manage.py generate_nxtbn_api_docsGenerates OpenAPI documentation in YAML format. This is useful for developers who need to understand and interact with the nxtbn API.
python manage.py fake_populate_productGenerates fake product data. This is useful for testing and development purposes when real product data is not yet available.
python manage.py populate_fake_orderGenerates fake order data. This helps in testing order processing and management workflows without using real customer data.
python manage.py populate_fake_usersGenerates fake user accounts. You can specify the number of fake users you want to generate by passing an argument to the command. This is useful for testing user-related features.
python manage.py install_plugin_via_zip_urlInstall plugin via zip url: example command: python manage.py install_plugin_via_zip_url https://github.com/nxtbn-com/
/archive/refs/tags/1.0.0.zip
python manage.py register_pluginto register a plugin, argument is directory namepython manage.py toggle_plugin_status deactivate <YOUR_PLUGIN_NAME>to activate/dectivate plugin
For other commands based on Django, please check this documentation: Django management Commands. These are not related to nxtbn but are good for handling things smartly.