dumpdata with django-scopes #1832
-
No python/django user here, though I'd like to transfer all data from SQLite (for testing purposes) to postgreSql. Using an SQL dump doesn't look that compelling, so I though that
This is acknowledged by the django-scopes developers1, but I don't see how the entry code snippet can be integrated to get the raw json output with disabled scopes. What do I need to edit in order to get the cookbook data dumps working correctly? Footnotes |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Have you tried exporting the recipes (/export/) and attempting to import them again? |
Beta Was this translation helpful? Give feedback.
-
It’s definitely not perfect. If you create a feature request that includes the missing components that you miss most it’ll get included eventually. (Which won’t help you today, sadly) |
Beta Was this translation helpful? Give feedback.
-
sorry but i dont know how to use dumpdata with scopes, i guess there is a way of invocing the dump command within scopes disabled but i am not sure how and also sadly dont have the time to properly look into this. I am sorry but i just cant find/justify the time to implement some custom solution here, we will at some point offer backups over the webinterface but thats not done yet. Maybe this can help you https://pgloader.readthedocs.io/en/latest/ref/sqlite.html |
Beta Was this translation helpful? Give feedback.
sorry but i dont know how to use dumpdata with scopes, i guess there is a way of invocing the dump command within scopes disabled but i am not sure how and also sadly dont have the time to properly look into this.
I am sorry but i just cant find/justify the time to implement some custom solution here, we will at some point offer backups over the webinterface but thats not done yet.
Maybe this can help you https://pgloader.readthedocs.io/en/latest/ref/sqlite.html