how to install customizable askbot

2013-05-26 Thread Yehuda Prizont
I am running unbuntu 12.04 I am a Django noob. I have an inherited a project based on askbot - but don't know how to get it running locally on django to test it. In short - I would like to install askbot in a virtualenv instance. I have read many (web) pages with suggestions and have tried

Re: Testing with complex database setups

2013-05-26 Thread Jani Tiainen
Bummer... I whish I could have gotten away with Django test framework but it seems that custom testrunner would be the way. Have to check my options really. On Fri, 24 May 2013 03:23:44 -0700 (PDT) akaariai wrote: > On 23 touko, 15:09, Jani Tiainen wrote: > > Hi, > > > > I've product that uses

Re: ANNOUNCE: Django 1.6 alpha 1 released

2013-05-26 Thread Frankline
Swt! On Mon, May 27, 2013 at 7:30 AM, Jacob Kaplan-Moss wrote: > Hi folks -- > > I'm pleased to announce that we've just released Django 1.6 alpha 1, > the first in our series of preview releases leading up to Django 1.6 > (due in August). > > More information can be found on our blog: > >

ANNOUNCE: Django 1.6 alpha 1 released

2013-05-26 Thread Jacob Kaplan-Moss
Hi folks -- I'm pleased to announce that we've just released Django 1.6 alpha 1, the first in our series of preview releases leading up to Django 1.6 (due in August). More information can be found on our blog: https://www.djangoproject.com/weblog/2013/may/26/django-16-alpha-1/ And in the re

2 Questions: Passing Filter Options to a View & Efficient QuerySet Evaluation

2013-05-26 Thread JJ Zolper
Hello, So my question is a 2 part question. The first part leads into the second part. So my first question goes like this. Say I'm on a webpage and I go through about 3 drop down selection filter menu's/options. I then hit submit. My question is how would I pass these arguments to the view th

Re: @method_decorator(login_required) but how to add "login_url=''login/" to login_required

2013-05-26 Thread nany
Thank your help,but could you tell me how to set in setting.py? And I preffer to use the code style in funtional view ,like @login_required(login_url='abclogin/') def get_list(request): pass In class based view,I can't do like this? 在 2013年5月25日星期六UTC+8下午11时23分39秒,Sergiy Khohlov写道: > > you c

Re: Is there a way to tell an instance was saved without checking instalce.pk or doing a db lookup?

2013-05-26 Thread Sergiy Kuzmenko
On Sun, May 26, 2013 at 8:35 PM, Marc R wrote: > What are you trying to accomplish? > Just wanted to see if there is a one-liner for checking if the object has been saved. Checking for .pk is usually fine, except for those rare cases when pk is set manually. No bid deal. Thank you for responding

Re: Passing filter parameters to admin's add view

2013-05-26 Thread Marc R
Sorry, didn't read to the bottom of your post :) Why would there be a better way than overriding the default template? that is the most efficient way and the power of frameworks. On Saturday, May 25, 2013 11:53:00 AM UTC-4, Branko Majic wrote: > > Hello all, > > I've posted a similar question

Re: Passing filter parameters to admin's add view

2013-05-26 Thread Marc R
override the template and change it accordingly (you can grab djangos as a starting point). Google for django admin template override. On Saturday, May 25, 2013 11:53:00 AM UTC-4, Branko Majic wrote: > > Hello all, > > I've posted a similar question a couple of months ago, but received no > a

Re: Is there a way to tell an instance was saved without checking instalce.pk or doing a db lookup?

2013-05-26 Thread Marc R
What are you trying to accomplish? I believe the doc's talk about this some; but in short, you can only check the pk if its a new object; otherwise the pk would be set (if you retrieved the object from the database, or saved before). I would assume (as i've not run into the issue yet) that on

another ifchanged question, triggers on first call, not what I want

2013-05-26 Thread Marc R
I'm trying to insert breaks when a row value in a specific column of data changes; however, it is triggering on the very first call to "ifchanged". For example: {% for row in report %} {% ifchanged row.column2 %} {% endifchanged %} ...print other data... {% endfor %} The very first line is a

Re: Syncdb hangs/stalls

2013-05-26 Thread Aaron C. de Bruyn
Do you have any processes open that are holding locks on the DB? Maybe a 'manage.py shell'? -A On Sat, May 25, 2013 at 6:11 PM, Joshua Kehn wrote: > Everything was working up until a few hours ago. Then I tried setting up > South because I have a less than simple migration to do. Now I've tri

RE: Poll tutorial: running the command 'python manage.py

2013-05-26 Thread Babatunde Akinyanmi
runserver' produces an error MIME-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Iufyh5ys=boUhbk8j.ZRe8A"; protocol="application/pgp-signature" --Sig_/Iufyh5ys=boUhbk8j.ZRe8A Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This

Re: Password rest for non default User Model

2013-05-26 Thread Russell Keith-Magee
On Sat, May 25, 2013 at 5:07 PM, Nora Olsen wrote: > Hi, > > I have a user table that is not the default Django's User model. This > table contains a list of users and their profiles for an API service that I > host using Django/tastypie for a mobile app. > > They do have access to the portal tha