Re: Exception handling in templates

2012-03-05 Thread Aryeh Leib Taurog
On Mar 6, 7:41 am, Russell Keith-Magee wrote: > On 06/03/2012, at 12:56 PM, Aryeh Leib Taurog wrote: > > > Did exception handling in templates change somewhere between Django > > 1.2.x and 1.3.x? > > > I have a callable which is displayed in a template.  Sometimes it > > raises AttributeException.

Re: Exception handling in templates

2012-03-05 Thread Russell Keith-Magee
On 06/03/2012, at 12:56 PM, Aryeh Leib Taurog wrote: > Did exception handling in templates change somewhere between Django > 1.2.x and 1.3.x? > > I have a callable which is displayed in a template. Sometimes it > raises AttributeException. Under 1.2.x the callable was treated as an > empty str

Exception handling in templates

2012-03-05 Thread Aryeh Leib Taurog
Did exception handling in templates change somewhere between Django 1.2.x and 1.3.x? I have a callable which is displayed in a template. Sometimes it raises AttributeException. Under 1.2.x the callable was treated as an empty string, but under 1.3.1 this results in a 500 response. This is a maj

[ImportError] cannot import name `feed`

2012-03-05 Thread Alec Taylor
I keep getting an ImportError saying "cannot import name `feed`". (pinax-admin basic_project) I am running latest Pinax (from github) and latest DJango (from SVN), I have also tried with trunk versions of all dependencies, but I keep getting this error. How can I overcome this error? Thanks for

Re: admin css

2012-03-05 Thread Mike Dewhirst
Thanks Lee - that did it :) Just for the record this is what I did ... In my templates/admin/base_site.html {% extends "admin/base.html" %} {% block extrastyle %}href="/static/css/darker.css" />{% endblock %} Then in my /static/css/darker.css I copied the relevant section from contrib.admin'

Re: ANN: Mezzanine 1.0 released

2012-03-05 Thread Thomas Woolford
You should consider using Sentry Instead. This way you will get live feedback on errors, even ones that nobody reports. On Mar 4, 1:24 pm, Stephen McDonald wrote: > Yes - behind the project homepage is the entire demo site where anyone > can log in and try it out. I've left debug on so that when

Re: ANN: Mezzanine 1.0 released

2012-03-05 Thread Josh Cartmell
Congrats on the release Steve. As a developer that has been using Mezzanine for a bit under a year and a half I have to say that I have been really pleased with the project. A lot has changed in the time since I began using Mezzanine but even in it's infancy Mezzanine provided a very usable base

Re: How do you use a link as a post request?

2012-03-05 Thread bb6xt
You're welcome. I missed one detail in my last post. Here is it: On Mar 5, 9:27 pm, leaks wrote: > thanks bb6xt..! I couldn't find an answer so I went with a forms POST > request... Thank you anyway... Will give it a try :) -- You received this message because you are subscribed to the Google

Re: How do you use a link as a post request?

2012-03-05 Thread leaks
thanks bb6xt..! I couldn't find an answer so I went with a forms POST request... Thank you anyway... Will give it a try :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg

Re: How do you use a link as a post request?

2012-03-05 Thread bb6xt
You can achieved that by using javascript or jquery. But personally I prefer jquery so I'll illustrate with a jquery example. # in your template funcion submitForm(){ $.ajax({ url: "some url", type: "POST", data: $("#myform").serialize(), success: function(){//do magic} }); Submit Note ho

Re: django admin list_editable and custom manager bug?

2012-03-05 Thread Slafs
I'd like to bump this up. Since the rc1 is out I would like to know if this deserves a seperate ticket. Regards W dniu poniedziałek, 2 stycznia 2012, 22:19:09 UTC+1 użytkownik Slafs napisał: > > Oh > > Maybe it has something to do with my previous report > https://code.djangoproject.com/tick

Re: ANNOUNCE: Django 1.4 release candidate available

2012-03-05 Thread Diego Schulz
On Mon, Mar 5, 2012 at 2:49 PM, James Bennett wrote: > We're nearly there! > > The Django 1.4 release candidate package is now available, and you can > read all about it on the blog: > > https://www.djangoproject.com/weblog/2012/mar/05/14-rc-1/ > Hi James, Glad to read that! Just FYI: there's a

Verifying number of forms in inline formset

2012-03-05 Thread Michael Stevens
Hi. I've got a django app using an inline formset. It was all working nicely, but I want to add some validation such that the inline formset must contain at least one valid record. This seems to be surprisingly hard to do. I've tried overriding clean() on the formset and looking at things like

Field.localize=True effective only if USE_L10N=True as well?

2012-03-05 Thread Carsten Fuchs
Hi all, using Django 1.3, in a form like class SomeForm(forms.Form): Stunden = forms.DecimalField(localize=True, ...) it seems that localize=True is only effective if in the settings.py USE_L10N = True as well. Is that correct? Many thanks and best regards, Carsten -- Cafu - the

