Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gustavo Reyes
    @gusreyes01
    it's pretty cool... check it out : http://fullcalendar.io/
    Hope it helps @cheenbabes
    Eugene Baibourine
    @cheenbabes
    @gusreyes01 , sweet I got the app to run by commenting out south. I can't get the sample calendars to load with the manage.py load_sample_data command. Do you have your code of how you attached your events to fullcalendar.io?
    Eugene Baibourine
    @cheenbabes
    @gusreyes01 I got the sample calendars working, but how did you integrate your events with fullcalendar? Thanks!
    Gustavo Reyes
    @gusreyes01
    I have just made the load events functions , I will work on the update and delete this week. You can checkout the app 'calendario' here : https://github.com/gusreyes01/SIAV/tree/master/calendario
    Leonardo Lazzaro
    @llazzaro
    Hi!
    Project sample was using south, I removed and make it work with the lastest version of django-scheduler 0.7.4 (I just uploaded it to pypi)
    @guy
    please update your sample project repo and also uninstall south with "pip uninstall South"
    I check both command for loading sample data and after the lastest fix is now working.
    Leonardo Lazzaro
    @llazzaro
    @cyncyncyn please update project sample, it should be working with django-scheudler 0.7.4
    project sample url is http://127.0.0.1:8000/fullcalendar/
    smartt
    @smartt
    I'm glad to have something to start with for getting a calendar running, though it's taken some edits and motivation to get it going with python 2.7.x and django 1.7.5, and I'm stuck now with: "TypeError: Month object is not an iterator." (Same for Year, Day, etc.) Any ideas???
    (the docs didn't quite give me enough to go on, so I'm sort of faking my way through the setup ;-)
    smartt
    @smartt
    ...looks it's mostly just been issues related to back-porting to py2.7. Switching the next() calls fixed it
    Eugene Baibourine
    @cheenbabes
    @llazzaro , I see the html page, what I'm interested in is the python code to hook up your own events to it. You have your events coming in from '/schedule/api/occurrences?calendar_slug=example' but I couldn't find that in your project. Thanks
    Leonardo Lazzaro
    @llazzaro
    You can go to the admin of your app and create events, then you will see that on the calendar
    @smartt did you do fixes on the code? let me know so I can fix them
    smartt
    @smartt
    @llazzaro The changes for python 2.7 were minimal. First, instead of using from builtins import foo, I used from __builtin__ import foo; and instead of period = next(period), I used period = period.__next__(). However, if you're not aiming for python 2.x support, perhaps you don't need the changes (and I don't know if they still work with python 3.x)
    smartt
    @smartt
    Unfortunately, I don't have a clean patch. I've sort of been gutting things so that I can build calendars on-the-fly with sets of un-saved Events (and Calendars.)
    My use case involves filtering on a model in django Admin, then showing a calendar representation of results. For example, and editorial team can filter their articles, then see a calendar view of the upcoming publish dates.
    I don't save any of this in the Event or Calendar tables though. Instead, my GET_EVENTS_FUNC function can basically take the same QuerySet filters that the Admin uses, and map the results to in-memory Event objects.
    Tristan McCormick
    @TristanJMcCormick
    Quick Question: I see relations of events to generic objects as a feature but how is that done programatically?
    Leonardo Lazzaro
    @llazzaro

    here is an example
    data = {
    ... 'title': 'Test1',
    ... 'start': datetime.datetime(2008, 1, 1),
    ... 'end': datetime.datetime(2008, 1, 11)
    ... }

    event1 = Event(**data)
    event1.save()
    user1 = User(username='alice')
    user1.save()
    event1.create_relation(user1, 'owner')

    Then you can use

    user = User.objects.get(username = 'alice')
    EventRelation.objects.get_events_for_object(user, 'owner', inherit=False)
    see : https://github.com/llazzaro/django-scheduler/blob/master/schedule/models/events.py#L241

    hope it helps
    Steve Pomeroy
    @xxv
    To be clear, in your example the arbitrary object is a user, yes? (I ask, because I know that the Event also supports associations with users directly)
    It may be helpful to describe that using a generic model that isn't related to the other functionality.
    (or perhaps I don't actually understand its use)
    Steve Pomeroy
    @xxv
    I don't see any, but has there been any work to get the repeating events going in the iCal export?
    @llazzaro Not sure how closely you follow this chat, but I am using your module and would very much like to help extend the iCal support fully. :-)
    Leonardo Lazzaro
    @llazzaro
    hi! I just merged a pull request. Swappable model base classes #110 check it out here llazzaro/django-scheduler#110
    this is only available in dev version (install it from git with pip)
    it will be great to add that support
    I don't have much time to do something, but I will be open to merge pull requests
    fell free to open issues also
    You can relate the event with any model that you want
    Leonardo Lazzaro
    @llazzaro
    remeber that by any model I mean any django model and only that. it must have a content_type
    thanks for using django-scheduler
    Steve Pomeroy
    @xxv
    Thanks for pushing those changes!
    Steve Pomeroy
    @xxv
    I pulled the rrule string generator out from vobject and grafted it in. The first pass at this is here https://github.com/xxv/django-scheduler/tree/ical-repeat
    It's not yet ready for a PR yet. I still need to add support for exceptions.
    Steve Pomeroy
    @xxv
    oh, I was having an issue that I haven't been able to trace yet: for the various day views, it seems as though it doesn't start at the beginning of the day: http://xxv.so/0xd635330f any idea where I might start going to fix that?
    It looks like a timezone issue, so I'm a little worried :-)
    DanielStevenLewis
    @DanielStevenLewis
    Does only https://github.com/llazzaro/django-scheduler/tree/develop support Python3? If so, how do I install the development branch?
    Enmanuel Rivera
    @enmanuelr
    I know the docs clearly state this app works on django 1.7, but is there any patch to get it backwards compatible with 1.6?
    Leonardo Lazzaro
    @llazzaro
    @DanielStevenLewis do not use develop branch. try python3 with master
    @enmanuelr you can try an older versions. I think support for django 1.7 was added on 0.7.4 . you should try version 0.7.3 (pip install django-scheduler==0.7.3)