Re: Getting error 500 when using jquery/ajax

2013-01-19 Thread Iñigo Medina
On Fri, Jan 18, 2013 at 12:50:26PM -0800, Dex wrote: > From my server log, i get the following message when I click on a cell: > "POST /target_spot/1/0/ HTTP/1.1" 500. Any ideas on how to solve this? > Thanks! Don't you have debug enabled? It should give you a more complete track of the error.

Re: Source code from book djangobook.com ?

2013-01-15 Thread Iñigo Medina
On Tue, Jan 15, 2013 at 09:44:56PM -0800, Subodh Nijsure wrote: > Sorry if this is a very obvious question does any body know if source code > from the online book http://www.djangobook.com/ is available some where in > git repo? I have searched on github and most hits are for actual book > chapter

Re: Django Calendar App Just Like Google Calendar

2013-01-14 Thread Iñigo Medina
1/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 >

Re: Django Calendar App Just Like Google Calendar

2013-01-13 Thread Iñigo Medina
On Sun, Jan 13, 2013 at 12:44:27PM +1100, Mario Gudelj wrote: > It was straight forward. Tastypie makes it really easy to talk json to > backbone and plotting the appointments in fullcalendar was even easier. You > can have the basic functinality in couple of days. More challenging are the > recur

Re: Django Roles/Permissions

2013-01-13 Thread Iñigo Medina
On Sat, Jan 12, 2013 at 04:39:45PM -0800, Chung Wu wrote: > Hi there, > > I am having difficulty figuring out how to structure the following problem: > > Users have different roles/groups: > > Admin, Manager, Author > > Admins can edit every user, can view list of all users, delete all users >

Re: Best/Cleanest way to add fields to Class User in models.py?

2013-01-12 Thread Iñigo Medina
On Fri, Jan 11, 2013 at 11:06:57PM -0800, Saqib Ali wrote: > > The User class obviously has a lot of important features that any website > developer will need to track and manage users to the website. > However, I wish the class had three additional members -- all > BooleanFields: myBoolA, myBo

Re: Don't be afraid to commit - a free Python/Django workshop (Cardiff, UK)

2013-01-11 Thread Iñigo Medina
> What we'll cover > > > The workshop will take participants through the complete cycle of identifying > a simple issue in a Django or Python project, writing a patch with tests and > documentation, and submitting it. > > The workshop will take you through the use of: > > * vir

Re: DateTimeField received a naive datetime (2013-01-10 00:00:00) while time zone support is active.

2013-01-11 Thread Iñigo Medina
On Fri, Jan 11, 2013 at 12:23:17AM -0800, Jeff Hsu wrote: > Hi all, > >I kept getting DateTimeField received a naive datetime (2013-01-10 > 00:00:00) while time zone support is active. but I can't figure out where > it's receiving a naive datetime. I have USE_TZ set to True in my settin

Re: storing large amounts of text in the DB

2013-01-11 Thread iñigo medina
El 11/01/2013 07:36, "Mike" escribió: > > My users will upload text documents ranging from hundreds to thousands of words. At the moment I store the text in a TextField. Is this going to cause a performance problem in the future or would it be better to store the text on the file system and put

Re: Form validation

2013-01-11 Thread iñigo medina
El 11/01/2013 08:00, "Kristofer" escribió: > > > On step 6, I want to perform verification on a field but it depends on fields that were entered in steps 2-5. Do you save such data anywhere (database, session...)? You might get from this source and use as you need. Iñigo > > I cannot fi

Re: Questions about Installing Django & Python

2012-11-18 Thread Iñigo Medina
On Sun, 18 Nov 2012, New to Django / Python wrote: Hi, I am completely new to programming (despite knowing basic HTML and CSS). I am trying to install python and django and have successfully installed the python shell (i think - see attachment 1). Sorry, but I don't get any attachment. W