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

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.exception

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
ls", 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.u

[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 apps

Re: How to migrate MySQL -> PostgreSQL?

2019-06-04 Thread Julien Enselme
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 settings be

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

2019-04-09 Thread Julien Enselme
nt. 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

Migration auth.0011_update_proxy_permissions from Django 2.2 fails to apply

2019-04-04 Thread Julien Enselme
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

Re: Installation

2016-07-27 Thread Julien Castets
e /etc/nginx/sites-enabled/ $> ln -s /etc/uwsgi/apps-available/my_django_project.ini /etc/uwsgi/apps-enabled/ $> service uwsgi restart $> service nginx restart More details on the image's github: https://github.com/scaleway-community/scaleway-python/tree/master/overl

execute code at startup

2016-03-08 Thread Julien Greard
app oriented and in my opinion, 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. T

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 = People(firstn

Re: Forms admin

2015-03-05 Thread Julien Castets
he 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 Groups "Django users&qu

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 f

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
> 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 > django-users+unsubscr...@googlegroups.com. > For m

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 creat

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 _get_

Re: Some clues on multi language webapp on Django

2011-03-22 Thread Julien Castets
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 +33 (0)6.85.20.10.03 --

Validating a specific model field

2010-03-10 Thread Julien Phalip
not attached specifically to the 'aspect_ratio' attribute, therefore the error is displayed at the top 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 receiv

Weird transaction problem with postgresql

2010-02-25 Thread Julien Phalip
ignal makes it work (but obviously no Profile object is instantiated). The weird thing is that everything works fine with Sqlite. So it's typically 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 baff

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 got the Category model and SearchForm

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-11 Thread Julien Phalip
On Nov 11, 10:07 am, Julien Phalip wrote: > On Nov 11, 9:37 am, Julien Phalip wrote: > > > > > On Nov 10, 9:12 pm, Daniel Roseman wrote: > > > > On Nov 10, 1:36 am, Julien Phalip wrote: > > > > > Hi, > > > > > I've

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-10 Thread Julien Phalip
On Nov 11, 9:37 am, Julien Phalip wrote: > On Nov 10, 9:12 pm, Daniel Roseman wrote: > > > > > On Nov 10, 1:36 am, Julien Phalip wrote: > > > > Hi, > > > > I've tried to install MySQL for an existing project, and I'm getting a &

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-10 Thread Julien Phalip
On Nov 10, 9:12 pm, Daniel Roseman wrote: > On Nov 10, 1:36 am, Julien Phalip wrote: > > > > > Hi, > > > I've tried to install MySQL for an existing project, and I'm getting a > > strange error (see traceback below). Apparently "self.converte

MySQL and 'NoneType object is unsubscriptable' error

2009-11-09 Thread Julien Phalip
g PhpMyAdmin. Do you 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/Docu

Re: User Login in django

2009-11-04 Thread Julien Petitperrin
ject.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" group. To post to this group, send email to django-users@goog

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

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 wrote: > Preston Holmes wrote: > > It doesn't seem like it would be that har

Replicating Google Groups in Django

2009-10-23 Thread Julien Phalip
ld you have any advice 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 unsubsc

Re: Strange error saving in admin

2009-07-25 Thread Julien Phalip
Thanks Jamie! Setting "verify_exists" to False did the trick. It's not the first time I get caught so that's a bit shameful... :/ Like you say, it's worth trying the simple routes before looking at complicated things ;) Cheers, Julien On Jul 25, 7:19 pm, jamiecURLe

Re: Strange error saving in admin

2009-07-25 Thread Julien Phalip
p investigating, but any tips would be very welcome. Thanks again, Julien On Jul 25, 5:56 pm, jamiecURLe wrote: > Hello Julien, > > Without seeing the model and knowing who your hosting provider is and > what web servers your using to serve up your django app it is > difficult t

Strange error saving in admin

2009-07-24 Thread Julien Phalip
ails with a 502 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

How to delete a setting

2009-06-07 Thread Julien Phalip
esponse = self.client.get('/') ... 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

Re: Strange issue with session not being saved

2009-04-12 Thread Julien Phalip
On Apr 13, 9:43 am, Julien Phalip 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 kind of > c

Strange issue with session not being saved

2009-04-12 Thread Julien Phalip
ngo's or Apache configurations? Any 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 djang

Re: Strange behaviour with ImageField

2009-03-25 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 the relative address and

Strange behaviour with ImageField

2009-03-25 Thread Julien Phalip
ollowing: I'm using a fresh checkout of Django from today. I tested 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. T

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

2009-03-25 Thread Julien Phalip
On Mar 26, 11:55 am, Graham Dumpleton wrote: > On Mar 26, 11:04 am, Julien Phalip wrote: > > > Hi there, > > > If I login on my site on example.com, and then visitwww.example.com > > it asks me to login again. I can't tell if it's an issue with > > co

Auth (or session?) issue and www prefix

2009-03-25 Thread Julien Phalip
shared between 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 t

Re: Possible bug in admin?

2009-03-04 Thread Julien Phalip
On Mar 5, 2:40 pm, Alex Gaynor wrote: > On Mar 4, 2009, at 10:33 PM, Julien Phalip wrote: > > > > > > > On Mar 5, 2:16 pm, Alex Gaynor wrote: > >> On 3/4/09, Julien Phalip wrote: > >>> Hi, > > >>> I can't find the exact cause of

Re: Possible bug in admin?

2009-03-04 Thread Julien Phalip
On Mar 5, 2:16 pm, Alex Gaynor wrote: > On 3/4/09, Julien Phalip 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. > > > For one of my project I just upg

Possible bug in admin?

2009-03-04 Thread Julien Phalip
lf, db_field, **kwargs): 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, s

Re: Strange 404 error in admin

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

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 7:52 am, Julien Phalip wrote: > On Feb 10, 7:41 am, Alex Gaynor wrote: > > > I don't know what manager old forms admin used, but do you have a custom > > manager that blocks access to some objects. > > Thanks Alex for your reply. You've made a r

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
published = PublishedEntryManager() In fact, if an entry has a pub_date set in the future, then it is not accessible in the admin. Somehow the admin seems to be using the PublishedEntryManager as default manager. Is there a way to force the admin to use the default manager? Thank

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 9, 7:20 pm, Julien Phalip 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 that the link above ret

Strange 404 error in admin

2009-02-09 Thread Julien Phalip
where to look 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

Re: Displaying the names of executed tests

2009-02-02 Thread Julien Phalip
On Feb 3, 2:47 am, Alex Koshelev 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 the Google Groups "Djan

Displaying the names of executed tests

2009-02-02 Thread Julien Phalip
f that's possible to do, could 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 t

Re: Seeking design advice on Django implementation

2009-02-02 Thread Julien Phalip
On Feb 2, 7:40 pm, Malcolm Tredinnick 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. > > > The system works as follows.

Seeking design advice on Django implementation

2009-02-02 Thread Julien Phalip
that sound viable? Performance-wise, 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 "Dja

Re: Testing uploads and content types

2009-01-23 Thread Julien Phalip
On Jan 24, 12:57 pm, Malcolm Tredinnick wrote: > On Fri, 2009-01-23 at 12:15 -0800, Julien Phalip wrote: > > On Jan 24, 2:45 am, varikin wrote: > > > The UploadedFile[1] object has a field called content_type. So if you > > > have this in a form: > > >

Re: Testing uploads and content types

2009-01-23 Thread Julien Phalip
g 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 cre

Testing uploads and content types

2009-01-22 Thread Julien Phalip
H': len(payload), 'CONTENT_TYPE': client.MULTIPART_CONTENT, 'PATH_INFO': "/upload/", 'REQUEST_METHOD': 'POST', 'wsgi.input': client.FakePayload(payload), } response = self.client.reque

Create field of a model dynamically

2009-01-16 Thread Julien
ynamic model the way ? Thx 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

'extra' modifier and generic relations

2008-12-05 Thread Julien Phalip
database. Can the extra 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

Strange timeout issue

2008-12-04 Thread Julien Phalip
d you have any suggestion? 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 gr

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

Preventing spam attacks on Ajax views

2008-11-28 Thread Julien Phalip
and they may be all 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

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 th

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). &g

