Re: Django Calendar App Just Like Google Calendar

2013-09-03 Thread Margie Roswell
I'm late back to this thread, but Tito, thank you! I have a "dumb" (or
basic) question. Looks like events can be dragged and dropped. Is that true
for the end-user as well?

--
http://FarmBillPrimer.org
http://www.BaltimoreUrbanAg.org (Please send events; This site is hungry.)
http://www.ExcellentNutrition.org
http://www.packtpub.com/drupal-5-views-recipes/book


On Sat, Aug 10, 2013 at 4:07 PM, Tito Gonzales <
produtoramediterra...@gmail.com> wrote:

> I made a conector for DHTMLxScheduler for python/django with JS/Ajax.
> https://github.com/tgonzales/dhtmlx-scheduler-django
>
> Makes a clone and run with django 1.5, to customize visit
> http://dhtmlx.com/docs/products/dhtmlxScheduler/index.shtml
>
>
>
> Em sábado, 12 de janeiro de 2013 04h59min50s UTC-2, kashif escreveu:
>
>> Hello Guys,
>>
>> Is there any django app available that is a replica of google calendar?
>> I have checked django-scheduler, django-swingtime and couple of more but
>> the hardest part with these apps/projects is the limited documentation.
>> Can anybody please guide me what app can serve my purpose?
>>
>> Thanks,
>> Kashif
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
>
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Calendar App Just Like Google Calendar

2013-08-10 Thread Margie Roswell
Does anyone have a module available that can do a calendar?

The winter thread below involved a whole bunch of coding-from scratch.

I'm not yet a super-coder... (I do have coding skillsets) and I'm just
learning django, and python. I figure I'll learn django best if I have a
real project; And the real project I have in mind would involve promoting
potluck meals. So event listings, and calendar display would be great. Also
a mapping component (type in an address, get back a map that displays with
the event detail page)

I'd like to start from as much already-available code as I can.

I like the idea, described below of:
"Tastypie makes it really easy to talk json to...backbone and plotting the
appointments in fullcalendar..."

and wow, that sample fullcalendar page looks terrific:
http://blog.shinetech.com/2011/08/05/building-a-shared-calendar-with-backbone-js-and-fullcalendar-a-step-by-step-tutorial/

but honestly, I'll do best to start with a working repo (events,
calendar, address mapping)

(It makes me wonder if anyone has wrapped up a whole bunch of sample django
apps, for easy reuse in general.)

Margie

--
http://FarmBillPrimer.org
http://www.BaltimoreUrbanAg.org (Please send events; This site is hungry.)
http://www.ExcellentNutrition.org
http://www.packtpub.com/drupal-5-views-recipes/book


On Mon, Jan 14, 2013 at 8:49 AM, Iñigo Medina  wrote:

