Documentation for User.set_unusable_password() doesn't feel complete

2016-01-13 Thread Brice PARENT
When you set an usable password (using https://docs.djangoproject.com/en/dev/ref/contrib/auth/#django.contrib.auth.models.User.set_unusable_password), it is not really clear that to make the password usable again, one should use `set_password` and define a new one. The doc says that this metho

Re: storing django object into javascript array

2011-06-10 Thread Brice Leroy
Hello Jay, When you call city.school_set.all ,you get an array of object. the template render the string representation of the object. You might want to loop other them. Check the json serializer too : https://docs.djangoproject.com/en/dev/topics/serialization/#serialization-formats Brice

Re: Django 1.3 docs PDF

2011-06-01 Thread Brice Leroy
Nice job Oscar. That goes straight into my iBook :) 2011/6/1 Oscar Carballal > Hello, > > I've just created a PDF (5.6MB, 1042 pages) with all the django 1.3 > docs [|], just in case someone need it (sometimes it's useful to have > the docs offline). > > Cheers, > Oscar > > [1] http://clionesoft

Re: Weird problem with rendering a Variable in a custom tag

2011-05-23 Thread Brice Leroy
hor (less expensive) or the comment. Brice Leroy On May 23, 2011, at 1:34 AM, bruno desthuilliers wrote: > On May 23, 5:37 am, stevedegrace wrote: >> I developed a custom tag to look up the country of a certain IP >> address using an IP to country database. It's sort

Re: My tool to generate django code

2011-05-22 Thread Brice Leroy
Thanks you, I really appreciate :) 2011/5/21 sushanth Reddy > This is awesome Brice, > > Nice Work > > -- > 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@

Re: My tool to generate django code

2011-05-22 Thread Brice Leroy
2011/5/22 John Griessen > On 05/22/2011 05:08 PM, Brice Leroy wrote: > >> The project is open >> > > I think it could be a teaching tool as well as a speed tool. If you afford to update it some how. Looks like a lot of research went > into it, > I try to spend

Re: My tool to generate django code

2011-05-22 Thread Brice Leroy
The project is open source and is available on github https://github.com/debrice/djangogenerator / license creative common Brice Leroy Sent from my iPhone On May 22, 2011, at 10:56 AM, Mengu wrote: > I also did like it as well. however I wouldn't feel secure when I > started a n

My tool to generate django code

2011-05-21 Thread Brice Leroy
/coder I'd like to get a peer review :-) Good night folks. Brice -- blog: http://www.debrice.com Time tracking tool: http://alpha.kaaloo.com Django site generator: http://alpha.djangogenerator.com linkedin: http://www.linkedin.com/in/bricepleroy -- You received this message because you ar

Re: Collaborative text editor with Django

2011-02-23 Thread Brice Leroy
I'm very curious to know the use case for this kind of editor. I'm using HG and GIT to manage merging and I'm quite happy with those. Brice Leroy Sent from my iPhone On Feb 23, 2011, at 8:56 PM, Anoop Thomas Mathew wrote: > Hi Mike, > I think you miss read me. I mean an

Re: Django Code Generator