Clearing test client's session

2008-11-27 Thread Julien Phalip
ch doesn't work: 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 messag

Re: Testing dynamic apps

2008-11-26 Thread Julien Phalip
t patching 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 ;) Ju

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

Testing dynamic apps

2008-11-26 Thread Julien Phalip
s a dedicated test suite, but I'd like to avoid that if possible. Thanks a lot for your advice. Regards, Julien [1] http://code.google.com/p/django-voting/source/browse/#svn/trunk/voting/tests --~--~-~--~~~---~--~~ You received this message because yo

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
reat to improve the doc. It would open the doors 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. R

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 vi

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

Testing dynamic templates

2008-11-25 Thread Julien Phalip
ter 'test_blah'. It works fine, 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 Go

Valid URL rejected by URLField

2008-11-11 Thread Julien Phalip
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
ossible 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 b

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
icket, I'd also appreciate any hint on how to 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 g

Re: Comments customization

2008-09-08 Thread Julien Phalip
Jarek Zgoda wrote: > Is there any document with new comment framework customization tips? > I'd like to switch finally to 1.0 but I don't know how to accomplish > few things (or have ugly workarounds): > > * do not display preview page after succesful posting of comment, go > to commented docume

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 hangi

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
27; doesn't take an underscore. 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 add

Weird ImproperlyConfigured error

2008-08-30 Thread Julien Phalip
stand where it's trying to import that 'widgets' module. 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

Re: File upload and access properties

2008-08-25 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 djan

File upload and access properties

2008-08-25 Thread Julien Phalip
ot be accessed as you get 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 &q

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,

Re: Noob: form class location

2008-08-23 Thread Julien Phalip
you feel most comfortable 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,

Re: Upload image in own form

2008-08-20 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 help

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
uld use 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@googlegro

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
quest. 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

Saving tests' output to a file in Windows

2008-07-22 Thread Julien Phalip
I can get it to write the whole output 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" gro

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

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 <[EMA

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

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

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 tex

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 P

  1   2   3   >