Draft
Conversation
|
Hi @Stormheg I'd be happy to help extend the dataset with additional |
Member
Author
|
That would be great! Feel free to copy content and images from wagtail.org. We are most interested in the navigation menu and the blog. I've made some additional fixes to the load and dump fixture that I haven't pushed yet. I could probably push those to my branch later You can try and see how far you can get? |
e97c91b to
f4c638f
Compare
Member
Author
|
@aryanyk I have pushed my reworked commits. I believe the code I wrote to save uploaded documents and images is a bit buggy, so it could be possible that images are broken for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo content
Very minimal proof of concept, an almost empty homepage, menu and a single blog post copied from Wagtail.org
Steps to test
(assuming you are using docker-compose)
manage.py migratemanage.py createcachetablemake load_initial_datato load the fixtures and images from the fixtures I addedmange.py runserverand login at http://localhost:8000/admin/ with usernameadminand passwordchangemeDumping fixtures
(assuming you are using docker-compose)
When you've made some edits, run
make dumpfixtures, this should update the JSON file. Image files and other uploaded media aren't yet copied to thefixturesdirectory.Heavily inspired by the way bakerydemo loads its data.