2011-02-23 Thread Brice Leroy
gz archive. (the site doesn't host the source but generates it on demand at download) Brice Leroy Sent from my iPhone On Feb 23, 2011, at 8:27 PM, Mike Dewhirst wrote: > On 24/02/2011 12:06pm, Brice Leroy wrote: >> The login is really just so you can manage a bunch of project and

Re: Django Code Generator

2011-02-23 Thread Brice Leroy
an be "fork" by other users. ... lots of idea, no so much time :-( 2011/2/23 Mike Dewhirst > On 24/02/2011 11:46am, Brice Leroy wrote: > >> Hello, >> >> I posted a while ago about this project and since it's pretty complete >> now, I'd like to get y

Django Code Generator

2011-02-23 Thread Brice Leroy
om/debrice/djangogenerator The project allows you to: - Generate model - Views - Forms - Urls The main goal is: - Providing code to beginner / teaching tool - Quickly start a project skeleton and then spend time on customization Thank you all Brice Leroy -- blog: http://www.debrice.com pro

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Brice Leroy
Might seam rude but you should try coding on linux. Some easy distribution like ubuntu. You can even install it in a virtual environment with virtual box. 2011/2/22 > You might want to try Activestate Komodo Edit. > That's what I use and it's such a wonderful experience. > Regards. > Sent from m

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Brice Leroy
Learning VI is good for you and it makes you fast. Learning curve is steep, I agree, but the result is quite amazing. One other big advantage, you can easily work on any server through SSH. 2011/2/22 mongoose > I used vim for a while but the learning curve really is steep. so > steep that i'm mo

Re: Askani

2011-02-22 Thread Brice Leroy
< cal.leem...@simplicitymedialtd.co.uk> > I'm sure these will be useful to someone, but it kinda takes the fun out of > designing a structure from scratch :( > > On Tue, Feb 22, 2011 at 5:47 PM, Brice Leroy wrote: > >> You should try http://www.djangogenerator.com >> >

Re: Askani

2011-02-22 Thread Brice Leroy
You should try http://www.djangogenerator.com - Generate model - Views - Forms - Urls and manage User profile extesion Brice 2010/11/26 Wim Feijen > Nice! It definitely saves typing. Sounds like a right thing for > newbies, because when I was a newbie, I always had to look up

Re: RV: photos sexy

2010-02-26 Thread Brice Leroy
It's just that dev in django makes you more attractive I guess 2010/2/26 Tiago Freire > I bet this is a ploy of the django team to draw in more developers... > > --- > Tiago Mikhael Pastorello Freire > > Av. Getúlio Vargas, 901 sala 1502 > Bairro Menino De

Re: Best practices for restricting media?

2010-02-22 Thread Brice Leroy
Actually, this snippet should be better to explain X-Accel-Redirect feature: http://www.djangosnippets.org/snippets/491/ 2010/2/22 Brice Leroy > Hello Brett, > If you use nginx you can use the X-Accel-Redirect function. Technicaly, you > get the file request on django, you check if

Re: Best practices for restricting media?

2010-02-22 Thread Brice Leroy
://stackoverflow.com/questions/263122/custom-http-headers-for-static-files-with-django Have a nice day Brice 2010/2/21 Brett Thomas > Hey, this is a pretty basic sysadmin question, but seems pretty critical > for django development. What's the best way to limit media on a django site &

Re: Django Generator

2010-02-16 Thread Brice Leroy
2010/2/13 Philippe Ombredanne : > Brice: > Very nice start. > There is a long history of similar tools and they all have a place and > a purpose. > I remember fondly of some tool that generated CRUD dbase apps from a > db schema .. that was last century ... > So carry on! Th

Re: Django Generator

2010-02-10 Thread Brice Leroy
Thank you Wolf, I think you're right on the necessity of a tutorial once beta is reach. I'll try to fight against complexity but as new feature will appear that will probably become a sine qua non condition. Thank you for your support. Brice 2010/2/10 Wolf Halton : > It is a grea

Re: Django Generator

2010-02-10 Thread Brice Leroy
eed to be visible and not too much so it can be quickly modified. Atamert Ölçgen: I'll try to fix the issue with the choice field as nicely as possible (casting or js trick) so it doesn't break the usability. Thank you all again ! Brice -- blog: http://www.debrice.com

Re: Django Generator

2010-02-09 Thread Brice Leroy
2010/2/9 Mike Ramirez : > On Tuesday 09 February 2010 15:12:21 Brice Leroy wrote: >> Would you eat some food not cook by a professional ? >> > > I would be very wary of a person who hasn't cooked before... The difference is > in experience. it's just that I don&#

Re: Django Generator

2010-02-09 Thread Brice Leroy
2010/2/9 Mike Ramirez : > On Tuesday 09 February 2010 14:52:00 Frank W. Samuelson wrote: >> You are something of a killjoy, Mike. >> >> This could grow into a really great project, where people >> don't even have to learn programming to generate a usable >> django web database app. > > Isn't this w

Re: Django Generator

2010-02-09 Thread Brice Leroy
Thank you Richard. I put most of my coding convention inside and try to respect the pep8. A lot of work still need to be done. But I expect to reach my goal by the next 15 days Brice 2010/2/9 Richard Shebora : > Actually my first thought was... What a great learning tool! > > How m

Re: Django Generator

2010-02-09 Thread Brice Leroy
b 2010, Mike Ramirez wrote: > >> On Tuesday 09 February 2010 13:09:08 Brice Leroy wrote: >>> >>> django-admin startproject creates an empty folder... >>> >>> startproject almost = mkdir >>> >>> This will generate your models, modelForm,

Re: Questions about Django suitability

2010-02-09 Thread Brice Leroy
First you should consider JSON instead of xml: - Django can serialize every object in json - JSon is an object in javascript. so it should be easier to deal with data this way. 2010/2/9 Dasleah : > Hey all, > > Long-ago webhead here who hasn't touched much of anything since > Javascript was a

Re: Django Generator

2010-02-09 Thread Brice Leroy
2010/2/9 Mike Ramirez : > On Tuesday 09 February 2010 13:09:08 Brice Leroy wrote: >> django-admin startproject creates an empty folder... >> >> startproject almost = mkdir >> >> This will generate your models, modelForm, views, templates, urls, and >>

Re: Django Generator

2010-02-09 Thread Brice Leroy
ommon project model. 2010/2/9 Mike Ramirez : > On Tuesday 09 February 2010 12:58:32 Brice Leroy wrote: >> Hello everybody, >> >> I've been working for a week on this idea of a generator for django >> project. The goal is to provide a simple architecture that can be

Re: What hosting companies do you use for django hosting?

2010-02-09 Thread Brice Leroy
I have my servers running on slicehost. To register you can go directly on https://manage.slicehost.com/customers/new?referrer=d70aef6892d34650548f7b7b623b3e87 I put my referrer link on purpose, this would provide me some discount if you register otherwise you can go directly on https://www.slic

Django Generator

2010-02-09 Thread Brice Leroy
found here: http://alpha.djangogenerator.com/ and is open to registration The source code is located on github: http://github.com/debrice/djangogenerator All the best, -- Brice Leroy http://www.debrice.com -- You received this message because you are subscribed to the Google Groups "Djan

Re: Hashed, salted mysql password in settings.py, reccomendation to protect information

2009-12-21 Thread Brice Leroy
Easy, put your password in a settings_secret.py file, do not import this file on your repository. Add: from settings_secret import mysql_password ... you're set :) Brice 2009/12/21 fruity : > Hello, > > I'd like to protect the mysql password that is in settings.py > >

Unittest, fixture and permission

2009-10-20 Thread Brice
Hello everybody, I'm facing a delicate problem. I want to make ensure the security of my app and I created a unitest to do so. To make it easy, I was thinking about fixture, but they don't support model permission evolution and create conflict over time. So I add a function linked to the syncdb

Re: Image upload - self.image not defined in save method

2007-02-13 Thread Brice Carpentier
at this point, > the same entry has to be saved twice in the admin. > yeah, this is a problem. As for width and height, there are width and height parameters to ImageWithThumbnailField that you can use. (Look at the ImageField documentation) --

Re: Please help with project setup

2006-05-31 Thread Brice Carpentier
re the same, > for example in english and in french this URL will be the same : > > /articles/python/indentation/ > really good point, didn't think about that. -- Brice Carpentier aka Br|ce --~--~-~--~~~---~--~~ You received this message because

Re: Please help with project setup

2006-05-31 Thread Brice Carpentier
tions (if you didn't already): > Textile, Markdown and RestructuredText (part of Docutils). > I did, thanks :) Still wondering whether to use Textile (easy to learn and read) or Docutils (easy to convert to basically almost any output format). -- Brice Carpentier aka Br|ce --~--~-

Re: Please help with project setup

2006-05-30 Thread Brice Carpentier
; could be converted to PDF files automatically, and using HTML tags > would ruin this, correct? > I'm highly considering using textile as a markup language for my project instead of a RTE. -- Brice Carpentier aka Br|ce --~--~-~--~~~---~--~~ You

Re: Please help with project setup

2006-05-30 Thread Brice Carpentier
g the both to be different articles and having no information on the language in the url. So something like this : "/articles/topic/subtopic/article-title-in-english/display/" "/articles/topic/subtopic/article-title-in-dutch/display/" -- Brice Carpentier aka Br|ce --~--~--

Re: Please help with project setup

2006-05-30 Thread Brice Carpentier
thinking about making this again for a little django cms engine I'm working on (which I'll opensource later, once it's been used and improved for some time). -- Brice Carpentier aka Br|ce --~--~-~--~~~---~--~~ You received this message because

Re: Please help with project setup

2006-05-30 Thread Brice Carpentier
and how you consider the language to be :) Regards, -- Brice Carpentier aka Br|ce --~--~-~--~~~---~--~~ 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@googlegr

Re: Ecommerce & Django

2006-04-14 Thread Brice Carpentier
no fuss will be very helpfull (it seems). > > " Any brilliant ideas?" not really... > wasn't there any Jazz artist that was known to be "too commercial" ? I think that would suit the project just fine, wouldn't it ? -- Brice Carpentier aka Br|ce --~--~---

Re: Model Basics

2006-02-13 Thread Brice Carpentier
the wiki on code.djangoproject.com) -- Brice Carpentier aka Br|ce

Re: relating ManyToMany to itself

2006-02-13 Thread Brice Carpentier
2006/2/11, Russell Keith-Magee <[EMAIL PROTECTED]>: > > On 2/6/06, Brice Carpentier <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I've got an Article object (what a surprise !), and was willing to > > relate it to other articles > > My init

relating ManyToMany to itself

2006-02-05 Thread Brice Carpentier
n intermediary table, but this doesn't seem to be edited inline (I get a "bool object is not callable" error). Am I missing something ? Regards, -- Brice Carpentier aka Br|ce

Re: making photo gallery

2006-01-05 Thread Brice Carpentier
2006/1/5, Kenneth Gonsalves <[EMAIL PROTECTED]>: > > hi > i am trying to develop a photogallery application. You might be interesting in contributing to hugo's [1] [1] https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoGallery -- Brice Carpentier aka Br|ce