Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-06 Thread Julien Enselme
Weird. It looks correct to me. I'm out of ideas, sorry. Julien Enselme Développeur chez BureauxLocaux Le jeu. 5 sept. 2019 à 11:55, Pasquale a écrit : > On 04/09/19 10:24, Julien Enselme wrote: > > Did you do the reverse with 'reviews:detail'? > > >>> > reverse(&qu

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-04 Thread Julien Enselme
Did you do the reverse with 'reviews:detail'? Can you post your new urls.py and the code you use to do the reverse? Julien Enselme Développeur chez BureauxLocaux Le mer. 4 sept. 2019 à 00:35, Pasquale a écrit : > Applied your suggestion,now I get > django.urls.exceptions.NoRevers

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
namespace is an argument of the include function and you can remove the name argument to path. Julien Enselme Développeur chez BureauxLocaux Le mar. 3 sept. 2019 à 13:28, Pasquale a écrit : > I did put reviews/urls.py: > > from django.urls import path, include > from . impor

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
ot;, namespace="reviews")) You should then be able to use reverse("reviews:detail"). Julien Enselme Développeur chez BureauxLocaux Le lun. 2 sept. 2019 à 15:39, Pasquale a écrit : > I have in mysite/urls.py: > > from django.contrib import admin > from django.url

[HELP] My applications objects are not related

2019-06-19 Thread Julien Mongault
Hello, I start by saying that english is not my main language and I am sorry if I made mistakes. I have an old app in Django 1.2 and I need to update it to Django 2.2. I have made a lot of change to be hable to run the application in Django 2.2 but I have an issue.. In my project there is 2

Re: How to migrate MySQL -> PostgreSQL?

2019-06-04 Thread Julien Enselme
in a test env. It may take a while depending on the amount of code that relies on MySQL specific features. I hope this helps! Regard, Julien Enselme Développeur chez BureauxLocaux Le mar. 4 juin 2019 à 00:56, Kiran Capoor a écrit : > Hi, > > As said by ankhi, change to pgsql in settin

Re: Migration auth.0011_update_proxy_permissions from Django 2.2 fails to apply

2019-04-09 Thread Julien Enselme
ent. This exception, on which environment did you receive it? Local or remote? I happened in my local env. I tried to delete the venv and recreate it from scratch but it didn't help. I'll try to report the bug. Thanks for you help! Julien Enselme Développeur chez BureauxLocaux Le lun. 8 avr. 2019 à 13

Migration auth.0011_update_proxy_permissions from Django 2.2 fails to apply

2019-04-04 Thread Julien Enselme
the bug tracker but found nothing. Can someone help me on this? I guess I can keep deleting problematic entries from our database one by one but it will take a long time and it doesn't look right. Regards, Julien Enselme -- You received this message because you are subscribed to the Google Group

Re: Installation

2016-07-27 Thread Julien Castets
ython/tree/master/overlay Disclaimer: I work at Scaleway Regards, -- Julien Castets +33 (0)6.85.20.10.03 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

execute code at startup

2016-03-08 Thread Julien Greard
pinion, the projects has nothing to do with my app. What do you recommend? I'd be happy to provide more info if needed. Thanks in advance, Julien Gréard -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Cannot assign object: instance isn't saved in the (wrong?) database

2015-11-12 Thread Julien Delafontaine
Hello, I have multiple databases, so in my queries I must exploit the `using` keyword (even if here I consider only **one** of them). Now in `MY_DB`, I want to create a `User` that has a reference to a `People` entry - a different table in the **same** database. I do person =

Re: Forms admin

2015-03-05 Thread Julien Castets
Are you like me to change the output > of forms ? I would like to control the layout of the form of each module , > it is possible? Hi, Give a look to https://github.com/maraujop/django-crispy-forms -- Julien Castets -- You received this message because you are subscribed to the Google

Override

