Job Opportunity @ Dartmouth (Hanover, NH)

2013-08-20 Thread Casey Greene
Hi django-users, I wanted to let you guys know about a job opportunity in my lab for a position where we'd like to have someone with django expertise. The listing is available through the Dartmouth jobs website: https://searchjobs.dartmouth.edu/postings/20736 This position is on site in our lab

Re: Citing Django

2013-03-21 Thread Casey Greene
ith-magee.com> wrote: > > > On Thu, Mar 21, 2013 at 5:18 AM, Casey Greene <casey.s.gre...@dartmouth.edu> > wrote: >> >> Does anyone have a standard way of citing Django? This ticket: >> https://code.djangoproject.com/ticket/15379 >> seems to indicate that

Citing Django

2013-03-20 Thread Casey Greene
appropriateness for various tasks). Thanks! Casey -- Casey Greene Assistant Professor Department of Genetics Institute for Quantitative Biomedical Sciences Norris Cotton Cancer Center The Geisel School of Medicine at Dartmouth Hanover, NH -- You received this message because you are subscribed

Re: UnboundLocalError: local variable 'KeyError' referenced before assignment

2012-04-09 Thread Casey Greene
, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Apr 9, 2012 at 11:09 AM, Casey Greene <csgre...@princeton.edu> wrote: >> I have this very baffling error that I'm dealing with at the moment. >> I'm maintaining someone else's code and I'm getting this error for >>

UnboundLocalError: local variable 'KeyError' referenced before assignment

2012-04-09 Thread Casey Greene
I have this very baffling error that I'm dealing with at the moment. I'm maintaining someone else's code and I'm getting this error for some queries with a try, except block in a view. It seems that the queries that lead to the error are ones where there is, in fact, a KeyError. I've actually

Re: Which Linux distro to use on EC2?

2011-11-13 Thread Casey Greene
I would suggest that you use whatever your sysadmin (or if no sysadmin, developer (or if it's just you, you)) are most familiar with. I assume the packages that you are using (at least the ones you've listed) will be in the package management systems for any of the distros that you have

Re: Django Gig

2011-11-12 Thread Casey Greene
He means, "are you interested in job applicants that are not on-site (i.e. people working remotely)?" Hope this helps, Casey On 11/12/2011 08:52 AM, mo.mughrabi wrote: We are located in Kuwait as for the second question am not quite sure what you mean. On Nov 12, 6:07 am, Russell

Re: custom queryset with calculated field

2011-10-23 Thread Casey Greene
What is the error that that function gives you? It may be possible to just fix that function. Casey On 10/23/2011 07:42 AM, dr.phil wrote: The reason for this exercise is to produce suitable output for the jquery plugin datatables. I am trying to use the following code

Re: custom queryset with calculated field

2011-10-22 Thread Casey Greene
The database isn't going to know about your property because that's all on the python side (thus the error). Why do you need the formatted time when looking in the database? I think Pedro is right, if this is only for display, it'd be better to do it with a template tag/filter. Casey On

Re: How do you pinpoint a performance issue?

2011-10-22 Thread Casey Greene
My impression here is that the django-debug-toolbar wouldn't help here though, because the issue wasn't with the request. It was during initialization of the gunicorn processes. You can have logging.debug at function enter/exit points, so that you can switch to that log level if necessary

Re: Admin Site appending letter "s" to end of each model\table name

2011-09-12 Thread Casey Greene
I did not realize that my email client had not grabbed new mail from today and this was 2 days old. Sorry for the reply ad nauseum. Casey On 09/12/2011 09:24 AM, Casey Greene wrote: http://www.the-dig.com/blog/post/customize-plural-name-django-admin/ Casey On 09/10/2011 05:40 PM, Gillwill

Re: Admin Site appending letter "s" to end of each model\table name

2011-09-12 Thread Casey Greene
http://www.the-dig.com/blog/post/customize-plural-name-django-admin/ Casey On 09/10/2011 05:40 PM, Gillwill wrote: Apparently the Django default is to append the letter "s" to the end of the model name for each listed under a given application on the Site Administration page. (It does this in

Re: newbie question on activating the automatic admin

2011-09-09 Thread Casey Greene
Is admin in INSTALLED_APPS? https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-INSTALLED_APPS Casey On 09/09/2011 07:04 PM, nara wrote: Hi, I am a newbie, and I am trying a very basic blog site to get familiar with the latest development release. I followed the directions in the

Re: DEBUG=False issue

2011-06-02 Thread Casey Greene
You are probably registering your models for the admin section in models.py instead of an admin.py file. This works in DEBUG where all of the models files but not when DEBUG is off. https://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-objects Hope this helps, Casey On

Re: primary key auto increment with PostgreSQL and non Django standard column name

2011-05-27 Thread Casey Greene
Doesn't autofield with primary_key=True handle this for you (instead of making it an IntegerField): https://docs.djangoproject.com/en/1.3/ref/models/fields/#autofield Hope this helps! Casey On 05/27/2011 07:22 PM, Naoko Reeves wrote: Hi, I have a Django newbie question. My goal is to auto

Re: Annotate with a filtered Count

2011-05-26 Thread Casey Greene
It looks like other people who encounter this end up going with extra, so I think that's the path that I'll take too: http://www.djangofoo.com/182/filter-annotate-count Casey On 05/25/2011 08:34 PM, Sean McArthur wrote: I would be very interested to know if there is a way to do this using

Annotate with a filtered Count

2011-05-24 Thread Casey Greene
I am trying to figure out how to annotate with a count that is filtered. Here is a quick example of the situation and what I'm looking for: models.py: class A(models.Model): name = models.CharField(...) ... class B(models.Model): date = models.DateField(null=False) ... ---

Re: forum and blog for developers

2011-05-21 Thread Casey Greene
I also feel that something of the sort would be helpful if someone else started it. djangoweek.ly had its inaugural issue fairly recently and I enjoy reading it each week, but it relies on other people to generate interesting blog posts, apps, etc: http://djangoweek.ly/ Casey On 05/21/2011

Re: Dajaxice and CSRF issues

2011-04-08 Thread Casey Greene
Can you change the request type from POST to GET? It sounds like this is not a database modifying operation. Casey On 04/08/2011 07:06 AM, Sam Walters wrote: Dajaxice is used on both the static and Django pages to check whether the user is logged in -- You received this message because

Re: Caught NoReverseMatch while rendering: Reverse for 'homepage_about' with arguments '()' and keyword arguments '{}' not found.

2011-04-06 Thread Casey Greene
- and _ are different characters. The screenshot shows - while your posted error message and urls.py have _. Casey On 04/06/2011 09:29 AM, GOUTAM KUMAR RANA wrote: -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: jQuery namespace woes - calling third-party scripts

2011-04-05 Thread Casey Greene
Also -- you are much more likely to quickly get help for a jQuery issue with a list/forum related to jQuery such as the jQuery forum: http://forum.jquery.com/ Some of us use jQuery but if we're reading a django list we're probably not actively thinking about it. Casey On 04/05/2011 01:26

Re: .Net Developer Job Opening - Valencia, CA

2011-04-04 Thread Casey Greene
Can we ban/filter this entire recruiting firm? We already got this once: http://groups.google.com/group/django-users/browse_thread/thread/c6abb660bc3d3de This user is obviously spamming lots of inappropriate lists:

Re: Group by date: Annotate & Aggregate Query

2011-03-24 Thread Casey Greene
Aggregation for dates is a feature that has a trac ticket: http://code.djangoproject.com/ticket/10302 One option would be to implement this (it's also listed for google SoC 2011 so maybe someone else will do it http://code.djangoproject.com/wiki/SummerOfCode2011#Improveannotationandaggregation

Re: django 1.3

2011-03-22 Thread Casey Greene
While the tone of the e-mail isn't really appropriate, I think the question is a good one. The most recent update (http://www.djangoproject.com/weblog/2011/mar/03/13-rc/) was from March 3rd and said that "Barring major issues discovered with this package, the final Django 1.3 release will

Re: /admin weirdness

2011-03-18 Thread Casey Greene
','client_id__id','title','status','comments','source'] admin.site.register(Record,RecordAdmin) any ideas? On 03/17/2011 03:50 PM, Casey Greene wrote: Where are you registering your models for the admin site and what does that code look like? Casey On 03/17/2011 03:14 PM, chris hendrix wrote

Re: /admin weirdness

2011-03-17 Thread Casey Greene
Where are you registering your models for the admin site and what does that code look like? Casey On 03/17/2011 03:14 PM, chris hendrix wrote: yeah the urls file looks fine... it only happens randomly but seems tied to DEBUG=False for some reason... not sure why that would make a difference.

Re: Error 503 Service Unavailable from 127.0.0.1

2011-03-09 Thread Casey Greene
Do you have DEBUG = True in your settings.py? If not, set it to true and that should provide additional information. Hope this helps, Casey On 03/09/2011 12:35 PM, pjstunna wrote: Hi, I just recently discovered Django and I'm following the Django tutorial as it is written on the website (

Re: How to delete ONLY m2m relation?

2011-03-09 Thread Casey Greene
In that case, I believe you can remove it with user.province_set.remove(province) user.save() if you have the user and province objects. I am going from memory here. I tried to find this in the docs to make sure but couldn't. Hope this helps, Casey On 03/09/2011 10:02 AM, galgal wrote:

Re: How to delete ONLY m2m relation?

2011-03-09 Thread Casey Greene
If you are using django 1.2 or lower you will have to override delete. http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods For 1.3 you can use the new on_delete: http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete

Re: CSRF Cookie in IE

2011-03-09 Thread Casey Greene
Everything makes sense about this except for: > If the user hasn't visited a page that has #csrfmiddlewaretoken on it > then there is also no cookie, in IE only. I am looking in firefox as well and I cannot see that cookie until I visit a page that has the csrf_token on it -- afterwards it

Re: automated query if already exists

2011-03-09 Thread Casey Greene
Hi Patrick, Does get not do what you want? http://docs.djangoproject.com/en/dev/topics/db/queries/#retrieving-a-single-object-with-get Hope this helps, Casey On 03/09/2011 08:03 AM, Szabo, Patrick (LNG-VIE) wrote: Hi, Since django is able to do so much so easy i was wandering if there was

Re: jquery grid and django

2011-02-03 Thread Casey Greene
I have not specifically used jquerygrid but it looks like it will request the data from a URL and all that you need to do is set up a view there to return the proper json objects to it. It is basically like any other django view, just that you would be returning json instead of html. I have

Re: Posible Django Admin BUG

2011-02-02 Thread Casey Greene
Hi Jorge, The Django code repository and bug report system is here: http://code.djangoproject.com/ Hope this helps, Casey On 02/02/2011 09:30 AM, Jorge Kleinerman (WindBack) wrote: With the last Django 1.2 I have the following problem trying to render the admin interface: Exception Value: