Re: raw_id_fields admin widget not showing search icon

2013-05-15 Thread Russell Keith-Magee
On Thu, May 16, 2013 at 6:34 AM, Adrián López Calvo < adrianlopezca...@gmail.com> wrote: > > > Hello, > > I have the following code in my admin.py: > > class UserManagedGroupAdmin(admin.ModelAdmin): > inlines = [MembershipInline] >

Re: ajax get json not receive data from django

2013-05-15 Thread Hai Nguyen
On Wednesday, May 15, 2013 11:54:43 PM UTC+7, Hai Nguyen wrote: > > Hello All, > > I use django 1.4 run on ubutu. > I'm trying to use jquery/ajax to display data returned from a django > method. > > *my file views.py* > > from django.http import HttpResponse, Http404, HttpResponseRedirect >

raw_id_fields admin widget not showing search icon

2013-05-15 Thread Adrián López Calvo
Hello, I have the following code in my admin.py: class UserManagedGroupAdmin(admin.ModelAdmin): inlines = [MembershipInline] search_fields = ('name', 'leader__username', ) list_display = ('__unicode__', 'leader', )

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 4:44 PM, Larry Martell wrote: > On Wed, May 15, 2013 at 9:47 AM, Tom Evans wrote: >> On Wed, May 15, 2013 at 4:19 PM, Larry Martell >> wrote: >>> On Wed, May 15, 2013 at 9:04 AM, Tom Evans

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 9:47 AM, Tom Evans wrote: > On Wed, May 15, 2013 at 4:19 PM, Larry Martell > wrote: >> On Wed, May 15, 2013 at 9:04 AM, Tom Evans wrote: >>> On Wed, May 15, 2013 at 3:38 PM, Larry Martell

Re: Django with 2 subapps with same name

2013-05-15 Thread Andre Terra
Despite possibly working with different app_labels, I believe the point still stands that if the storage and invoice apps share a lot of functionality among vendors, they should just be 'invoice' and 'storage' and allow for pluggable companies. Cheers, AT On Mon, May 13, 2013 at 12:02 PM, Tom

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 12:50 PM, Larry Martell wrote: > On Wed, May 15, 2013 at 11:32 AM, Bill Freeman wrote: >>> > If there are other values you want to send that are not form inputs, one >>> > option is to url encode them and add them as query

Has anybody used Django with Firebird?

2013-05-15 Thread Rafael E. Ferrero
Hello, like subject says... has anybody used Django with Firebird database? its http://code.google.com/p/django-firebird/ a good backend? or tested other backend?? Change database it is not an option. thanks! -- Rafael E. Ferrero -- You received this message because you are subscribed to the

Re: Get url parameters

2013-05-15 Thread Sandro Dutra
gfsp = GridFSProxy() gfsp.variable Where variable is the variable name that contains the data storing the number you want yo retrieve. I think it can solve your problem. 2013/5/15 Hélio Miranda : > So I mean the client side in my application I have to be able to access only >

Re: Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-15 Thread Ryan Nowakowski
On Thu, May 09, 2013 at 01:50:18AM -0700, Hélio Miranda wrote: > No, I'm not using GridFSStorage. > > I was just using mongoengine, with FileField field. > > To get the image have to use GridFSStorage? > How to use it? > GridFSStorage[1] is a Django storage backend[2]. You can override the

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 11:32 AM, Bill Freeman wrote: > > > > On Wed, May 15, 2013 at 1:09 PM, Larry Martell > wrote: >> >> On Wed, May 15, 2013 at 9:51 AM, Bill Freeman wrote: >> > If you are saying that you have other inputs in

Re: url tag: "'str' object has no attribute 'regex'"

2013-05-15 Thread quilpy
thanks, that helped On Tuesday, 2 April 2013 08:45:32 UTC+5:30, Wenliang Chen wrote: > > Hi, > > I got the same issue. And I solved it doing this: > > urlpatterns= patterns('', > (r'^login/$', 'django.contrib.auth.views.login'), <-Remove the > last comma in the patterns() > ) > > Hope

Re: Forcing group_by on a field other than id

2013-05-15 Thread Brian Millham
That isn't what I was looking to do. Here a more detailed explanation. Datebase setup: Table 1 - Song: id | artist| album | title ---++-+- 1 | Artist 1 | Album 1 | Song 1 2 | Artist 1 | Album 2 | Song 1 3 | Artist 1 | Album 3 | Song 1 4 | Artist 2 |

Re: Getting file list and other paramters

2013-05-15 Thread Bill Freeman
On Wed, May 15, 2013 at 1:09 PM, Larry Martell wrote: > On Wed, May 15, 2013 at 9:51 AM, Bill Freeman wrote: > > If you are saying that you have other inputs in the form, and that you > are > > not getting them in request.POST, you may not be

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 9:51 AM, Bill Freeman wrote: > If you are saying that you have other inputs in the form, and that you are > not getting them in request.POST, you may not be specifying the correct > enctype attribute in the form tag (should be multipart/form-data).

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 9:47 AM, Tom Evans wrote: > On Wed, May 15, 2013 at 4:19 PM, Larry Martell > wrote: >> On Wed, May 15, 2013 at 9:04 AM, Tom Evans wrote: >>> On Wed, May 15, 2013 at 3:38 PM, Larry Martell