2014-10-30 Thread Julien Romagnoli
Hello Guys, I'm working on the an existing project with django, but i need to change some behavior of this project for personal use. but the problem is if i change some part of code of the project after it will be complicate to apply the next update with git that why i'm trying to find a way

Re: Analysis of csv data

2014-04-10 Thread Julien GODIN
I would say a good ol' mycsvdata.split(",") on each line of your CSV and then put all this in a table. J On 04/10/2014 12:43 PM, Saransh Mehta wrote: > I need to analyze the incoming data from the csv file and present it > to the user in the best possible way? > What tools do i need to use for

Re: I install v1.5 Django, and run a my first site, then have an error: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte. I use Sublime editor.

2012-11-25 Thread Julien Phalip
Hi, Can you please post the entire traceback? Thanks! Julien On Sunday, November 25, 2012 4:03:11 PM UTC+1, 名宏贾 wrote: > > I don't know why, editer have default utf-8 setting. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Authorization workflow model

2011-09-06 Thread Julien Castets
is message because you are subscribed to the Google Groups > "Django users" group. > To post to 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 grou

queryset which returns the same result several times

2011-09-01 Thread Julien Castets
hello www, This is the model: from django.contrib.auth.models import User class Task(models.Model): creator = models.ForeignKey(User) assigned_to = models.ManyToManyField(User) And there are four users: bob, roger, dan and joe I want to get all the tasks where the current user is the

Exclude results with ManyToManyField

2011-03-23 Thread Julien Castets
Hello, from django.contrib.auth.models import User class Team(models.Model): users = models.ManyToManyField(User) I would like to retrieve every User in my database who does not belong to a team. I'm facing to this problem for several hours, and I found a *very* crappy solution : def

Re: Some clues on multi language webapp on Django

2011-03-22 Thread Julien Castets
up. > To post to 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. > > -- Julien Castets +3

Validating a specific model field

2010-03-10 Thread Julien Phalip
of the admin form rather than next to the aspect_ratio form field. Is there a way to achieve the same type of specific validation like with forms? Many thanks, Julien -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Weird transaction problem with postgresql

2010-02-25 Thread Julien Phalip
ypically a postgresql issue. I'm using psql version 8.3.1 and a recent checkout of Django trunk. Any help would be very welcome, as I'm really baffled here. Many thanks! Regards, Julien -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: customize form in template according to field attribute

