Automated Functional Testing

2009-07-08 Thread Software Testing Training
Automated Functional Testing By Bhrigu Malhotra ( http://www.qacampus.com ) First of all let me make you all aware that I’m a developer and what you are going to read further is a developer’s account, so it may sound to you like a layman tester. But what I’m going to share is something which has

Re: Problem with admin after moving to another machine

2009-07-08 Thread urukay
try deleting this table in you DB: django_admin_log this should erase all recent acions of admin, but i'm not sure, never done this :) R. diogobaeder-2 wrote: > > > No one? Just this: how do I delete my recent actions log? I think this > might be the problem... > > Thanks, > > Diogo > >

Re: Django way to design this model

2009-07-08 Thread urukay
Don't know if i understand you right, but you have to create two models (Species 1 & 2). And then you write a view, that will do the searching according parameters (Tolerance, pagination, species 1&2) But more details would help definetely. R. Divesh Gidwani wrote: > > > Hey, > > Newbie to

Re: deletion of multiple entries through CheckBox.

2009-07-08 Thread urukay
Sonal, i used Ajax, posted dict with id's that should be deleted. R. Sonal Breed wrote: > > > Hi all, > > I am trying to achieve the deletion of multiple comment/data entries > by selecting corresponding checkboxes like GMail or other mail apps. > These entries are stored individually as r

Re: How to custom render a checkbox list?

2009-07-08 Thread Bastien
Thank you Jashugan, that's the way I went too but I thought there was a cleaner method, right now it's working properly so I'll leave it alone but I'll have a look later to see if I can improve that. Bastien On Jul 8, 6:09 pm, Jashugan wrote: > On Jul 8, 5:26 am, Bastien wrote: > > > I would

pickle error when putting a form in session

2009-07-08 Thread yuccaplant
Hi all, When I try to put a form in session, I get pickle error: Can't pickle : it's not found as django.utils.functional.__proxy__ My setup: google app engine django trunk svn appengine_utilities session library python 2.5.1 (Os X Leopard) Any ideas? thanks in advance, pieter My Code:

Re: creating user directories upon account activation

2009-07-08 Thread Kenneth Gonsalves
On Thursday 09 Jul 2009 11:08:15 am neri...@gmail.com wrote: > profile.save() > try: > mkdir(MEDIA_ROOT + '/listings/' + user) > except IOError: > print "could not create folder." should that not be import os os.mkdir(MED

TemplateSyntaxError: No module named urls

2009-07-08 Thread diogobaeder
I searched for this kind of error in this group, but there were only old posts, from when django had different urls.py configs, so I'm asking for help on this: http://dpaste.com/64906/ Thanks in advance! Diogo --~--~-~--~~~---~--~~ You received this message becau

Re: Problem with admin after moving to another machine

2009-07-08 Thread diogobaeder
Alright, solved. I restored the db to an earlier state, and this bug no longer happens. Now I have another bug, but that's another thread. Thanks anyway. Diogo On Jul 9, 2:22 am, diogobaeder wrote: > No one? Just this: how do I delete my recent actions log? I think this > might be the problem.

creating user directories upon account activation

2009-07-08 Thread neri...@gmail.com
Hello, I'm trying to use mkdir to automatically create a user directory upon successful account activation. I'm attempting to use a try except to catch any error but I don't think I'm using it correctly. Thanks for any help. if SHA1_RE.search(activation_key): try:

Re: sending email from local machine

2009-07-08 Thread neridaj
I guess the dummy send_mail works, thanks. On Jul 8, 9:39 pm, Kenneth Gonsalves wrote: > On Thursday 09 July 2009 10:05:08 neridaj wrote: > > > I saw that link but I would actually like to send the email. > > do you have an smtp server running on the machine? > -- > regards > kghttp://lawgon.liv

Re: Problem with admin after moving to another machine

2009-07-08 Thread diogobaeder
No one? Just this: how do I delete my recent actions log? I think this might be the problem... Thanks, Diogo On Jul 8, 1:22 am, diogobaeder wrote: > Hi there, > > I started to have this error:http://dpaste.com/64355/ > while trying to access my admin site, after I moved my website from > one

Re: sending email from local machine

2009-07-08 Thread Kenneth Gonsalves
On Thursday 09 July 2009 10:05:08 neridaj wrote: > I saw that link but I would actually like to send the email. do you have an smtp server running on the machine? -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because

Re: sending email from local machine

2009-07-08 Thread Kalyan Lanka
If you want to send email, you have to establish connection with email server proxy or smtp server.. add the variables in this link to settings.py http://docs.djangoproject.com/en/dev/ref/settings/#email-host Cheers, Kalyan Lanka On Thu, Jul 9, 2009 at 12:35 AM, neridaj wrote: > > I saw that

Re: sending email from local machine

2009-07-08 Thread neridaj
I saw that link but I would actually like to send the email. On Jul 8, 9:24 pm, Kalyan Lanka wrote: > The following link describes to setup local dummy email server: > > http://docs.djangoproject.com/en/dev/topics/email/#testing-e-mail-sen... > > Cheers. > Kalyan Lanka > > On Thu, Jul 9, 2009 at

Re: sending email from local machine

2009-07-08 Thread Kalyan Lanka
The following link describes to setup local dummy email server: http://docs.djangoproject.com/en/dev/topics/email/#testing-e-mail-sending Cheers. Kalyan Lanka On Thu, Jul 9, 2009 at 12:21 AM, neri...@gmail.com wrote: > > Hello, > > I'm getting this error when trying to send mail: (61, 'Connect

sending email from local machine

2009-07-08 Thread neri...@gmail.com
Hello, I'm getting this error when trying to send mail: (61, 'Connection refused'). which global vars do I need to set and what do I need to set them to in order to send mail from my local machine? do I just need to change the defaults for EMAIL_HOST and EMAIL_PORT? Thanks, Jason --~--~

Re: Model methods remember parameters?

2009-07-08 Thread derefed
Ah! That's it. Thanks for your help! On Jul 8, 10:40 pm, James Bennett wrote: > On Wed, Jul 8, 2009 at 5:04 PM, derefed wrote: > > How is it that the method's local variables are being remembered? My > > problem is solved by clearing the list at the end of the method, but > > I'd like to know wh

Re: Multi select field with images

2009-07-08 Thread Tim Boy
What's the best way to make this "custom" widget. I can't find any information online with someone making a widget do anything different to the actual html of the widget. TIA On Wed, Jul 8, 2009 at 12:20 AM, mugisha moses wrote: > > you have to do a custom select widget . even if you passed th

Re: Model methods remember parameters?

2009-07-08 Thread James Bennett
On Wed, Jul 8, 2009 at 5:04 PM, derefed wrote: > How is it that the method's local variables are being remembered? My > problem is solved by clearing the list at the end of the method, but > I'd like to know why it acts like this is the first place. This is a common thing encountered by new Pytho

Model methods remember parameters?

2009-07-08 Thread derefed
I wrote a model method that takes a list as a parameter, like so: def printList(self, l=[]): retstr = '' if len(l) > 0 and self.title in l: retstr += str(l) + "Can't do it!" else: l.append(self.title) retstr += "List so far: " + str(l) return retstr This method is

Re: Django way to design this model

2009-07-08 Thread Juan Pablo Romero Méndez
Mhh... I don't fully understand your question. Regarding the radio buttons I think it is in the tutorial. What search fields are you talking about? Juan Pablo 2009/7/8 Divesh Gidwani : > > Hey, > > Newbie to Django, and have just finished part 2 of the tutorial on the > website, and need to spe

Re: Middleware help -- screwing up the admin

2009-07-08 Thread Ryan K
Please ignore this. I'm an idiot and placed the reference to the middleware in the template_context_processros settings. And so strange errors resulted. Please delete if possible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Middleware help -- screwing up the admin

2009-07-08 Thread Ryan K
I'm getting a very strange error: TypeError at /admin/ object.__new__() takes no parameters I've isolated the problematic code to my middleware for an application I built called staticpages. It uses the same mechanism and so the same middleware as flatpages. This is the code: from django.http

deletion of multiple entries through CheckBox.

2009-07-08 Thread Sonal Breed
Hi all, I am trying to achieve the deletion of multiple comment/data entries by selecting corresponding checkboxes like GMail or other mail apps. These entries are stored individually as rows in a DB table. How can my view function know which entry to delete based on the value of checkbox in temp

Re: Design a good scrapbook system

2009-07-08 Thread Sonal Breed
I know Aaron, I just wanted to get some start somewhere. Well, I have defined a very rudimentary table and started working on it and so far so good! Can comment and view comments of friends! I have another qiestion regarding the deletion of multiple comment entries by selecting corresponding chec

How do you layout your django project

2009-07-08 Thread lzantal
Hi All, I am looking for an optimal way to organize my django project apps/ templates/media. What is your directory layout looks like? Here is my current one djangoproject/ apps/ app1 app2 templates/ app1 app2 media/ stylesheet images javascript I install

How to configure LOGIN_URL

2009-07-08 Thread Mr. T
In the tutorial it is simply '/accounts/login' This worked fine until I switched to a production apache server. My login_required decorators were broken because the path is absolute, login_required doesn't use the apache prefix. What to do? --~--~-~--~~~---~--~~ Y

ANN: django-remember_me v0.1.1

2009-07-08 Thread creecode
Hello all, I discovered a bug in django-remember_me v0.1 having to do with not importing RequestSite which would cause a problem with websites that don't use the sites framework. I have released django-remember_me v0.1.1 . django-remember_me is a

Re: Problem with AD (LDAP) authentication

2009-07-08 Thread Frédéric Hébert
Hi, Maybe, should you put is_staff=True : http://docs.djangoproject.com/en/dev/topics/auth/#users Regards, Frédéric 2009/7/8 Technicalbard : > > I'm trying to write an Active Directory / LDAP authenication, and I'm > having problems.  The code is at: http://dpaste.com/hold/64752/ > > When

Re: Removing old Django - also django-admin.py?

2009-07-08 Thread Dave Everitt
nothing there - django dir already deleted. I just seem to have an extra copy of django-admin.py in: /Library/Frameworks/Python.framework/Versions/2.6/bin/ so I guess deleting it is okay, since the new install will presumably replace it with a new version at: /Library/Frameworks/Python.framework/

Re: Figuring out my memory usage for django + wsgi + apache prefork

2009-07-08 Thread Graham Dumpleton
On Jul 9, 3:44 am, Jumpfroggy wrote: > I'm running a bunch of django apps on my shared host with an 80mb > memory limit.  I have a bunch of very low-traffic sites I want to keep > running, but use as little memory as possible, so my goal is to > minimize the memory usage for each of these very

Re: Circular imports problem

2009-07-08 Thread Ryan K
Well all of the models are part of the same application. So here is the code: models.py: from django.db import models from django.db.models import signlas from django.dispatch import disaptacher from asqcom.apps.staticpages import signals from asqcom.abstract_models import CommonAbstractModel

Re: any ideas about "load testing" django apps?

2009-07-08 Thread Alex Gaynor
On Wed, Jul 8, 2009 at 3:52 PM, happyb787 wrote: > > Any ideas about load testing django apps? JMeter? Ab? > > Please advise. thanks! > > > > You'd use the same tools you use for any other HTTP application, I've heard good things about Ab and Siege. Alex -- "I disapprove of what you say, bu

Re: get_or_create() returns "no such savepoint" error

2009-07-08 Thread Steve Howell
See below. On Jul 8, 10:49 am, Karen Tracey wrote: > On Tue, Jul 7, 2009 at 9:05 PM, Steve Howell wrote: > > > On Jul 7, 3:07 pm, Karen Tracey wrote: > > > > > On Jun 29, 10:53 am, Steve Howell wrote: > > > > > Hi, I have created a management command that populates some tables in > > > > > a

Problem with AD (LDAP) authentication

2009-07-08 Thread Technicalbard
I'm trying to write an Active Directory / LDAP authenication, and I'm having problems. The code is at: http://dpaste.com/hold/64752/ When I set this authentication and then try to go to http://localhost:8000/admin and login to the development server, it authenticates against the LDAP server (the

Re: Design a good scrapbook system

2009-07-08 Thread Aaron Maxwell
On Wednesday 08 July 2009 09:07:54 am Sonal Breed wrote: > Hi all, > Can anyone tell me how to design a good scrapbook system like Orkut or > Facebook > where user can scrap or comment on other user's profile. I am trying > to develop this for a social networking site built in Django.. Well, this

any ideas about "load testing" django apps?

2009-07-08 Thread happyb787
Any ideas about load testing django apps? JMeter? Ab? Please advise. thanks! --~--~-~--~~~---~--~~ 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.co

Re: Circular imports problem

2009-07-08 Thread Alex Gaynor
On Wed, Jul 8, 2009 at 3:45 PM, Ryan K wrote: > > I am creating an application that uses the dispatcher in Django. In > the apps models.py file I connect the post_save of two models to > functions in a signals.py file. The problem is that I need to use > several models in models.py and that leads

Circular imports problem

2009-07-08 Thread Ryan K
I am creating an application that uses the dispatcher in Django. In the apps models.py file I connect the post_save of two models to functions in a signals.py file. The problem is that I need to use several models in models.py and that leads to a circular import. What is the best way to solve this

Re: edit form not working with imagefield

2009-07-08 Thread geraldcor
Thank you all. This plugin really did the trick http://malsup.com/jquery/form/. One line of code makes it work and you can expand from there. Worked really well. I highly recommend it for form uploads with ajax and jquery. On Jul 7, 3:02 pm, Xiong Chiamiov wrote: > On Jul 7, 1:22 pm, Adam Jenkin

Re: Admin login needs to be https

2009-07-08 Thread Randy Barlow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bax...@gretschpages.com declared: > I need my admin login page to be https rather than http. > > I'm using SSLRedirect middleware, and it works beautifully every > place else I need an https page. Problem is, on the admin login, I > can't find the U

Re: Django RSS Feeds with adsense

2009-07-08 Thread Mike Ramirez
On Wednesday 08 July 2009 12:51:16 pm Alessandro Ronchi wrote: > 2009/7/8 Mike Ramirez > > > Wrap the script code with > > > > See: http://www.w3schools.com/xmL/xml_cdata.asp > > > > Mike > > It's parsed too: > >

Admin login needs to be https

2009-07-08 Thread bax...@gretschpages.com
I need my admin login page to be https rather than http. I'm using SSLRedirect middleware, and it works beautifully every place else I need an https page. Problem is, on the admin login, I can't find the URL. I don't care if the admin as a whole is https. Honestly, I think I'd prefer it wasn't,

Re: Django RSS Feeds with adsense

2009-07-08 Thread Alessandro Ronchi
2009/7/8 Mike Ramirez > Wrap the script code with > > See: http://www.w3schools.com/xmL/xml_cdata.asp > > Mike > > It's parsed too:

Re: Removing old Django - also django-admin.py?

2009-07-08 Thread Rajesh D
On Jul 8, 3:18 pm, Dave E wrote: > I've just removed my old Django 1.0 dir to install 1.1 (as per the > instructions on the Django > site):http://docs.djangoproject.com/en/dev/topics/install/#removing-old-ver... > > But this leaves django-admin.py under (on Mac OS 10.4.11): > /Library/Framewor

Re: Django RSS Feeds with adsense

2009-07-08 Thread Mike Ramirez
On Wednesday 08 July 2009 12:35:29 pm Alessandro Ronchi wrote: > I need to put an HTML code in my feeds, but if I put the adsense code in my > feed description it's escaped for XML. Is there a way to add the code > without having it escaped? > > This is my code: > >