> On Mon, Jan 14, 2013 at 09:41:47AM +1100, Mario Gudelj wrote:
> > Defined my own. Actually, i have defined a single appointment/event model
> > and then i create an instance of it with different dates and different
> slug
> > for the range specified.
> >
> > Use rrlue -
> >
> http://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57
> > to
> > calculate the date and time for every date i the range.
> >
> > So, this how I did it, but you may find a different way.
> >
> > I have an appointment model and appointment series which is linked to the
> > appointment model.
> >
> > I have an appointment creation form, which can create a single
> appointment,
> > but the customer also has an option to create recurring appointments,
> which
> > will create series.
> >
> > So, customer is filling in the form and they are asked if this is a
> > recurring appointment. I they select yes it presents them with the
> > following screen:
> >
> >
> > [image: Inline images 1]
> >
> >
> > There they can choose if they want the event to recur daily, monthly,
> > weekly or yearly.
> >
> > So, when the form is submitted with the interval selected, I create the
> > appointment, create appointment series and then use rrule to create all
> the
> > dates.
> >
> > if form.cleaned_data['is_recur'] == '1':
> >
> > # Find the interval first
> >
> > frequency_int = int(form.cleaned_data['frequency'])
> >
> > if frequency_int == rrule.DAILY:
> >
> > interval = form.cleaned_data['daily_interval']
> >
> > elif frequency_int == rrule.WEEKLY:
> >
> > interval = form.cleaned_data['weekly_interval']
> >
> > elif frequency_int == rrule.MONTHLY:
> >
> > interval = form.cleaned_data['monthly_interval']
> >
> > else:
> >
> > interval = form.cleaned_data['yearly_interval']
> >
> > Then I loop through all the dates created by rrule and create an
> > appointment instance with a different date and the slug, which is the
> > combination of appointment name and the date/time.
> >
> > e.g. slug
> > /appointment/pregnancy-yoga-dads-support-people-welcome/2013/1/23/0630PM/
> >
> > In appointment series I store this info:
> >
> > a_s = AppointmentSeries.objects.create(
> >
> > business=business,first_appointment=appt,
> >
> > frequency=form.cleaned_data['frequency'],
> >
> > is_date_or_number =
> > form.cleaned_data['is_date_or_number'],
> >
> > recurrences=form.cleaned_data['recurrences'],
> >
> > recurrence_end_date=None,
> >
> > interval=interval
> >
> > )
> >
> > You need to save the first appointment from which everything was created
> so
> > that you can later refer to it when editing the series.
> >
> > Anyway, let me know if you need further info and I'm willing to help.
> >
> > You may want to look at this post for fullcalendar.js and backbone.js
> > integration. It helped me somewhat -
> >
> http://blog.shinetech.com/2011/08/05/building-a-shared-calendar-with-backbone-js-and-fullcalendar-a-step-by-step-tutorial/
>
> Thanks a lot, Mario. It is a lot of information and it is great. I like the
> approach. I'm already coding something like that, althoug your use of
> recurrences is cleaner. :)
>
> Iñigo
>
> >
> > Cheers,
> >
> > Mario
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On 13 Jan, 2013 11:33 PM, "Iñigo Medina"  wrote:
> >
> > >
> > > On Sun, Jan 13, 2013 at 12:44:27PM +1100, Mario 

Re: mod_wsgi, apache, windows XP

2010-09-07 Thread Margie Roswell
my settings.py on slicehost is publicly readable. Is that just a
permissions issue?

No, it has same permissions. as another server where the settings.py
can't be downloaded...

Of course, we don't want people to see the database password.

How is this usually resolved?

Margie


On Mon, Sep 6, 2010 at 4:50 AM, Graham Dumpleton
 wrote:
> You can do that with mod_wsgi as well. Go to the mod_wsgi site and
> read the ConfigurationGuidelines page on the wiki.
>
> Sorry, can't paste link right now.
>
> Graham
>
> On Sep 6, 4:27 pm, Elim Qiu  wrote:
>> I followed a installation instruction and got
>> Apache/2.2.15 (Win32) SVN/1.6.12 mod_wsgi/3.3 Python/2.7 PHP/5.2.5 DAV/2
>> installed OK. Meaning that
>> I inserted the following lines to my httpd.conf:
>>
>> LoadModule wsgi_module modules/mod_wsgi.so
>> WSGIScriptAlias /wsgi "F:/Apache/appwsgi/wsgi_handler.py"
>>
>> #test the above byhttp://localhost/wsgi
>>
>> 
>> AllowOverride None
>> Options None
>> Order deny,allow
>> Allow from all
>> 
>>
>> ===
>> With the wsgi_handler.py content:
>>
>> def application(environ, start_response):
>> status = '200 OK'
>> output = 'Hello World!'
>>  response_headers = [('Content-type', 'text/plain'),('Content-Length',
>> str(len(output)))]
>> start_response(status,response_headers)
>>  return [output]
>>
>> ===
>> Then enter the url  http://localhost/wsgi  in the browser to get
>>
>> Hello World!
>>
>> ===
>>
>> So my wod_wsgi worked fine. But why python is so special compare with perl?
>>
>> With perl (I'm not saying it's nicer), I need only specify the script
>> alis to cgi-bin dir and then I can run many perl scripts installed in
>> cgi-bin. But with python and mod_wsgi, My WSGIScriptAlias only points
>> to a single python script?
>>
>> Sorry I'm just so new to this.  There must be something  I don't know but 
>> cool
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Margie
--
http://www.BaltimoreUrbanAg.org
http://www.Real-Food-Farm.org
http://www.FriendlyCoffeehouse.org
http://www.packtpub.com/drupal-5-views-recipes/book

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.