Re: I screwed up my django site using touch

2013-03-07 Thread j_syk
It's not a problem with wsgi. The problem is incorrect syntax in line 29 of your views.py file. Check that line and make sure that each line is at the same indentation or is properly indented (4 spaces). If you can't figure this out, post a couple lines from that area of your views.py file and

Re: pip search raises "time out"

2013-01-10 Thread j_syk
I just tried it and it returned about 3500 results. Did you really want that many results? running "pip search --help" shows that you can set a --timeout flag, and the default is 15 seconds try: pip search --timeout=30 Django On Wednesday, January 9, 2013 8:34:41 AM UTC-6, Matias

Re: map in django

2012-07-11 Thread j_syk
This Gist https://gist.github.com/1027898 is an example of a location Model which calls on a helper function when saved to find the lat & long of the address when it is saved. The original snippet of the function is here- http://djangosnippets.org/snippets/2399/ On Wednesday, July 11, 2012

Re: ManyToManyField is this right?

2012-06-27 Thread j_syk
One to One is the right type for linking a user to a profile in the Django world. However I think you may be mixed up on the many to many. How you have it setup would lead to a User being connected to multiple License objects, each with a nra and ccl attribute. If I didn't realize what those

Re: where do you host your django app and how to you deploy it?!

2012-04-04 Thread j_syk
I have a Linode VPS. Best decision I've made. I had tried A Small Orange and Webfaction, was happy with the customer/tech service from both (ASO isn't really setup for easy Django setup), but eventually you may run into situations were you wish you had full access to the server. I use Nginx &

Re: DatabaseError: execute used with asynchronous query

2012-02-28 Thread j_syk
worker.log.info("Made Psycopg Green") > post_fork = def_post_fork > > > This is making me worried of using the Gunicorn+Gevent+psycopg2 combo. > > Cheers, > Daniel > > On Friday, January 20, 2012 3:46:47 PM UTC+1, j_syk wrote: >> >> I was testing

DatabaseError: execute used with asynchronous query

2012-01-20 Thread j_syk
I was testing one my apps today with a form that features a drop-down field that initiates a json lookup for additional detail. You choose a location, it populates address fields. It's been working for weeks. Today, when I clicked an entry, the target detail field didn't change. I have debug off,

Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
On Jan 16, 10:31 am, Javier Guerra Giraldez wrote: > it's a pity that MacOS is going the same route (i think 10.4 still > included XCode in the optional installers DVD), so there's some demand > for binary distribution for Mac too. mac osx 10.7 (Lion) includes Xcode for free

Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
This isn't really an answer to your question, but here's my 2 cents. I'm in the reverse situation as you, Macs at work and Windows at home. I wasn't too interested in figuring out Django development on either after quickly disliking macports and never having the desire to develop on windows

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread j_syk
This a good application for named urls with passing arguments. for example, given a urls.py containing url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"), in your template you can do this: {% for item in item_query %} Edit {% endfor %} Hope that helps! Named urls are the

foreign key select widget with "add" link

2011-12-13 Thread j_syk
I have a Model with a ForeignKey and I'm using a vanilla ModelForm, so it's using the standard ModelChoiceField widget. I'm looking to add a '+' icon with a link to popup and new window to add a new foreign key that is not already in the dropdown list. Yes, exactly like the admin forms. I've done

looking for an event planning app

2011-09-26 Thread j_syk
I'm looking to build a site to plan events for a small convention. I've been looking around for an Here's what I'm looking for: -Users can sign up to host an event at a given location -User can pick event length in hour or 30min increments -There can't be more than one event at the same location

Re: postgres- can nulls be first when sorting in asc order?

2011-09-26 Thread j_syk
> You can control the order of how nulls sort with pgsql (at least, 8.3 > and above) by appending 'NULLS FIRST' or 'NULLS LAST' to the 'ORDER > BY' clause of a select query. Good to know. I am using 8.4, I may look into adding the order by into a .extra() call. Thanks Due to the urgency, I went

Re: postgres- can nulls be first when sorting in asc order?

2011-09-26 Thread j_syk
Found a similar post http://groups.google.com/group/django-users/browse_thread/thread/4edf7a4a94c65c17/2dfbc193845d4383?lnk=gst=sort+null#2dfbc193845d4383 The main difference is that mine is a DateField. So I can't just make it 0 instead of None. -- You received this message because you are

postgres- can nulls be first when sorting in asc order?

2011-09-26 Thread j_syk
Hello- On Friday afternoon I migrated a project from sqlite to postgres. Everything went smoothly and I was able to go home for the weekend and be happy. Yay. This morning I was informed that the sort order is different. I have a DateField for a due date that is set as not required, however

Re: Challenge with installing django on windows 7 64 bit

2011-01-26 Thread j_syk
Hello- I only develop django on osx and lunix (ubuntu), but I've looked into options for installing it on my windows desktop- even though I've never gotten around to it... I've found http://www.instantdjango.com/ which has all the common files you need to develop in one package. According to the

Need some ideas for how to implement a two-part form

2011-01-26 Thread j_syk
I'm working on a project that requires a RSVP form for an event. The first step of the form would ask first & last name, e-mail, attending (yes/no/unsure), and total number of guests attending. Currently I have this form correctly working and submitting to the database. The second step of the