RegexURLResolver initiation question

2013-05-16 Thread andrew
Hi all, After execution of __init__ of RegexURLResolver, its fields _regex_dict, _reverse_dict, _namespace_dict, and _app_dict, all have an entry in them, such as dict: {'en-us': <_sre.SRE_Pattern object at 0x02D83720>}, but it's expected all the dicts should be empty because they are

RegexURLResolver initiation question

2013-05-16 Thread andrew
Hi all, after __init__ of RegexURLResolver, its attributes _regex_dict, _reverse_dict, _app_dict, all have one entry inside them, like dict: {'en-us': <_sre.SRE_Pattern object at 0x02D83720>}, but actually they are all assigned to { } in the __init__, I don't know why not dict is empty but has

Re: Disable "Password Upgrading"?

2013-05-16 Thread Kurtis Mullins
I didn't get around to testing the mentioned location of changing the password_hasher. After further investigation, I realized that the password hashes use a static hash and I was using a dynamic (per-user) hash. *Just in case anyone runs into this problem (non-static Hash)*: My solution was to

Re: Noob: How do I get this app to work :(

2013-05-16 Thread Todd Wickizer
I have a feeling that this application is too old to use and is missing too much code? -- 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: Disable "Password Upgrading"?

2013-05-16 Thread Kurtis Mullins
It took some digging but I believe I found the answer, just in case anyone else comes across this problem. I'll post again after I've tested this. https://github.com/django/django/blob/1.5.1/django/contrib/auth/hashers.py#L20 On Tue, May 14, 2013 at 6:05 PM, Kurtis

Django 1.6 Connection Pooler

2013-05-16 Thread Joe Jasinski
Hi all, So I hear that Django 1.6 will ship with a connection poolerbuilt in, which is awesome. Does this remove the need to have a stand-alone service such as pgbouncer, or am I misunderstanding how the new

Re: HttpResponse.has_header

2013-05-16 Thread Larry Martell
On Tue, May 14, 2013 at 7:32 AM, Larry Martell wrote: > On Sat, May 11, 2013 at 9:08 AM, Masklinn wrote: >> >> On 2013-05-11, at 17:01 , Larry Martell wrote: >> >>> On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote: On

Re: HttpResponse.has_header

2013-05-16 Thread Larry Martell
On Thu, May 16, 2013 at 2:59 PM, Masklinn wrote: > > On 2013-05-16, at 22:41 , Larry Martell wrote: > >> On Thu, May 16, 2013 at 2:37 PM, Masklinn wrote: >>> >>> On 2013-05-16, at 22:22 , Larry Martell wrote: >>> On Sat, May 11, 2013 at 8:23 AM,

Re: HttpResponse.has_header

2013-05-16 Thread Masklinn
On 2013-05-16, at 22:41 , Larry Martell wrote: > On Thu, May 16, 2013 at 2:37 PM, Masklinn wrote: >> >> On 2013-05-16, at 22:22 , Larry Martell wrote: >> >>> On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote: On 2013-05-11, at 15:57 , Larry

Noob: How do I get this app to work :(

2013-05-16 Thread Todd Wickizer
Hello there, I just install Django yesterday. I am trying to take a calendar app and edit it for my own means. Unfortunately I am a little confused on how to create the Urls.py file to match the application. Here is the application.

Re: HttpResponse.has_header

2013-05-16 Thread Larry Martell
On Thu, May 16, 2013 at 2:37 PM, Masklinn wrote: > > On 2013-05-16, at 22:22 , Larry Martell wrote: > >> On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote: >>> On 2013-05-11, at 15:57 , Larry Martell wrote: Yes, that is what I did. This is

Re: HttpResponse.has_header

2013-05-16 Thread Masklinn
On 2013-05-16, at 22:22 , Larry Martell wrote: > On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote: >> On 2013-05-11, at 15:57 , Larry Martell wrote: >>> >>> Yes, that is what I did. This is not in my urlconf. It's in a view >>> function. I replaced: >>> >>> return

Re: HttpResponse.has_header

2013-05-16 Thread Larry Martell
On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote: > On 2013-05-11, at 15:57 , Larry Martell wrote: >> >> Yes, that is what I did. This is not in my urlconf. It's in a view >> function. I replaced: >> >> return direct_to_template(request, template) >> >> by: >> >> return

Hiring Django developers

2013-05-16 Thread Jack Hanna
We are looking to hire Django developers at the following locations: Los Angeles, CA San Diego, CA Seattle, WA Kuala Lumpur, Malaysia Skills & Requirements: Must be at least intermediate or Expert level Python programmer. Deep experience in building and deployment of Django/Python based web

Re: Django setup with elsatic beanstalk

2013-05-16 Thread yehudaprizont
I'm having a similar problem - I don't see errors from the EB console - but django is not loaded I still get the standard AWS EB page. I have tried editing settings.py and app.config according to this tutorial: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html

Re: newbie- delete confirmation

2013-05-16 Thread Lucas Magnum
http://ccbv.co.uk/projects/Django/1.4/django.views.generic.edit/DeleteView/ As you can see, when you send a post request to DeleteView it execute the "delete" method of object. What o have to do is, send a post request for your view. In template you can put a submit input with value "confirm"

Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
Nevermind, adding this to the ModelAdmin of my User proxy made the deal. Or so it seems. def get_model_perms(self, request): return {} Thanks again, Adrián On Thursday, May 16, 2013 4:22:43 PM UTC+2, Adrián López Calvo wrote: > > That was it, thank you Russell. > > Any way to register

Re: ajax get json not receive data from django

2013-05-16 Thread Alex Chiaranda
aren't you missing the csrf_token ? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax On Thursday, May 16, 2013 8:53:36 AM UTC-3, Hai Nguyen wrote: > > Thanks you for your answer. > I'm trying to change mimetype="application/json; charset=utf-8" but could > not resolve problem > >

Re: Getting file list and other paramters

2013-05-16 Thread Tom Evans
On Thu, May 16, 2013 at 2:07 PM, Larry Martell wrote: > In my case they did not have display:none, they just had > disabled="True". I can't make them hidden, I do want them shown, just > not editable by the user. > Your csrftoken input is inside a div that has style

Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
That was it, thank you Russell. Any way to register that model exclusively for this functionality, without showing its page in the main menu? It's only a proxy of User so the information is completely redundant... On Thursday, May 16, 2013 6:25:02 AM UTC+2, Russell Keith-Magee wrote: > > > >

newbie- delete confirmation

2013-05-16 Thread tony gair
I'm making a cbv with django braces I'm wanting to delete a record with a confirm form , does anyone know of an exampple to show me how to do this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
Hi, You should change the mimetype on HttpRequest from mimetype="application/ javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". On Wednesday, May 15, 2013 7:54:43 PM UTC+3, Hai Nguyen wrote: > > Hello All, > > I use django 1.4 run on ubutu. > I'm trying to use jquery/ajax

Re: Getting file list and other paramters

2013-05-16 Thread Larry Martell
On Thu, May 16, 2013 at 2:34 AM, Tom Evans wrote: > On Wed, May 15, 2013 at 6:08 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

django-tastypie REST update or delete resource with username

2013-05-16 Thread psychok7
Hi there i am using django tastypie and i can update (PUT) a resource if i provide an id like this : http://mysite.com:8000/api/v1/user/1/ But my question is, can i do an update without the id (pk) but with a username instead? And if yes, how can i do that? It would be something like this :

Re: ajax get json not receive data from django

2013-05-16 Thread Hai Nguyen
Thanks you for your answer. I'm trying to change mimetype="application/json; charset=utf-8" but could not resolve problem On Thursday, May 16, 2013 3:02:52 PM UTC+7, Zoltán Bege wrote: > > I mean HttpResponse. Sorry! :) > > Hi, >> >> You should change the mimetype on HttpResponse from

Django in the Mac App Store with BitNami

2013-05-16 Thread victoria
Hi, I guess that most of you already have a Django development environment set up. However I want to share this with the django users. In BitNami we have been packaging Django for a while together with Python, Apache and MySQL/PostgreSQL and providing one-click deployment options. Now we have

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

2013-05-16 Thread Hélio Miranda
But then so was not save in mongodb but in a folder on the server right? And then as these associated files to records that are in mongodb? And I'm not using Models, I am using as mongoengine: *class Movie(mongoengine.Document):* *MovieTitle = StringField(max_length=100, required=False)* *

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

2013-05-16 Thread Hélio Miranda
But then so was not save in mongodb but in a folder on the server right? And then as these associated files to records that are in mongodb? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Getting file list and other paramters

2013-05-16 Thread Tom Evans
On Wed, May 15, 2013 at 6:08 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: Django & Oracle connection problem

2013-05-16 Thread Jani Tiainen
If you want just to connect Oracle but not run server locally using instant client is much more easier option to setup. On Wed, 15 May 2013 02:43:36 -0700 (PDT) Michael Van wrote: > I have the same error when python managment runserver : > cx_Oracle.DatabaseError:

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
I mean HttpResponse. Sorry! :) Hi, > > You should change the mimetype on HttpResponse from mimetype="application/ > javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To