2010-02-09 Thread Julien
Oh I have exactly this problem and cant find a good way to display my "categories" field ordered/grouped by parent type On 31 jan, 12:30, jul wrote: > I reposted this question with more details. > > On Jan 29, 12:56 pm, jul wrote: > > > > > hi, > > > I've

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-11 Thread Julien Phalip
On Nov 11, 10:07 am, Julien Phalip <jpha...@gmail.com> wrote: > On Nov 11, 9:37 am, Julien Phalip <jpha...@gmail.com> wrote: > > > > > On Nov 10, 9:12 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > > > > On Nov 10, 1:36 am, Julien Phalip <jph

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-10 Thread Julien Phalip
On Nov 11, 9:37 am, Julien Phalip <jpha...@gmail.com> wrote: > On Nov 10, 9:12 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > > > > > On Nov 10, 1:36 am, Julien Phalip <jpha...@gmail.com> wrote: > > > > Hi, > > > > I've tri

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-10 Thread Julien Phalip
On Nov 10, 9:12 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Nov 10, 1:36 am, Julien Phalip <jpha...@gmail.com> wrote: > > > > > Hi, > > > I've tried to install MySQL for an existing project, and I'm getting a > > strange error (see

MySQL and 'NoneType object is unsubscriptable' error

2009-11-09 Thread Julien Phalip
u know how this could be fixed? Thanks a lot for you help. Julien Traceback (most recent call last): File "/Users/julien/Documents/Development/eclipse/workspace/ myproject/trunk/site/manage.py", line 13, in execute_manager(settings) File "/Users/julien/Documents/Development/eclipse

Re: User Login in django

2009-11-04 Thread Julien Petitperrin
will have what you want for your user model http://docs.djangoproject.com/en/dev/topics/auth/#specifying-authentication-backends I hope this helps, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Form that updates a list of items?

2009-11-03 Thread Julien Petitperrin
On Mon, Nov 2, 2009 at 5:28 PM, Nick Arnett <nick.arn...@gmail.com> wrote: > > > On Mon, Nov 2, 2009 at 3:30 AM, Julien Petitperrin < > julien.petitper...@gmail.com> wrote: > >> Hello, >> >> I had this kind of issue a few days ago. I found this: >

Re: Form that updates a list of items?

2009-11-02 Thread Julien Petitperrin
Hello, I had this kind of issue a few days ago. I found this: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ I hope this helps you to find a way to do your multiple items edit form. Have a nice day, Julien

Re: Replicating Google Groups in Django

2009-10-24 Thread Julien Phalip
Thank you Clifford and all for your tips. There are apparently a few options to explore. I'll give them a shot and see how far I get. Cheers! Julien On Oct 25, 4:35 am, CLIFFORD ILKAY <clifford_il...@dinamis.com> wrote: > Preston Holmes wrote: > > It doesn't seem like it wou

Replicating Google Groups in Django

2009-10-23 Thread Julien Phalip
to get me started? Thanks! Julien --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group,

Strange error saving in admin

2009-07-24 Thread Julien Phalip
Proxy Error. I can edit the corresponding row in Phpmyadmin without any problem so the database doesn't seem to be damaged. Saving works with all other organisations I've tested. It is using Django revision 9975. Would you have any tips for debugging this? Thanks a lot! Regards, Julien

How to delete a setting

2009-06-07 Thread Julien Phalip
('/') ... However, if the setting BLAH exists, the call to delattr returns an "Attribute error: BLAH" error. I'm wondering if that's because the settings are lazily loaded. BTW, I'm using Python 2.5. Do you have a tip on how I could achieve thi

Re: Strange issue with session not being saved

2009-04-12 Thread Julien Phalip
On Apr 13, 9:43 am, Julien Phalip <jpha...@gmail.com> wrote: > Hi, > > I've implemented and ajax upload progress bar and I've got a strange > issue with sessions. I've reused the exact same code from another > project where it works perfectly, so I assume there is some ki

Strange issue with session not being saved

2009-04-12 Thread Julien Phalip
y help would be much appreciated :) Thanks! Julien --~--~-~--~~~---~--~~ 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.com To unsubscri

Re: Strange behaviour with ImageField

2009-03-26 Thread Julien Phalip
On Mar 26, 4:42 pm, Michael Strickland wrote: > You should just be able to take out the MEDIA_ROOT portion of your > upload_to path. So instead of: >     upload_to='%s/images/' % settings.MEDIA_ROOT > You would have: >     upload_to='images/' > > That should make it store

Strange behaviour with ImageField

2009-03-25 Thread Julien Phalip
both on windows and on a Linux server. Thanks a lot, Julien --~--~-~--~~~---~--~~ 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.com To unsubs

Re: Auth (or session?) issue and www prefix

2009-03-25 Thread Julien Phalip
On Mar 26, 11:55 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Mar 26, 11:04 am, Julien Phalip <jpha...@gmail.com> wrote: > > > Hi there, > > > If I login on my site on example.com, and then visitwww.example.com > > it asks me to log

Auth (or session?) issue and www prefix

2009-03-25 Thread Julien Phalip
www.example.com and example.com. It does that on all the sites I manage. So I wonder if I've badly configured them all, or if that's a bug. If the latter, is there a ticket open for it? I couldn't find any tip either in the doc or in the bug tracker. Thanks a lot, Julien

Re: Possible bug in admin?

2009-03-04 Thread Julien Phalip
On Mar 5, 2:40 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Mar 4, 2009, at 10:33 PM, Julien Phalip <jpha...@gmail.com> wrote: > > > > > > > On Mar 5, 2:16 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > >> On 3/4/09, Julien Phalip <jp