Form issues

2012-03-05 Thread Patrick
Hi folks, I've run into trouble with a ModelForm with multiple entries. I have a Question model that is linked to an election so we can assign different questions to different races. A separate Answer model is connected to the Question model and the Candidate model (which is also tied to a race).

send binary(pdf) file to server

2012-03-05 Thread Bolang
Hi, I have a need to send pdf file from several worker server to main server. The main server will then save the file to DB(MySQL). I have read somewhere that json rpc with base64 encoding is not efficient to send binary file. Any suggestions? For my current load, non efficient solution (e.g.

ANNOUNCE: Django 1.4 release candidate available

2012-03-05 Thread James Bennett
We're nearly there! The Django 1.4 release candidate package is now available, and you can read all about it on the blog: https://www.djangoproject.com/weblog/2012/mar/05/14-rc-1/ -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You received this message be

Re: admin css

2012-03-05 Thread Lee Hinde
On Sun, Mar 4, 2012 at 8:32 PM, Mike Dewhirst wrote: > I would like to adjust the admin app's base.css. Nothing outrageous. I just > want to change all the #999 color values to something a little bit darker so > screen text is slightly easier to see. > > I could write a python script to do that bu

Re: Way to isolate inherited model classes?

2012-03-05 Thread Michael Elkins
On Mon, Feb 27, 2012 at 09:18:22AM -0600, Gene horodecki wrote: Hi there. I have a multi-table inheritance in my main application like this: MailItem->Parcel->LargeParcel Now I want to have a separate application called 'dispatch' that serves as a staging area as information comes in about t

Live search

2012-03-05 Thread larry.mart...@gmail.com
I'm fairly new to django, still working on my first project. I have a page with some selection fields and a button. The user clicks the button, I run a query, and display the result set on the page. Works fine. Now I was to add a live search field to allow the user to further winnow down the resu

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
Tried HttpResponseRedirect('/') and still nothing happens. Thanks On Monday, March 5, 2012 5:52:50 PM UTC+2, ke1g wrote: > > If that's your complete view, you've forgotten to return an HTTPResponse > object. > > Since action='.', it appears that you are using the same view to get > the form and t

Re:

2012-03-05 Thread Tom Evans
On Mon, Mar 5, 2012 at 4:07 PM, dummyman dummyman wrote: > hi > > why this code doesnt work ? > I don't know why your Facebook/javascript integration didn't work. Perhaps try asking on a list related to those topics, rather than on a Django mailing list. Cheers Tom -- You received this messag

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
dHey tom... The homepage displays a list of entries posted by users... Each entry has a submit button next to it, I watched many tutorials and i still dont get how those requests work... I made the view as above and the main idea is to add +1 to my "pushes"(my model has a pushes field wich is a

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread Bill Freeman
If that's your complete view, you've forgotten to return an HTTPResponse object. Since action='.', it appears that you are using the same view to get the form and to post (which is fine), but each case must return a response for the prowser, presumably rendered from the same template. The render_

Re: facebook login problem

2012-03-05 Thread dummyman dummyman
Hi i tried tat code and im getting d same error Please help me out here are specifications use facebook login. and once the user logins get his id and using his id get basic information and also get other information like books etc using access token get the json object please provide the deta

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread Tom Evans
On Mon, Mar 5, 2012 at 3:24 PM, leaks wrote: > no, no errors get displayed... Just nothing happens. Absolutely and literally 'nothing happens'? Really? Does the browser submit the form, django receive a request and render a response? I would definitely class that as 'something' and not 'nothing'

Re: Reports

2012-03-05 Thread Alexey Luchko
Hi! We are using http://PythonReports.sf.net/. -- Regards, Alex. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+un

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
no, no errors get displayed... Just nothing happens. Do you mean passing the pk in my url? On Monday, March 5, 2012 5:13:14 PM UTC+2, eng.Ilian Iliev wrote: > > Hi, > > first of all use if request.POST, second pehaps you should pass the pk as > part of the action URL. > Do you get any errors or

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread Ilian Iliev
Hi, first of all use if request.POST, second pehaps you should pass the pk as part of the action URL. Do you get any errors or anything? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Mon, Mar 5, 2012 at 4:54 PM, leaks wrote: > I don

Re: django registration

2012-03-05 Thread Alec Taylor
*hard to say On Tue, Mar 6, 2012 at 2:03 AM, Alec Taylor wrote: > Not sure how large your app is, so had to say. > > On Tue, Mar 6, 2012 at 1:59 AM, Stanwin Siow wrote: >> I don't think using another external app now would be ideal since i want to >> push it to production soon. >> >> From what i

Re: django registration

2012-03-05 Thread Alec Taylor
Not sure how large your app is, so had to say. On Tue, Mar 6, 2012 at 1:59 AM, Stanwin Siow wrote: > I don't think using another external app now would be ideal since i want to > push it to production soon. > > From what i found online, it says i'm calling that profile_callback() that > is in the

Re: django registration

2012-03-05 Thread Stanwin Siow
I don't think using another external app now would be ideal since i want to push it to production soon. >From what i found online, it says i'm calling that profile_callback() that is >in the original forms.py. But having said that, i think Pinax is quite cool if i've got the time to take a loo

Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread leaks
I don't get an error... Nothing just happens my view: (I think the problem is here) def push(request, pk): if request.method == 'POST': entry = Entry.objects.get(pk=pk) entry.pushes +=1 entry.save() My template: {% for entry in entries.object_list %} {{ entry.title

Re: Reports

2012-03-05 Thread Derek
I plan to use ReportLab and/or Geraldo in an upcoming projects as they seem to be the best out there. In response to your criticisms: ReportLab. "Too low level" which I translate to mean this is a tool you can customise to do exactly what you want. In the same way Django is *not* a CMS and requi

Re: django registration

2012-03-05 Thread roy moss
Pinax is an open-source platform built on the Django Web Framework . By integrating numerous reusable Django apps and providing starter projects and infrastructure tools, Pinax takes care of the things that many sites have in common so you can focus on what makes your si

Re: django registration

2012-03-05 Thread Stanwin Siow
what is Pinax? And this is not a learning exercise. Well i'll still want to know the other way too. Best Regards, Stanwin Siow On Mar 5, 2012, at 9:41 PM, Alec Taylor wrote: > DRY principle is what Django is all about. > > Use Pinax instead of developing your own Profile system. > > If

Re: social graph

2012-03-05 Thread suresh dokania
hi, i am confused, there are so many wrappers like python sdk ,pyfacebook where can i get the link for the complete tutorials ? On Mon, Mar 5, 2012 at 6:43 PM, Thomas Orozco wrote: > You might want to look into the Django socialauth app > Le 5 mars 2012 14:08, "suresh dokania" a > écrit : > >>

Re: django registration

2012-03-05 Thread Alec Taylor
DRY principle is what Django is all about. Use Pinax instead of developing your own Profile system. If Pinax profiles don't show exactly what you want, extend them. Unless you're doing this as a learning exercise? On Mon, Mar 5, 2012 at 10:46 PM, Stanwin Siow wrote: > Even after doing that, >

Re: Traceback from csrf_exempt in 1.3.1

2012-03-05 Thread Thomas Orozco
Your view is likely raising an exception (but if you don't use csrf exempt then access is denied and the erroring view code is not run). Le 2 mars 2012 21:42, "Ethan Whitt" a écrit : > I get a 403 error when I comment out csrf_example as such: > > auth/views.py > from django.http import HttpRespo

Re: social graph

2012-03-05 Thread Thomas Orozco
You might want to look into the Django socialauth app Le 5 mars 2012 14:08, "suresh dokania" a écrit : > How to access user 's facebook profile information using django ? > And how to find their friends and use their info as well ? > > -- > You received this message because you are subscribed to

social graph

2012-03-05 Thread suresh dokania
How to access user 's facebook profile information using django ? And how to find their friends and use their info as well ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To u

Reports

2012-03-05 Thread Ahmed Toulan
Hi, We have a Django website and we would like to have a reporting engine, if it could be in python and integrated with Django it would be awesome. Here are the options I investigated: 1. Jasper is really promising and has a lot of features, but unfortunately it's Java and I would need t

Dynamic form with validation

2012-03-05 Thread shweta
Hello I m facing problem while retrieving value from text box in dynamic form The code is as follows: forms.py class ContextForm(forms.Form): def __init__(self, prop, *args, **kwargs): for i, j in enumerator(prop): self.fields['%s' % j] = forms.CharField(max_length = 20

Re: django registration

2012-03-05 Thread Stanwin Siow
Even after doing that, The error still occurs. And my data is still unsaved in the database. Should i be creating a backend? Best Regards, Stanwin Siow On Mar 5, 2012, at 7:13 PM, nicolas HERSOG wrote: > I looked at my code in order to notice diffs. > > You should add return new_user() af

Re: django registration

2012-03-05 Thread nicolas HERSOG
I looked at my code in order to notice diffs. You should add return new_user() after your new_profile.save() On Mon, Mar 5, 2012 at 11:54 AM, Stanwin Siow wrote: > Greetings, > > How do i save a user's profile into the database once i entered the > details in my custom registration form? > > Al

django registration

2012-03-05 Thread Stanwin Siow
Greetings, How do i save a user's profile into the database once i entered the details in my custom registration form? Also right now when i'm testing it out, i get the following error: create_inactive_user() got an unexpected keyword argument 'profile_callback' What could be the problem here?

Is it worth refactoring a version 2 of django app to use reusable app

2012-03-05 Thread Amit Sethi
Hi all, My question is very simple , Is it worth refactoring an existing and running app for its version 2 , such that it uses reusable apps. Also is there a nice blog post on the benefits of reusable apps -- A-M-I-T S|S -- You received this message because you are subscribed to the Google Gro