-
Notifications
You must be signed in to change notification settings - Fork 10
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
Need to update documentation and examples #18
Comments
Unfortunately, due to time pressures, we haven't had as much time to keep the docs up to date as we'd like. Until we find the time to do so, I would suggest looking at the In lieu of documentation, the test suite, even though it's not very complete, is the best place to get an idea for how to use eventtools. You'll need to have an app in your project with models that inherit from all 4 of EventModel, GeneratorModel, OccurrenceModel, and ExclusionModel, with foreign keys between them as seen here: https://github.com/ixc/glamkit-eventtools/blob/api-tidy/eventtools/tests/eventtools_testapp/models.py For your app's admin.py, you'll want to have at least the following:
I hope that's enough to get you started, and I again apologise for the lack of documentation. |
Oh, I completely forgot. There's documentation available for the code in the main Also, there's more complete documentation on how to use the |
Thanks a bunch for the explanation. I had not yet waded into the tests directory for examples. |
This application looks like it is still under development and I would love to contribute to it (documentation, code cleanup, etc.), but I need more guidance than the documentation and code currently give.
I have spent multiple hours wading through the code and at this point I still don't understand how
GeneratorModel
(orOccurrenceGeneratorBase
if that's actually used) are supposed to be used withEventModel
to actually create an event and occurrences out of the event.A demo application (like django-swingtime has) would be incredibly useful in understanding how this application works.
Could someone show me a basic
models.py
file and some sample code that uses the abstract models in this package to make a working event?The text was updated successfully, but these errors were encountered: