Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Leonardo Lazzaro
    @llazzaro
    si es un fork del abandonado django-schedule
    era un fork
    cyncyncyn
    @cyncyncyn
    gracias @llazzaro
    justo me di cuenta de que era para django 1.7, changos, necesito en 1.6
    te pregunto: además de las migraciónes de django 1.7 en vez de south, recordás si tiene algo específico para django 1.7 o supuestamente funcionaría si lo forkeo y saco las migraciones?
    Leonardo Lazzaro
    @llazzaro
    en principio las migraciones solamente
    si lo del soporte de django 1.7 lo pense varias veces
    igual hay una version creo que la 0.7.1 que sirve para django 1.6
    cyncyncyn
    @cyncyncyn
    gracias!
    Gustavo Reyes
    @gusreyes01
    Alguien sabe si así como está funciona con boostrap 3?
    Eugene Baibourine
    @cheenbabes
    Hi, I want to use the scheduler and I wanted to check out the sample project. It looks like it doesn't work with 1.7 though because it's looking for some kind of "south_migrations" table?
    I have event objects that have a start and end time and a description. How easy would it be to hook those in and have those display?
    Thanks
    Gustavo Reyes
    @gusreyes01
    You have to comment the "south" app in settings.py . Django 1.7 doesn't need south anymore
    you can migrate with >python manage.py migrate
    I also have an event table
    and have successfully used fullcalendar to attach the events to it
    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)