Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial data for users, menu items etc #411

Open
dakaza98 opened this issue Mar 26, 2023 · 0 comments
Open

Add initial data for users, menu items etc #411

dakaza98 opened this issue Mar 26, 2023 · 0 comments

Comments

@dakaza98
Copy link
Member

dakaza98 commented Mar 26, 2023

There is a feature in Django which is called fixtures which can be used to seed or initialize an environment. To get one from an existing environment, you can do python3 ./managepy dumpdata >> seed.json and then supply the file created to initialize.

NOTE: dumpdata includes every action a user has done when interacting with the system, e.g. as an admin created a menu item or deleted an order.

Originally posted by @sgronlund in #406 (comment)

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

No branches or pull requests

1 participant