Re: Possible bug in admin?

2009-03-04 Thread Julien Phalip
On Mar 5, 2:16 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On 3/4/09, Julien Phalip <jpha...@gmail.com> wrote: > > Hi, > > > I can't find the exact cause of this, but it seems as though something > > has changed in the admin's email widget. > > >

Possible bug in admin?

2009-03-04 Thread Julien Phalip
): if db_field.attname == 'email': kwargs['widget'] = AdminTextInputWidget() # Have to do that, otherwise the email field is bizarrely small (it doesn't have the 'vTextField' class)... return super(MyModelAdmin, self).formfield_for_dbfield (db_field, **kwargs) Thanks a lot, Julien

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 3:19 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Feb 9, 2009 at 4:17 PM, Julien Phalip <jpha...@gmail.com> wrote: > > Hello again, > > > I finally fixed it with the following nasty hack: > > > class Entry(models.Model): > >    

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 7:52 am, Julien Phalip <jpha...@gmail.com> wrote: > On Feb 10, 7:41 am, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > I don't know what manager old forms admin used, but do you have a custom > > manager that blocks access to some objects. > > Tha

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
Thanks again, Julien --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 9, 7:20 pm, Julien Phalip <jpha...@gmail.com> wrote: > Hi, > > This is a strange case. I have a simple blog entry model which can be > edited in the admin, from the URL that looks > like:http://www.example.com.au/admin/blog/entry/52/ > > Now, what is strange is

Strange 404 error in admin

2009-02-09 Thread Julien Phalip
ook to debug this. Would you have some hints to suggest? Thanks a lot for your help, Julien PS: It is using a quite old version of Django, a trunk revision between 0.96 and 1.0. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Displaying the names of executed tests

2009-02-02 Thread Julien Phalip
On Feb 3, 2:47 am, Alex Koshelev <daeva...@gmail.com> wrote: > Look at the `--verbosity` test command option Thanks Alex, I should have thought of that. Cheers, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Displaying the names of executed tests

2009-02-02 Thread Julien Phalip
you please point me out as I can't find it in the doc. If that's not possible, do you think this is worth opening a ticket? Thanks a lot, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Seeking design advice on Django implementation

2009-02-02 Thread Julien Phalip
On Feb 2, 7:40 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-02-02 at 00:17 -0800, Julien Phalip wrote: > > Hi, > > > I'm a bit stuck with the design of a system and so I was wondering if > > someone could give some advice. > > >

Seeking design advice on Django implementation

2009-02-02 Thread Julien Phalip
, is that a good system? If not, would you have any other approach to suggest? Thanks a lot for your help. Regards, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Testing uploads and content types

2009-01-23 Thread Julien Phalip
On Jan 24, 12:57 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Fri, 2009-01-23 at 12:15 -0800, Julien Phalip wrote: > > On Jan 24, 2:45 am, varikin <vari...@gmail.com> wrote: > > > The UploadedFile[1] object has a field called content_type. So if

Re: Testing uploads and content types

2009-01-23 Thread Julien Phalip
testing with self.client.post(), all files are systematically encoded as 'application/octet-stream'. To test the behaviour of my view I need to control the content type of each uploaded files. And it doesn't seem like there's another way than creating a custom request from scratch to achie

Testing uploads and content types

2009-01-22 Thread Julien Phalip
'wsgi.input': client.FakePayload(payload), } response = self.client.request(**r) Is there a more concise or more elegant way to do? Thanks a lot for your help, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Create field of a model dynamically

2009-01-16 Thread Julien
in advance Julien --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to dj

'extra' modifier and generic relations

2008-12-05 Thread Julien Phalip
modifier be reliably used with generic relations, or is there a workaround? Thanks a lot for your advice. Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Strange timeout issue

2008-12-04 Thread Julien Phalip
? Thanks a lot, Julien --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL

