Re: REMOVE ME

2012-07-29 Thread kenneth gonsalves
On Sun, 2012-07-29 at 14:32 +0800, Russell Keith-Magee wrote: > On Sun, Jul 29, 2012 at 1:56 PM, David Lam > wrote: > > Try this from manage.py shell > > > DjangoMailListSubscription.objects.filter(email="collective...@gmail.com").delete() > > Andrew obviously wants to unsubscribe. are you

Re: Is there a way to use 'request.user' in a custom template tag without an inclusion tag?

2012-07-29 Thread Ash Courchene
Well holy crap!! context['user'] worked perfectly! I thought I would have to come up with some crazy workaround! Thank you kindly sir. On Sunday, 29 July 2012 15:03:13 UTC-4, Ash Courchene wrote: > > So I made a custom template tag that allows pieces of content to be edited > by the site admini

Re: Is there a way to use 'request.user' in a custom template tag without an inclusion tag?

2012-07-29 Thread Tomas Neme
> > class EditableNode(template.Node): > def __init__(self, location_name): > self.location_name = location_name.encode('utf-8').strip("'") > def render(self, context): > obj = Placeholder.objects.filter(location=self.location_name) > if request.user.is_authenticated(): > for x in obj: > return

Re: REMOVE ME

2012-07-29 Thread Tomas Neme
I'm very sorry. I got completely out of line. It's just something that irritates me a lot, and I'm not a native english speaker, and it may be I don't know the actual "value" of the word, I felt it was more funny than insulting. And I hadn't read your first reply. It won't happen again. -- "The

Re: ANN: pythonpackages.com beta

2012-07-29 Thread Alex Clark
Hi, On 7/28/12 11:57 PM, Marcin Tustin wrote: " Powered by Pyramid & Redis on Heroku . " You've got a nerve! :) Hah! Hey I like Django too :-) Alex On Sat, Jul 28, 2012 at 7:28 PM, Alex Clark mailto:acl...@aclark.net>>

Re: REMOVE ME

2012-07-29 Thread Russell Keith-Magee
I can't believe I actually have to say this, especially after having called someone on making an inappropriate joke, but calling someone an oaf is *definitely* not a behaviour we will tolerate on django-users. If you make a repeat of that kind of comment we'll ask you to leave. Yours, Russ Magee %

Re: Form validation using model data?

2012-07-29 Thread Kurtis Mullins
Just to get some more information about the problem; Do you allow your users to initially insert the Name+URL? When does this become "authenticated"? Maybe you could have two forms. One that allows users to add new Name+URL Objects (not sure what your object/Model is called) and another to allow t

Form validation using model data?

2012-07-29 Thread Paul
I have a model for Websites that has 3 fields: name, url and authenticated. With a form both the name and url can be changed, but when the website is authenticated i don't want to allow that the url changes. I'm thinking about making the url (form) field readonly but in html the field becomes s

Re: REMOVE ME

2012-07-29 Thread dipo . elegbede
lacrymol...@gmail.com, I think your choice of word is way off the mark. We should address everyone with some level of respect no matter how mad we are with their requests. Regards. Sent from my BlackBerry wireless device from MTN -Original Message- From: "lacrymol...@gmail.com" Sende

RE: REMOVE ME

2012-07-29 Thread lacrymol...@gmail.com
Remove yourself, you oaf. Every email from the list comes with instructions to do it. -Mensaje original- De: Andrew Miller Enviados: 29/07/2012 02:47:32 Asunto: REMOVE ME On Sun, Jul 29, 2012 at 10:43 AM, forthfan wrote: > Hi all, > > Being lazy, I want Django to validate the stuff

Re: Help for finance sector

2012-07-29 Thread Antoni Aloy
Hello, Your best chance is to try to locate your local django or python group. There you could find companies that could offer you development and bug-fixing. django people shows 93 registered users in Turkey https://people.djangoproject.com/tr/. Another chance is to post a job in Django jobs, o

Is there a way to use 'request.user' in a custom template tag without an inclusion tag?

2012-07-29 Thread Ash Courchene
So I made a custom template tag that allows pieces of content to be edited by the site administrator with the click of a link. For instance, if i put {% editable 'index_block_one' %}, it would return whatever content is in the Placeholder model I created with the name "index_block_one". The code

Re: Django: creating formset is very slow

