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 2011

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@googlegroups.com. > To unsubscribe fro

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
Hello guys, I posted a while ago about my project on this forum. Some liked it some kind of hated it (weird)... I though I would post here for updates. Django Generator is a tool to build django skeleton of your app (model, form, view, templates...). I tried to make sure it covers enough surface

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 which > fieldnam

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
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 the user should have an access to the file and then you send back a header with the filename inside to your instance of NGinx. Nginx then serve the file. http://sta

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! Thank you. I'm focusing r

Re: Django Generator

2010-02-10 Thread Brice Leroy
or > has done for them. > > Wolf > > On Wed, Feb 10, 2010 at 11:55 AM, Brice Leroy wrote: >> >> Hello everybody, >> >> I woke up this morning and saw all those email and I would like to >> thank you all for all those advices and support you wrote. That >&g

Re: Django Generator

2010-02-10 Thread Brice Leroy
Hello everybody, I woke up this morning and saw all those email and I would like to thank you all for all those advices and support you wrote. That motivates me even more to work on it. The project being in alpha stage, please keep in mind that your project integrity and its storage is not guaran

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
web pages nowadays know HTML? >> >> Generate on! >> >> >> On Tue, 9 Feb 2010, Mike Ramirez wrote: >> >>> On Tuesday 09 February 2010 13:09:08 Brice Leroy wrote: >>>> >>>> django-admin startproject creates an empty folder

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 > > I read in the django docs