Re: Preventing spam attacks on Ajax views

2008-11-29 Thread Julien Phalip
On Nov 29, 10:32 pm, Andrei Eftimie <[EMAIL PROTECTED]> wrote: > Probably best thing would be to have accounts... > > On Nov 29, 12:27 am, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm building a rating app, so people can rate any kind of obje

Preventing spam attacks on Ajax views

2008-11-28 Thread Julien Phalip
mistaken for a bot. Are there some algorithms in Django to cope with this kind of situations? Maybe passing some kind of key protection in the URL? Thanks a lot, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Testing dynamic apps

2008-11-27 Thread Julien Phalip
On Nov 28, 1:21 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 27, 2008 at 11:21 AM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > I'm keen to try to find some proper ways to fix this, but before I go > > too deep into the

Re: Clearing test client's session

2008-11-27 Thread Julien Phalip
On Nov 27, 7:17 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: > Hi, > > I'm writing some tests for a view that sets entries in the session. > Everything works fine, the entries are properly set and the session > seems to work ok (using the default DB SessionStore). >

Clearing test client's session

2008-11-27 Thread Julien Phalip
: self.client.post('/blah/1/') #Sets an entry in the session self.client.session.clear() #The session's entry still exists What is the proper way to do this? Thanks a lot, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Testing dynamic apps

2008-11-26 Thread Julien Phalip
ing Django, but is it acceptable? and if not, why? At this stage, it looks good enough to me except for two main points that feel dirty: 1) the test models should be unloaded after the test is run 2) potential conflicts with external apps should be avoided. Any advice/hint welcome ;) Julien On Nov 27

Re: Testing dynamic apps

2008-11-26 Thread Julien Phalip
On Nov 27, 10:55 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 27, 2008 at 8:33 AM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > So, all this works pretty well. The 'fakeapp' app is loaded > > dynamically, tables are created and the F

Testing dynamic apps

2008-11-26 Thread Julien Phalip
. Regards, Julien [1] http://code.google.com/p/django-voting/source/browse/#svn/trunk/voting/tests --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
ors of testing to the community and everyone would eventually benefit from it! Russ and Malcolm (if you're still here :) ), I'd love to hear your view on this, as I know testing is very important in your eyes. Regards, Julien [1] http://ericholscher.com/blog/2008/

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: > > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've got a v

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
On Nov 25, 11:01 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: > On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: > > > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phal

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
Excellent! Thanks for the tip Russ ;) On Nov 25, 10:47 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I've got a view which uses a different template depen

Testing dynamic templates

2008-11-25 Thread Julien Phalip
, but it means I have to ship my app with that dirty "test_blah" folder. Is there any other way to proceed? Thanks a lot, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Valid URL rejected by URLField

2008-11-11 Thread Julien Phalip
in a browser. The error I get is: "HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Found" Is there a way around that, other than by switching "verify_exists" off? T

Clash between file upload handler and middleware accessing request's dictionaries

2008-09-18 Thread Julien Phalip
to set the upload handler dynamically at the beginning of the view. Is there a way around that? Also, is that bad practice to access those dictionaries from within a middleware? Thanks for your advice, Julien --~--~-~--~~~---~--~~ You received this message because you

Re: Template.render and custom tags

2008-09-13 Thread Julien Phalip
You might want to give a shot with 'add_to_builtins': http://blog.michaeltrier.com/2007/8/7/common-template-tags On Sep 13, 11:05 am, akonsu <[EMAIL PROTECTED]> wrote: > hello, > > is there a way to make my custom tags and filters available to a > template that i create from a string like this:

Ongoing UnicodeDecodeError's with web crawlers and file caching

2008-09-12 Thread Julien Phalip
phrase this problem correctly. Thanks a lot for your help. Julien --~--~-~--~~~---~--~~ 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.com

Re: Weird ImproperlyConfigured error

2008-09-01 Thread Julien Phalip
> I've spent a couple hours trying to debug this, in vain... I figured out my problem, so I just thought I'd post it here. It was in fact due to some stale .pyc files and folders, not in my apps but in Django itself. I had just done an 'svn update' on it, and apparently some old stuff kept

Re: Changing the AuthenticationForm username's max_length field (impossible!?)

2008-08-30 Thread Julien Phalip
dynamically. Cheers, Julien --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email

Re: Changing the AuthenticationForm username's max_length field (impossible!?)

2008-08-30 Thread Julien Phalip
. Regards, Julien On Aug 30, 4:04 pm, keltus <[EMAIL PROTECTED]> wrote: > After many frustrating hours, I have yet to monkey patch the > form.username variable from: > > to > > > In my urls.py file, I added: > from django.contrib.auth.f

Weird ImproperlyConfigured error

2008-08-30 Thread Julien Phalip
odule. Certainly not from the middleware module, which is the same as the flatpage's one: http://code.djangoproject.com/browser/django/trunk/django/contrib/flatpages/middleware.py The traceback is really not helpful. Would you have any hint to debug this? Thanks a lot! Julien --~--~-~-

Re: File upload and access properties

2008-08-26 Thread Julien Phalip
> That is the subject of ticket #8454. Thanks Malcolm! I had missed that one. I like the proposed patch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

File upload and access properties

2008-08-25 Thread Julien Phalip
a '403 Forbidden' error. Is there a way to force the properties for the stored file (e.g. 605 would be enough)? Thanks! Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Noob: form class location

2008-08-23 Thread Julien Phalip
The import is likely to be in your view: # views.py from forms import MyForm myview(request): if request.method == 'POST': form = MyForm(request.POST) ... That's assuming that views.py and forms.py are at the same level. Cheers, Julien On Aug 23, 11:25 pm, Gerard Petersen

Re: Noob: form class location

2008-08-23 Thread Julien Phalip
with ;) Personally, for each app, I usually separate the classes and functions in the following modules: models, admin, views, forms, urls, utils (for the helper functions). Cheers, Julien On Aug 23, 10:29 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote: > Hi All, > > Im working on forms

Re: Upload image in own form