2012-07-29 Thread Thorn
Hi Kottiyath, What is your solution exactly? I am experiencing the same problem. Simple formset takes minutes. Render_to_response method has mimetype parameter. Did you call this function with some argument? 66 Ocak 2009 Salı 14:10:08 UTC-5 tarihinde Kottiyath Nair yazdı: > > Hi all, >My

Re: form.save() fails silently - how to debug?

2012-07-29 Thread Derek
Finally (!) a solution. Turns out the problem is in line 53 of the code I originally posted: formset = client_dataform_layout(request.POST, instance=client) when I omit the ", instance=client" part, then all works as expected... I do need to understand the reason why that was causing a "si

Re: Read from an uploaded file and put data in a form for automatic Django validation

2012-07-29 Thread Derek
Have a look at: http://stackoverflow.com/questions/6091965/django-upload-a-file-and-read-its-content-to-populate-a-model On Sunday, 29 July 2012 04:43:15 UTC+2, forthfan wrote: > > Hi all, > > Being lazy, I want Django to validate the stuff I read from an uploaded > file as if it were being post

Re: need help on set_password()..............

2012-07-29 Thread Chris Lawlor
If you're using the User model from contrib.auth, you can simply use User.objects.create_user(username, email=None, password=password). This will create a new User object, and then call set_password() # forms.py class RegistrationForm(form.Form): username = forms.CharField() password = f

Re: django FastCGI configuration for Share Host.

2012-07-29 Thread Babatunde Akinyanmi
Hi, If you are using a shared host, I don't think you can choose if you use FCGI or WSGI. Your host will let you know and also give instructions on how to set up and launch your app. Why not check their documentation or just raise a ticket with your host's support team On 7/29/12, Александър Ботев

Re: django FastCGI configuration for Share Host.

2012-07-29 Thread Александър Ботев
On Jul 29, 3:42 pm, "Michael P. Soulier" wrote: > On 29/07/12 07:48 AM, Александър Ботев wrote: > > > Hi, > > So I followed all the instructions from the django web source about how to > > configure it, but all it seems > > it gives me a problem - I always get an error 500. > > My main concern and

Re: django FastCGI configuration for Share Host.

2012-07-29 Thread Michael P. Soulier
On 29/07/12 07:48 AM, Александър Ботев wrote: > Hi, > So I followed all the instructions from the django web source about how to > configure it, but all it seems > it gives me a problem - I always get an error 500. > My main concern and I think problem is that when I run my fcgi script it > give

Re: Models: Referencing A Model In Another App and Different Project

2012-07-29 Thread JJ Zolper
"As a general remark related to the issues that JJ has described... are there perhaps - or rather, should there be - pointers from the Django site that discuss some good practices to the overall approach of designing and building sites/projects/apps/databases - as opposed to the technical nitty

django FastCGI configuration for Share Host.

2012-07-29 Thread Александър Ботев
Hi, So I followed all the instructions from the django web source about how to configure it, but all it seems it gives me a problem - I always get an error 500. My main concern and I think problem is that when I run my fcgi script it gives me this: WSGIServer: missing FastCGI param REQUEST_MET

Re: form.save() fails silently - how to debug?

2012-07-29 Thread Derek
Just to follow up... I have tried using pdb - but stepping into the Django code goes through hundreds of lines of records and, to be honest, its not clear at all what I should be looking for or where I would expect to see errors... If there is any guidance in this respect, I would be happy to

Help for finance sector

2012-07-29 Thread Seyfullah Tıkıç
Hello, Do I have any way to get paid help from django developers? I work for some of the biggest finance corporations in Turkey, and I may need help in development or bug-fixing for my customers. And I may not have weeks to get help, how can I get corporate help from django community? Thank you.

Re: Is this possible using the Django ORM without raw SQL?

2012-07-29 Thread sbrandt
Yes, it sure isn't a one-to-one relationship technically, but maybe "weak" one-to-one relationships using a special type-field are an interesting approach. On the other hand, I don't know how much use cases there are for such a relation. In all cases, this would need a change to the database ba

Re: Models: Referencing A Model In Another App and Different Project

2012-07-29 Thread Derek
As a general remark related to the issues that JJ has described... are there perhaps - or rather, should there be - pointers from the Django site that discuss some good practices to the overall approach of designing and building sites/projects/apps/databases - as opposed to the technical nitty-