Re: send an email to users after saving is_active=True

2010-05-04 Thread Sander
omething. > > On May 4, 2:45 pm, Sander wrote: > > > > > someone got an answer to this one? > > is there some kind of is_activated signal? > > > Sander > > > On Apr 3, 6:19 pm, Alessandro Ronchi > > wrote: > > > > I need to notify

Re: send an email to users after saving is_active=True

2010-05-04 Thread Sander
someone got an answer to this one? is there some kind of is_activated signal? Sander On Apr 3, 6:19 pm, Alessandro Ronchi wrote: > I need to notify users when an admin activate them saving their > profile withis_active=True. > > Is it possible? > How? > I need also to avo

Re: initial selected values in modelmultiplechoicefield

2010-04-01 Thread Sander
Never mind, alraidy fixed it. Was not aware that the "initial" wanted a dictionary, not a resultset now doing: dict = {} for arr in request.arrondissement.all(): dict[arr.id] = True form = SearchForm({'arrondissement': dict,}) On 1 apr, 16:14, Sand

initial selected values in modelmultiplechoicefield

2010-04-01 Thread Sander
Hi guys, This might be a very simple question but it's really driving me crazy for not working. I'm trying to set the initial selected values of a ModelMultipleChoiceField like this: class MyForm(forms.Form): arrondissement = forms.ModelMultipleChoiceField(queryset=Arrondissement.objects.all

Re: Email address in registration form

2010-03-18 Thread Sander
On 18 mrt, 04:01, Wiiboy wrote: > Hi guys, > I'm using a combination of the UserCreationForm and my own ModelForm > of my Profile model to create a registration form.  I want to get > users' email addresses, however, that seems to be a field in > contrib.auth.User, so it should be in UserCreatio

Re: Template u'base.html' cannot be extended, because it doesn't exist

2010-03-16 Thread Sander
ot;lawyer_views/right_bar.html" %} {% endif %} is this enough information for you? On 16 mrt, 13:41, Karen Tracey wrote: > On Tue, Mar 16, 2010 at 7:34 AM, Sander wrote: > > Ah, I understand, > > > I thought the actual error was the template

Re: Template u'base.html' cannot be extended, because it doesn't exist

2010-03-16 Thread Sander
Ah, I understand, I thought the actual error was the template could not be found. But the problem was that the base.html was raising an exception. Fixed the error and everything is fine. Thanks Karen. On 16 mrt, 13:14, Karen Tracey wrote: > On Tue, Mar 16, 2010 at 6:58 AM, Sander wr

Re: Template u'base.html' cannot be extended, because it doesn't exist

2010-03-16 Thread Sander
I'm using version 1.2 beta. Is there some kind of workaround? or do I have to downgrade to 1.1.1? On 16 mrt, 12:35, Karen Tracey wrote: > On Tue, Mar 16, 2010 at 5:16 AM, Sander wrote: > > Hi, > > > I got this error when I'm trying to run my project on a productio

Template u'base.html' cannot be extended, because it doesn't exist

2010-03-16 Thread Sander
ile extending it. when I remove the {% extends "base.html" %} tag the template loads like it should, so it looks like the path to the template dir is correct. settings.py: TEMPLATE_DIRS = ( '/home/sander/Web/django_projects/templates/', ) Am I missing something here? thanks,

Re: Permissions to see a view

2010-03-02 Thread Sander
Oops. must have overread that :S Sorry, On Mar 2, 5:18 pm, Shawn Milochik wrote: > Step 1: docs.djangoproject.com > > Step 2: mailing list. > > You skipped step > 1:http://docs.djangoproject.com/en/1.1/topics/auth/#limiting-access-to-... > > Shawn -- You received this message because you are

Permissions to see a view

2010-03-02 Thread Sander
Hi everybody! In my project I have 3 kind of users. During registration I create a user object and add them to the right group. In the admin site it's possible to add some permissions to the different groups but I'm not sure this is the right way to do what I want. For example I have an app Polls

Re: Scope of an app

2010-02-18 Thread Sander
I should do indeed. I'll probobly come back to this thread. Thanks again both On 18 feb, 15:25, Atamert Ölçgen wrote: > On Thursday 18 February 2010 15:41:40 Sander wrote:> let's say the following > (pure hypothetical): > > - an Manager can read questions at example.com/m

Re: Scope of an app

2010-02-18 Thread Sander
e a question is placed by a 'Employee' but thats fine Am I on the right track? Thanks On 18 feb, 14:03, Atamert Ölçgen wrote: > On Thursday 18 February 2010 14:43:07 Sander wrote: > > > Hello everybody, > > > I'm having a little hard time starting a Django

Scope of an app

2010-02-18 Thread Sander
'main' or 'core' app where I put these models? Or should I create different apps per functionality, or per entity? I hope you understand my question. Any response is much appriciated. Thanks in advance! Sander -- You received this message because you are subscribed to the Goo

Re: Multiple user types

2010-02-18 Thread Sander
Can you explain yourself a little bit more about the other one to one fields? Interrested in your ideas. On 17 feb, 14:13, David De La Harpe Golden wrote: > On 17/02/10 08:53, bruno desthuilliers wrote: > > > user.get_profile().student.student_number or > > user.get_profile().teacher.gender - bu

Re: Multiple user types

2010-02-17 Thread Sander
Sounds pretty straight forward. gonna try it out. Thanks! On 17 feb, 09:53, bruno desthuilliers wrote: > On Feb 16, 3:13 pm, Sander wrote: > > > > > Hello everybody, > > > I'm kinda new to Django, and just finished reading the Django book. > > Now I was

Multiple user types

2010-02-16 Thread Sander
Hello everybody, I'm kinda new to Django, and just finished reading the Django book. Now I was wondering the following when it comes to user management. In the Django documentation I found that storing additional information is acomplished by writing a new model and add a foreign key to the user.

Modular website with XML-based backend in Django?

2009-07-13 Thread Sander
I've been asked to find the most appropriate framework with which to implement the following: A website with 1. Modules, which separate (partially user-configurable) style, from user settings, from content. A bit like the igoogle modules. 2. ...which can be inserted in various places in a page,

Re: Database Security

2008-09-13 Thread Sander Steffann
Hi Mario, > DATABASE_HOST ="http://192.168.1.128"; DATABASE_HOST must contain a hostname or IP address, not an URL. You should remove the "http://"; part and check that the IP address is correct and reachable. - Sander --~--~-~--~~~--

Re: Template Language Design

2008-07-13 Thread Sander Steffann
/code.google.com/p/django-template-utils/. I think some of its features, like getting objects from a model, do not belong in a template language, but the {% if_greater %} tag can be very useful. I use it when I want to display a number below a certain value in r

Re: Announcing Deco: static content for Django

2008-05-12 Thread Sander Steffann
Hi, > I can't test it however because I am getting a 404 from the link > above. It's missing the trailing slash. Try http://grep.ro/projects/deco/ - Sander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: datetime 8 hours off

2008-04-22 Thread Sander Steffann
Hi, > The only safe way to run multiple Django instances with different > timezone settings is to run them in separate processes using mod_wsgi > daemon mode or fastcgi type solutions. We are using runfcgi with protocol=ajp, with proxy_ajp on the Apache side. Works great her

Re: Reloading only one Python interpreter with Apache

2007-11-04 Thread Sander Dijkhuis
Thanks for your replies, Kenneth and Graham! Graham explained my problem better than I could, and mod_wsgi looks very useful indeed. I'll try to install it this week, so also thanks for creating it. :-) Sander --~--~-~--~~~---~--~~ You received this me

Reloading only one Python interpreter with Apache

2007-11-03 Thread Sander Dijkhuis
On our Apache server, we're hosting multiple Django projects. The Apache configuration is like this: PythonAutoReload Off ServerName first.example.com SetHandler python-program SetEnv DJANGO_SETTINGS_MODULE first.settings PythonInterpreter first