2008-08-21 Thread Julien Phalip
Hi, I think that you need to set the form's object instance when collecting the POST data too: form = WrestlerProfileForm(request.POST, request.FILES, instance=profile) That way, the image will be set with the existing one, and the form won't complain when validating. Hope it helps, Julien

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Julien Phalip
On Aug 21, 4:43 am, "Tom Tobin" <[EMAIL PROTECTED]> wrote: > On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote: > > Let me propose a stopgap: edit the django-users and django-developers > > pages to state, in large bold text, what the purpose of each list is > > (this is "edit

Re: Browser timeout on long processes

2008-08-20 Thread Julien Phalip
se the cache by setting a key that the other view can look up. Julien --~--~-~--~~~---~--~~ 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.c

Re: Browser timeout on long processes

2008-08-19 Thread Julien Phalip
On Aug 20, 12:15 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > That is only half the answer. > > Before you get to this point you need a means of backgrounding the > task to be completed. You're quite right, I had completely overlooked that side of things ;)

Re: Browser timeout on long processes

2008-08-19 Thread Julien Phalip
. That should work and be quite simple to implement. Cheers, Julien On Aug 20, 10:37 am, makebelieve <[EMAIL PROTECTED]> wrote: > Hello, > > I've built an app that accepts inputs from the user and then uses them > to do some heavy data crunching.  I've got everything working &g

Saving tests' output to a file in Windows

2008-07-22 Thread Julien Phalip
put in a text file? Thanks! Julien [1] http://code.djangoproject.com/wiki/DjangoOnWindows --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: propagation of modification in children to parents

2008-07-20 Thread Julien Phalip
Hi, The declarative attribute 'auto_now' (as well as 'auto_now_add') is deprecated and its support will eventually be dropped. To achieve that you need to override the 'save' method. In that same method you can also call the parent's 'save' method to propagate the change to the ancestors:

Re: Standard documentation method.

2008-07-20 Thread Julien Phalip
Hi, Django is just Python, and documentation works the same way as in any Python code. Not sure what you're actually after but you might want to check this excellent article by J. Bennett about documentation: http://www.b-list.org/weblog/2008/jun/21/documentation/ On Jul 19, 1:52 am, Chris

Re: Using Django Syndication for RSS Feed

2008-07-20 Thread Julien Phalip
Just found this via google: http://lexhair.wordpress.com/2007/08/29/rss-feeds-and-internet-explorer-6/ Apparently IE 6 and RSS are not friends... On Jul 20, 3:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to generate RSS feed for my site using Django's syndication >

Re: Sets

2008-07-19 Thread Julien Phalip
'set' is a Python standard object [1], since version 2.4. In version 2.3 you need to import the 'Set' package first. So, if you care about backward compatibility in Python, the most secure way to import it is: try: set except NameError: from sets import Set as set # Python 2.3 fallback

Re: Problems with Template "Extends" - Voodoo, anyone?

2008-07-19 Thread Julien Phalip
Hi, It is not very clear what problem you're having here. What are those noticeable differences? On Jul 19, 12:54 pm, Tye <[EMAIL PROTECTED]> wrote: > Quick background: I started a new project ("mpi") and app ("main"), > created a template folder and added its path to settings, and did >

Re: Unicode errors

2008-07-19 Thread Julien Phalip
Hi, Could you post the whole traceback? Also, precise what version of Django you're using. Without that info it's a bit hard to help you. Cheers, Julien On Jul 19, 10:01 pm, Amirouche <[EMAIL PROTECTED]> wrote: > I got an encoding error while rendering in the admin some text I >

Re: Strange ProgrammingError - What causes it?

2008-07-17 Thread Julien Phalip
Seems like it could be, as you say, related to a problem with psycopg, see: http://groups.google.com/group/comp.lang.python/browse_thread/thread/8e78649ac40472fe/ On Jul 18, 9:14 am, Julien Phalip <[EMAIL PROTECTED]> wrote: > Which version of Django are you using? > > As a fir

Re: Strange ProgrammingError - What causes it?

2008-07-17 Thread Julien Phalip
Which version of Django are you using? As a first attempt, I'd replace your __str__ method by __unicode__ and replace the calls to 'str' by 'unicode'. On Jul 18, 7:02 am, andrewljohnson <[EMAIL PROTECTED]> wrote: > Hi, > > I am getting a strange programming error, and I wonder what causes it? >

Re: file upload

2008-07-16 Thread Julien Phalip
Hi, Django's upload handling has recently been refurbished and it is now possible upload large files without upsetting the server. Check the doc for more info at: http://www.djangoproject.com/documentation/upload_handling/ Cheers, Julien On Jul 16, 7:49 pm, Niall Mccormack <[EMAIL PROTEC

Re: Complex queryset construction

2008-07-15 Thread Julien Phalip
How about: Item.objects.filter(categories__watching__user=request.user).distinct() I haven't tested it, but if it works it would return all items watched by the user. Then, to display items by category, I would use the regroup tag [1] in the template. [1]

Re: url (reverse) as a filter

2008-07-15 Thread Julien Phalip
I guess you would have to preprocess the text with the template system, reversing all the URLs, and then pass it to markdown processing. So, you'd have: ({% url mylink %} "Check this link") On Jul 16, 3:11 am, gzy <[EMAIL PROTECTED]> wrote: > Hi, > > I like the idea of seperating the..

Re: Logging in with emails longer than 30 characters

2008-07-15 Thread Julien Phalip
Sorry, I forgot to give the link: [1] http://www.djangosnippets.org/snippets/74/ On Jul 15, 9:04 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: > Hi, > > On my site users must login with their email address. I'm successfully > using a custom authentication backend based on [1

  1   2   3   >