Re: pre_save on password

2014-07-01 Thread Philip Mountifield
If the username/whatever is available within the hasher you could create a subclass of the hasher you're using in Django and intercept the plain-text password there, call your API and then call the superclass? Phil On 01/07/2014 13:27, guillaume wrote: Hi Tom, Yes indeed, I know that page,

Re: How does threading and processes work in Django

2012-10-26 Thread Philip Mountifield
this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1

Re: Error: App with label world could not be found. Are you sure your INSTALLED_APPS setting is correct?

2012-09-07 Thread Philip Mountifield
django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fax +44 (0) 1225 4

Re: Django static files STATIC_ROOT vs STATICFILES_FINDERS

2012-04-23 Thread Philip Mountifield
from the STATIC_ROOT as well ? On Apr 23, 12:38 pm, Philip Mountifield<pmountifi...@formac.net> wrote: There is a slight difference: * STATIC_ROOT is where you would like the files to be collected to when you run "manage.py collectstatic" and should be empty to begin

Re: Django static files STATIC_ROOT vs STATICFILES_FINDERS

2012-04-23 Thread Philip Mountifield
test/testproj/static/' STATICFILES_DIRS = ( ) Based on the STATICFILES_DIRS comment (Additional locations of static files) I expected I will only need to use it if I have multiple static files directory which doesn't seem to be the case. What am I missing here? -- Philip Mountifield Formac Electronics L

Re: python list in javascript

2012-04-20 Thread Philip Mountifield
"title" is never defined in that code snippet so it would be None. Did you mean "key"? The syntax looks wrong too for assigning to someobject. On 20/04/2012 13:53, dummyman dummyman wrote: Hi, I have a python dictionary which i want to add to the javascript object on load in django template

Re: Dynamically generated models using exec. Is it too custly?

2012-04-17 Thread Philip Mountifield
ic_models>. It may be similar to what you're looking for. Even if you don't want the code, you can see a way of dynamically generating models. On Mon, Apr 16, 2012 at 12:40 PM, Philip Mountifield <pmountifi...@formac.net <mailto:pmountifi...@formac.net>>

Re: Dynamically generated models using exec. Is it too custly?

2012-04-17 Thread Philip Mountifield
ic_models>. It may be similar to what you're looking for. Even if you don't want the code, you can see a way of dynamically generating models. On Mon, Apr 16, 2012 at 12:40 PM, Philip Mountifield <pmountifi...@formac.net <mailto:pmountifi...@formac.net>> wrote:

Re: Dynamically generated models using exec. Is it too custly?

2012-04-16 Thread Philip Mountifield
to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fax +44 (0) 1225 430995 pmountifi...@formac.net www.formac.net www.telgas.net -- You received t

Re: Using the backend database to secure a page on the frontend

2012-04-02 Thread Philip Mountifield
://127.0.0.1:8000/login/?next=/helpline2/ Django Version: 1.3 beta 1 SVN-15046 Exception Type: TemplateDoesNotExist Exception Value:registration/login.html I must be doing something dull, anyone got any ideas? On Mar 30, 11:02 am, Philip Mountifield<pmountifi...@formac.net>

Re: Using the backend database to secure a page on the frontend

2012-03-30 Thread Philip Mountifield
gin to see the page. Any tips or links off to documentation would be really helpful. Thanks -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fax +44 (0) 1225 430995 pmountifi...@formac.net www.formac.net www.telgas.net -- You received this message because you are

Re: Why does collectstatic finds static files in admin 'media' directory?

2011-11-15 Thread Philip Mountifield
c”. I haven’t added anything to STATICFILES_DIRS or STATICFILES_FINDERS Thanks for clarification. PS: I am upgrading from 1.2.5 to 1.3.1 so my setting.py file is actually an "old one” with the added settings for the static stuff. -- Philip Mountifield Formac Electronics Ltd tel +44 (0

Re: Newbee question about PostgreSQL

2011-10-17 Thread Philip Mountifield
the service. Of course :) Nico On Oct 17, 2:47 pm, Philip Mountifield<pmountifi...@formac.net> wrote: Have you sent a HUP signal to the postmaster or restarted the service since making those changes? Regards, Phil -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fax

Re: Newbee question about PostgreSQL

2011-10-17 Thread Philip Mountifield
what I overlook here? Regards, Nico -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fax +44 (0) 1225 430995 pmountifi...@formac.net www.formac.net www.telgas.net -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-27 Thread Philip Mountifield
On 26/09/2011 11:37, Matthias Kestenholz wrote: On Mon, Sep 26, 2011 at 12:36 PM, Matthias Kestenholz<m...@spinlock.ch> wrote: On Mon, Sep 26, 2011 at 12:34 PM, Philip Mountifield <pmountifi...@formac.net> wrote: I also have a great deal of dynamically generated models. Interesti

Re: Multiple Image Field in a model

2011-09-26 Thread Philip Mountifield
eport(models.Model): name = models.CharField(max_length=1024) data = models.TextField() image = models.ImageField(upload_to=settings.IMAGE_UPLOAD_PATH, blank=True, null=True) I need to display atleast 4 imagefields for this model object? -- Philip Mountifield Formac Electronics Ltd tel +

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Philip Mountifield
unning the following code in production and will be waiting a few hours / days for the problem to manifest itself again, hoping it wont: https://github.com/matthiask/feincms/commit/f2de708a09f8b6cf4fdbca6b3583747b6ebbc2e2 Matthias -- Philip Mountifield Formac Electronics Ltd tel +44 (0) 1225 837333 fa

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Philip Mountifield
at will provide us the basis on which to debug the problem, and form the core of a regression test to make sure the problem doesn't occur again in the future. Yours, Russ Magee %-) On Mon, Sep 26, 2011 at 4:27 PM, Philip Mountifield <pmountifi...@formac.net <mailto:pmo

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread Philip Mountifield
Has anyone else experienced this error? Any help would be appreciated. Thanks Philip On 23/09/2011 14:40, Philip wrote: Just been updating to Django 1.3.1 and come across an odd error. I'm getting the following error from some code which works with version 1.2.7. FieldError: Cannot resolve