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
    feel free to ask anything here
    Albert Castellana
    @acastellana
    Precisely, those are too uncomplete to work with them. I'll start checking out the tests and try to figure it out althought it'd be great to fix that docu a bit... Are you currently taking care of the repo? Thanks!
    Albert Castellana
    @acastellana
    I'm currently trying to create a booking page where doctors can setup their available shifts (with persisted occurrences like 'every Mon-Fri from 15-16h') and then users can select one of the available hours of a specific doctor to book it. I'd be much grateful if you could give me some guidelines to understand it enough to get started.
    Leonardo Lazzaro
    @llazzaro
    yes I am taling care of the repo. the docs are too and actually nevwe have been updated from the original version
    sure. feel free to ask anything here
    just try the sample project . first step is to configure your django to use scheduelr
    cyncyncyn
    @cyncyncyn
    Scratch this :P ya está
    cyncyncyn
    @cyncyncyn
    @llazzaro la pregunta es: django-scheduler es un fork de(l abandonado) django-schedule?
    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