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? > -- >

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

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

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

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

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

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 .

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

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

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 >

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

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

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

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

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? --~--~-~--~~~---~--~~

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:

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:

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

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

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: > > > > >

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

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,

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

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

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

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

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

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: > > ![CDATA[ sorry, then I don't know. Mike -- Those who cannot

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

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: ![CDATA[ -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com

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

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: > >