oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
424 stars 81 forks source link

Merge the demo and test projects into one #128

Closed telenieko closed 4 years ago

telenieko commented 4 years ago

Currently there is the demo project in the project root, and also there is the test_project inside the tests root. Both things do more or less the same. Also demo and test_project both have a testapp.

This PR puts demo inside the tests root and merges what was inside both projects and the testapps into one single unit. This means lots of less code to maintain, that the demo is subject to testing (it is the test!).

Also, docs/demo.rst is added with instructions.

As a bonus, the demo can use the test factories to populate the database with demo data with ./manage.py createdemodata.

telenieko commented 4 years ago

The createdemodata command is not yet fully implemented, but is workable.

telenieko commented 4 years ago

@oscarmlage I don't know if you rely on the current structure of the demo folder. Please check this PR.