ajax get json not receive data from django

2013-05-15 Thread Hai Nguyen
Hello All, I use django 1.4 run on ubutu. I'm trying to use jquery/ajax to display data returned from a django method. *my file views.py* from django.http import HttpResponse, Http404, HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template

Re: How to Handle XML and CSV processing in Django

2013-05-15 Thread Muhammad Ali
Philip, thank you for the tutorial. That comes in very handy as well. All the best. :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Glad that it worked On Wed, May 15, 2013 at 11:52 AM, Cody Scott wrote: > The problem was that the LDAPSearch had to start with a OU= I had it start > with a DC=. > > > On Wednesday, 15 May 2013 11:27:08 UTC-4, Cody Scott wrote: >> >> I have that code but where does

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
The problem was that the LDAPSearch had to start with a OU= I had it start with a DC=. On Wednesday, 15 May 2013 11:27:08 UTC-4, Cody Scott wrote: > > I have that code but where does the logging go? > > On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: >> >> Ok. Now try to get

Re: Getting file list and other paramters

2013-05-15 Thread Bill Freeman
If you are saying that you have other inputs in the form, and that you are not getting them in request.POST, you may not be specifying the correct enctype attribute in the form tag (should be multipart/form-data). If there are other values you want to send that are not form inputs, one option is

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Its just basic python logging http://docs.python.org/2/library/logging.html Look at logging to a file http://docs.python.org/2/howto/logging.html#logging-advanced-tutorial Regards, Guddu On Wed, May 15, 2013 at 11:27 AM, Cody Scott wrote: > I have that code but

Re: Getting file list and other paramters

2013-05-15 Thread Tom Evans
On Wed, May 15, 2013 at 4:19 PM, Larry Martell wrote: > On Wed, May 15, 2013 at 9:04 AM, Tom Evans wrote: >> On Wed, May 15, 2013 at 3:38 PM, Larry Martell >> wrote: >>> I have a form with an upload files button. The

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I have that code but where does the logging go? On Wednesday, 15 May 2013 11:04:33 UTC-4, Guddu wrote: > > Ok. Now try to get django-ldap-auth working. See if you can enable the > logging handler and grab some more information. > > http://pythonhosted.org/django-auth-ldap/logging.html > >

Re: Getting file list and other paramters

