Re: Prioritise 0.1 released

2012-07-14 Thread Jon Black
ons. > > On Sat, Jul 14, 2012 at 5:35 AM, Jon Black <mailto:jon_bl...@mm.st>> wrote: > > I'm pleased to announce the very first release of my django-powered task > manager called prioritise, released under the BSD license. > > This is my first ever dj

Prioritise 0.1 released

2012-07-14 Thread Jon Black
post with more details, including the ubiquitous screenshot, here: http://jonblack.org/2012/07/14/prioritise-0-1-released/ If you just want the code to try it out (yay!), go here: https://github.com/jonblack/prioritise Thanks! -- Jon Black www.jonblack.org signature.asc Description: OpenP

Re: Release considerations

2012-07-10 Thread Jon Black
Thanks Reinout, that's a great checklist - much more than I thought of. -- Jon Black www.jonblack.org On Tue, Jul 10, 2012, at 22:15, Reinout van Rees wrote: > On 10-07-12 08:24, Jon Black wrote: > > I've been working on a task management project and am at a point where >

Release considerations

2012-07-09 Thread Jon Black
g the code available to both make life easier for the users/keep private information out of the repository? -- Jon Black www.jonblack.org signature.asc Description: OpenPGP digital signature

Re: insert html into a form from Django code (not template)

2012-07-05 Thread Jon Black
e fields in the template? I know this is in the template, but you can add the text you want still: {% for field in form %} Some stuff I want here that form.as_p won't do for me {{ field.errors }} {{ field.label_tag }}: {{ field }} {% endfor %} -- Jon Black www.jonblack.org On Thu, J

Re: insert html into a form from Django code (not template)

2012-07-05 Thread Jon Black
This (https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs #customizing-the-form-template) and more generally the entire page explains how to work with forms. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 02:57, angelika wrote: Is there a way to insert arbitrary html into

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
Hit send too soon then. My guess is that your kwargs being passed to filter() contains some suspect things. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 11:27, Jon Black wrote: That doesn't help so much as there's no context information. Nice to see the 'sysadmin'

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
That doesn't help so much as there's no context information. Nice to see the 'sysadmin' bit which wasn't in your original post. Google throws up a lot of things for that: http://www.google.nl/search?q=invalid+literal+for+int%28%29+with+ base+10%3A+%27sysadmin -- Jon Bl

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
me to be plural, use the Meta class. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 02:07, Barry Morrison wrote: I've been beating my head against this all night and now into the morning...I have NO idea what I'm doing wrong and Google and Stack Overflow haven't

Re:

2012-07-04 Thread Jon Black
Do you mean github? If so, see the github documentation. Do you mean creating a git repository? If so, see the git documentation. -- Jon Black www.jonblack.org On Wed, Jul 4, 2012, at 02:25, Bharati Sharma wrote: I want to upload my project on the git ...kindly help me please

Re: error : need more than 1 value to unpack

2012-07-04 Thread Jon Black
You're also returning mimetype="application/json" outside of the request.is_ajax check. I doubt you want that. On Wed, Jul 4, 2012, at 01:20, rafiee.nima wrote: Oh I find out my mistake :D On Wednesday, July 4, 2012 12:38:11 PM UTC+4:30, rafiee.nima wrote: Hi I got below error from my view w

Re: Django Developer, Washington, D.C.

2012-07-03 Thread Jon Black
And also on http://djangogigs.com/ -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 11:03, Itamar Reis Peixoto wrote: > On Tue, Jul 3, 2012 at 10:43 AM, Andrew Moore > wrote: > > Hello group. > > > > National Geographic is seeking Django developers, for permanent

Re: Filter FieldError

2012-07-03 Thread Jon Black
I think you need a double underscore: fieldname__startswith On Tue, Jul 3, 2012, at 02:47, Saroja Parameswaran wrote: While using filters on Django objects, I get the below error message. Except equals, all the other options like _startswith, _exact, _iexact shows the same error. I am using Djan

Re: to add counter in the project

2012-07-03 Thread Jon Black
ields. That's one option. -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 01:08, Bharati Sharma wrote: thanks Jon... actually I am making project of faculty management system of my college.I have added some of the faculty member's resume in the database. i want a counter in my proj

Re: Can't figure out how to obtain organized list of my friends

2012-07-03 Thread Jon Black
= models.ManyToManyField("self") You could adapt this to your UserProfile I suppose. -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 12:57, kenneth gonsalves wrote: > On Mon, 2012-07-02 at 20:31 -0700, Keith D. Cardin wrote: > > I'm trying to create a "my friends"

Re: to add counter in the project

2012-07-03 Thread Jon Black
count require filtering later (e.g. number of counts each month, week, day). -- Jon Black www.jonblack.org On Mon, Jul 2, 2012, at 23:25, Bharati Sharma wrote: I want to add counter in my project so that the value in the table increases as the data is put in the database. Can anyone help m

Re: Same virtual-env for all django projects

2012-07-03 Thread Jon Black
n environment. Maybe I'm being a bit extreme, but it was a thought. Only you can judge your needs. -- Jon Black www.jonblack.org On Mon, Jul 2, 2012, at 16:19, Smaran Harihar wrote: Thanks Musicman On Mon, Jul 2, 2012 at 4:17 PM, Lachlan Musicman <[1]data...@gmail.com> wrote: On

Re: jquery, json and forms

2012-07-02 Thread Jon Black
One approach is to pass json/html data in the response after saving and use jQuery to update the page. On 07/02/2012 05:12 PM, David wrote: > Hello > > I have a form that saves, and displays errors correctly when using > javascript and without. > > However, when my form saves I need to refresh t

Re: advantages and disadvantages of Raw sql queries in django

2012-06-29 Thread Jon Black
Also, using ORM means you're less likely to be tied to a specific database...or in other words, your hand-crafted SQL is likely to be specific to certain databases. On 06/30/2012 08:33 AM, Mike Dewhirst wrote: > I firmly believe in using the ORM for everything until i am forced to > use handwritte

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Jon Black
x, and possible outside of the scope), but you could use a separate table to record all hours recorded rather than just counting the hours as they're entered. -- Jon Black www.jonblack.org On Fri, Jun 29, 2012, at 14:31, Nikhil Verma wrote: Hi Jon Yes it is the count of the hours.Th

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Jon Black
-based views, I tend to put it in form_valid(). Apologies if I've misunderstood :) -- Jon Black www.jonblack.org On Fri, Jun 29, 2012, at 10:16, Nikhil Verma wrote: Hi I am developing an event app which has users who publish events , other users also. Now users have their profile info for wh

Re: locating the functionality behind the HTML element

2012-06-28 Thread Jon Black
that view to the template. -- Jon Black www.jonblack.org On Wed, Jun 27, 2012, at 17:55, Smaran Harihar wrote: Hi Guys, I am new to Django and have completed the initial basic tutorials in the django doc. I am presently working on a pre-customized django application. I was wondering how I can