2013-05-15 Thread Larry Martell
On Wed, May 15, 2013 at 9:04 AM, Tom Evans wrote: > On Wed, May 15, 2013 at 3:38 PM, Larry Martell > wrote: >> I have a form with an upload files button. The form is POSTed so that >> I can get the file list in HttpRequest.FILES (which is only

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Ok. Now try to get django-ldap-auth working. See if you can enable the logging handler and grab some more information. http://pythonhosted.org/django-auth-ldap/logging.html Regards Guddu On Wed, May 15, 2013 at 10:56 AM, Cody Scott wrote: > Ok The problem was that I

Re: Getting file list and other paramters

2013-05-15 Thread Tom Evans
On Wed, May 15, 2013 at 3:38 PM, Larry Martell wrote: > I have a form with an upload files button. The form is POSTed so that > I can get the file list in HttpRequest.FILES (which is only populated > for a POST). But I have other parameters I want to pass back as well >

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
Hi Cody In the link that you sent i see that initialize is a valid attribute. Also did you name your python file as ldap.py? If yes then that's the problem i guess. Please rename it to something else and see what it gives you. Could you run these in a Python interpreter and tell me what does

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
Ok The problem was that I had the file named ldap.py. I got it to work, I had to add a print to l.result(result) put I get a tuple of a number and an empty list (#, []) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Getting file list and other paramters

2013-05-15 Thread Larry Martell
I have a form with an upload files button. The form is POSTed so that I can get the file list in HttpRequest.FILES (which is only populated for a POST). But I have other parameters I want to pass back as well (which I cannot do in POST). So I changed it to a GET, but now the list of files is a

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
http://dpaste.org/EboQU/ On Wednesday, 15 May 2013 10:09:01 UTC-4, Guddu wrote: > > What does this give you? > > import ldap > dir(ldap) > > Regards > Guddu > > On Wed, May 15, 2013 at 10:04 AM, Cody Scott > > wrote: > >> I put that code in a separate python file and ran

Look at GridFS image by image id

2013-05-15 Thread Hélio Miranda
Hi I am in my application to insert images in GridFS. And I can go search them by name or id of the record that contains the photo, like this: *my_painting Painting.objects = (id = '51938efa8774a71a20e6d69e '). first () * *my_painting.photo.read print ()* Now if I want to see the image by image

Re: django-auth-ldap

2013-05-15 Thread Anurag Chourasia
What does this give you? import ldap dir(ldap) Regards Guddu On Wed, May 15, 2013 at 10:04 AM, Cody Scott wrote: > I put that code in a separate python file and ran it without django or > django-auth-ldap. > > l = ldap.initialize() > AttributeError: 'module' object

Re: django-auth-ldap

2013-05-15 Thread Cody Scott
I put that code in a separate python file and ran it without django or django-auth-ldap. l = ldap.initialize() AttributeError: 'module' object has no attribute 'initialize' so python-ldap is not installed properly? I am not able to login, no error just invalid credentials. How do I get

Re: Django & Oracle connection problem

2013-05-15 Thread Dylan Klomparens
Oops! I was thinking about a different problem, and realized that I gave you some bad information. Please disregard the last message. I will paste some of the installation instructions for the Oracle Full Client I wrote up for my organization: Create a Linux user called 'oracle'. Create the

Re: Django & Oracle connection problem

2013-05-15 Thread Dylan Klomparens
This bug was filed as ticket 19720 ( https://code.djangoproject.com/ticket/19720) and resolved. It should not be a problem if you are using version 1.4.* or 1.5.* of Django. Additionally, the fact that you get the same information when you attempt to login with another SQL client leads me to

Re: Handling delete and ability to support undo

2013-05-15 Thread Dan Gentry
A couple of thoughts: Override the delete() method in your model to set the flag to True rather than delete the record. Write a manager that filters out the 'deleted' records. Use it for every query, except those used to retrieve or undo. On Monday, May 13, 2013 3:07:16 PM UTC-4, Subodh

Re: Get url parameters

2013-05-15 Thread Hélio Miranda
So I mean the client side in my application I have to be able to access only the id, then just send the id and not ? Could not sending as it is in django to extract just the number of the url? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Get url parameters

2013-05-15 Thread Sandro Dutra
Your view is returning a GridFSProxy object, not a class/method variable. You've to call a instance of your GridFSProxy, so you'll can access the relative data. 2013/5/15 Hélio Miranda : > Hi > > I need to get a parameter from the url and do not know how. > If my url looks

Get url parameters

2013-05-15 Thread Hélio Miranda
Hi I need to get a parameter from the url and do not know how. If my url looks like this: * http://localhost:8080/test/view/20519364e38774a71190edb28c* I did like this: *url(r'^view/(?P\w+)', 'rest.views.view'),* And everything ok. Now I have a url like this: *http://localhost:8080/test/view/*

ModelForm localize on Select()??

2013-05-15 Thread Christian Schmitt
Hello, I have a problem with localization and Select() Box, I have the values: 2.00 2.40 3.20 4.00 in my Database, but in Germany we use the number format: 2,00 2,40 3,20 4,00 Now I tried to Localize my modelform with: class LocalizedModelForm(django.forms.ModelForm): def __new__(cls, *args,

Why is ValidationError('bla').message a list

2013-05-15 Thread Matthys Kroon
Hi all, I hope this is the right place to ask the question. I searched around a little but didn't find an answer. I'd like to know why the developers decided to break the "open/closed" principle by modifying the behavior of the ValidationError class so that it no longer behaves like the parent

Re: Django & Oracle connection problem

2013-05-15 Thread Michael Van
I have the same error when python managment runserver : cx_Oracle.DatabaseError: ORA-28547: connection to server failed, probable Oracle Net admin error and this Error infomation is the same when I type sqlplus try to login. My os is Xubuntu13.10, and I installed oracle-instance on ubuntu, so I

Senior Django Developer position in Berlin based startup

2013-05-15 Thread Jonathan Fiebelkorn
Good Day, we are looking for a proficient Djangonaut to join our recently funded startup, based in Berlin, as a full-time senior developer. *Who we are:* www.machtfit.de We help companies to support their employees in living a healthy and active life. Using the magnificient Django

Re: Pls help me

2013-05-15 Thread Roberto López López
To begin with, CharField needs a max_length parameter. On 05/15/2013 11:58 AM, Nat wrote: > My codes below do not work, please help me correct them... Thanks in > advance > > urlpatterns = patterns('symphony.accounts.views', > (r'^email/change/$', 'email_change'), >

Re: Pls help me

2013-05-15 Thread Daniel Roseman
On Wednesday, 15 May 2013 10:58:32 UTC+1, Nat wrote: > My codes below do not work, please help me correct them... Thanks in > advance > >> >> No. You haven't said what does not "work". What happens? What doesn't happen? What errors do you get? Be specific. -- DR. -- You received this message

the whole object tools depend on has_add_permission

2013-05-15 Thread Hadi Sunyoto
what i want to do: i want to add link beside add object in change_list.html the link will be displayed only to selected groups what i do is overriding the change_list.html block object-tools from: change_list.html {% block content %} {% block object-tools %} {% if

Insert multiple images in the same register in GridFS

2013-05-15 Thread Hélio Miranda
Hi In my Django application and I am mongodb insert photos in GridFS from mongo. Enter only one photo in a record, everything ok. Now when I want to enter more than one, I'm not getting. I'm set as a list, but it gives error. I'm doing this test to start: *Painting class (Document):* *

Re: Pls help me

2013-05-15 Thread Nat
My codes below do not work, please help me correct them... Thanks in advance urlpatterns = patterns('symphony.accounts.views', (r'^email/change/$', 'email_change'), url(r'^email/change/done/$', direct_to_template, {'template': 'registration/email_change_done.html'},