Re: IDE

2008-03-05 Thread limodou
ad, and didn't used others, and I only use "print" to debug django, so I have no ideas about other editors. Sorry. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide <>: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou --~--~-

Re: IDE

2008-03-05 Thread limodou
project in Directory Browser Window(press F2, and add your django project), the Set project menu item in context menu of directory browser window. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide <>: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limo

[ANN]db_dump.py 2.1 released!

2007-09-18 Thread limodou
ctory, you should put it with the settings.py together, and run it according to the document of the project site. Hope you like it. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You recei

Re: Django_xmlrpc

2007-06-11 Thread limodou
he pure data into xml format. Please see the description in the page. And I should say, I'v not been playing with this snippet for a long time. :) -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~---

Guido like Django

2007-05-31 Thread limodou
nity for Django development in China, and I hope more and more people would like to learn Django from now. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this me

Re: Error creating super user

2007-05-08 Thread limodou
s, > Ben > If you don't want to use admin, you should just install django.contrib.auth, it's enough. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You rece

Re: \d and \w regular expressions?

2007-05-08 Thread limodou
; doubtful that a name would be 100 characters. Is there a better way > of capturing this value. > > Thanks for any help > I suggest that you can test the length of the name in view method, and don't limit the length of url pattern. The pattern could be: [\w-]{1

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-12 Thread limodou
ct > easily. HOW you connect is up to you. > > I like jQuery. You like mochikit. Others like YUI, or Prototype, or > Dojo. Who's right? Everybody. Nobody. It depends. > Goog point! I like jQuery also. -- I like python! UliPad <>: http://wiki.woodpecker.org

Re: Detect ajax request

2007-04-10 Thread limodou
<>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Django models to SqlAlchemy models | preliminary implementation

2007-04-09 Thread limodou
> well.. I'll be rather busy and probably slow to respond.. so be it..) > Great! -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message bec

Re: Django Powered Tabblo to be acquired by HP

2007-03-23 Thread limodou
e future! > > --Ned. > Wow, great! -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re: I wish for a "less than" and "greater than" in templates

2007-03-21 Thread limodou
gt; Thanks for that Kenneth. > The code there looks like just what I need. > You can also use PyIf tag(written by me) to do that. http://www.djangosnippets.org/snippets/12/ And it can support any python expression. So it's more general I think. -- I like python! UliPad <>: http://wiki.woodpecke

Re: backup/restore DB data...

2007-03-16 Thread limodou
On 3/16/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > limodou schrieb: > > You can try db_dump.py tool, it's not a web-gui based, but a command line > > tool. > > > > http://www.djangosnippets.org/snippets/14/ > > Very cool! It seems to work witho

Re: backup/restore DB data...

2007-03-16 Thread limodou
On 3/17/07, Michael <[EMAIL PROTECTED]> wrote: > > > On 3/17/07, limodou <[EMAIL PROTECTED] > wrote: > > > > On 3/16/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > > > > > > > > I would like to backup and restore my django App-Dat

Re: backup/restore DB data...

2007-03-16 Thread limodou
tp://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ 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

Re: Using template filters inside condition statements

2007-03-13 Thread limodou
.org/snippets/10/ For example: {% catch as state %}{{ message.state|stateName }}{% endcatch %} {% ifequal state "Sent" %} -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~-

Re: QueryDict instance is immutable

2007-03-12 Thread limodou
changed. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: choosing ajax framework (for my projects) :)

2007-03-10 Thread limodou
On 3/10/07, Georgi Stanojevski <[EMAIL PROTECTED]> wrote: > > limodou напиша: > > > You can see an example at : http://limodou.51boo.com > > Your forms(I tried user registration) don't give any feedback while they > are being submited that's really,

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread limodou
t; > > > i must also say that i actually don't enjoy coding in javascript :) > > traumatized when trying to write cross browser javascript 8 years ago. > > > > cheers, ashley > > I also agree with jQuery. And I'v build some proje

Re: Django and jQuery Autocomplete Routing Help

2007-03-08 Thread limodou
#print "%s" % (tag.normalized_tag) result.append(tag.normalized_tag) return HttpResponse(simplejson.dumps(result)) If you are using Firefox and installed Firebug plugin, you can see the response message. -- I like python! UliPad <>: http://wiki.woodpec

Re: Template Tags

2007-03-08 Thread limodou
> MerMer > You can see : http://www.djangosnippets.org/snippets/9/ -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: User model extension

2007-03-06 Thread limodou
handled in the > django-way? > Take care you can read this blog: http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---

Re: uploding image file

2007-03-06 Thread limodou
google.com/group/django-users/browse_thread/thread/ede06a3602a39100?hl=en > Of cause you can do it yourself, but django's appoach is more djangonist I think. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~

Re: applying a patch in windows ???

2007-03-06 Thread limodou
ould somebody tell me the command to apply it . > > thanks in advance > Try tortoiseSVN tool. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this messa

Re: uploding image file

2007-03-06 Thread limodou
so the real image will be save in : os.path.join(MEDIA_ROOT, field.upload_to) 4. view snippet #get or create user if data.get('photo', None): filename = 'photo_%d.jpg' % user.id user.save_photo_file(filename, data['photo']['content'] user.save() -- I lik

Re: uploding image file

2007-03-06 Thread limodou
api/ -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: uploding image file

2007-03-05 Thread limodou
; but I don't really > know how I can use them, can any body help me? > Regards > Samia > http://www.djangoproject.com/documentation/faq/#how-do-i-use-image-and-file-fields -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/li

Re: creating a website log

2007-03-05 Thread limodou
: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ 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@g

Re: creating a website log

2007-03-05 Thread limodou
I think maybe you can hook the pre_save() signal to do this thing. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Help with profiles

2007-03-05 Thread limodou
o-tips-extending-user-model -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django and jQuery Autocomplete Routing Help

2007-03-05 Thread limodou
x27;) >> [05/Mar/2007 15:11:51] "GET /jquery/img/indicator.gif HTTP/1.1" It seems that you didn't correctly setup the static files, if you are using development server(via manage.py runserver), you should see the document:

Re: json serialization without certain fields and with extra information?

2007-02-28 Thread limodou
nto a module file. So I think the work will be not so hard. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: json serialization without certain fields and with extra information?

2007-02-28 Thread limodou
On 2/28/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > On 2/28/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > >> hey everyone, > >> > >> > >> 1. is there any way to serialize models and remove some

Re: json serialization without certain fields and with extra information?

2007-02-28 Thread limodou
nd then using simplejson to convert it to json -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Django snippets

2007-02-26 Thread limodou
It seems that only top 20 items can be displayed? right? I think it's a bug. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are

djangosnippets.org is down?

2007-02-26 Thread limodou
e=False, ^ SyntaxError: invalid syntax -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are

Re: Django snippets

2007-02-25 Thread limodou
I can write the description in ReST? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Django snippets

2007-02-25 Thread limodou
It seems that I can not change the language type of a snippets. So if you can add changing language type functionality. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~---

Re: Django snippets

2007-02-25 Thread limodou
On 2/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/25/07, limodou <[EMAIL PROTECTED]> wrote: > > Can you add RSS to the site, so that I can subscribe it to see the > > newest entries. > > There's some very basic feed code in the app already, bu

Re: Django snippets

2007-02-25 Thread limodou
On 2/26/07, limodou <[EMAIL PROTECTED]> wrote: > On 2/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > For a while now I've been annoyed with the fact that, while it's > > relatively easy to build and advertise a complete Django application, &g

Re: Django snippets

2007-02-25 Thread limodou
site is all available under an > open-source license; see the "about" page for instructions on how to > get it). > Great! I like it. And the site is beautiful. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~-

Only Validator

2007-02-16 Thread limodou
nd current version is also in development. But it already can be used. And there is some different from newforms validation functionality you should notice. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.do

Re: catalog of django apps?

2007-02-16 Thread limodou
cause, along with the similar common modules come out more and more, we could select one and specify it the "official" common module. But I think we need more referenced apps or projects first. -- I like python! UliPad <>: http://wiki.woo

Re: catalog of django apps?

2007-02-15 Thread limodou
be really cool if > the code for the "DjangoForge" site itself could be public, and > available through its own interface. (How meta!) > > Looking forward to seeing your reactions in some days, > Eric Florenzano > Great! I'll waiting for

Re: catalog of django apps?

2007-02-15 Thread limodou
extend templates 2. How to reuse the view functions 3. How to deal ajax functionalities 4. How to seperate common functionalities and special functionalities Maybe I write not so clearly, but I don't know much about how to express my thoughts, I'm sorry. -- I like python! UliPad <>:

Re: Is there a way for a template file to know its name?

2007-02-13 Thread limodou
help %}{% endblock %} I think this will be simple. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Open Book Platform demo site is up

2007-02-12 Thread limodou
On 2/13/07, Jianjun <[EMAIL PROTECTED]> wrote: > > limodou, > Thanks for sharing the source code. It looks a nice. > I got one question: I create a book on the demo site and I couldn't > find how to enable the comment bar on the left side. Did I miss > something? Al

Re: Open Book Platform demo site is up

2007-02-12 Thread limodou
u didn't > create, and have claimed it as your own (You put a (c) Limodou at the > bottom of each page, but don't attribute other sources). This is poor > form, and you shouldn't be surprised at the reaction it provokes. > Ok, thanks. I'd like to receive any suggestion

Re: Open Book Platform demo site is up

2007-02-12 Thread limodou
lal bla bla > What's these? Abstract? keywords? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Open Book Platform demo site is up

2007-02-12 Thread limodou
On 2/13/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Feb 12, 2007, at 6:30 AM, limodou wrote: > > I'v setup a demo site for open book platform project. So you can visit > > it : http://limodou.51boo.com > > This site is just for testing and demo, so d

Open Book Platform demo site is up

2007-02-12 Thread limodou
I'v setup a demo site for open book platform project. So you can visit it : http://limodou.51boo.com This site is just for testing and demo, so don't put important things in it. Thanks the master of 51boo.com, without his help I cann't run up the site. The project can be

Re: Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread limodou
I'v update the code and css, so if there are still some unsuitable places, please point them out. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received t

Re: What about a list of finished django applications on the wiki ?

2007-02-11 Thread limodou
ch > page would describe the application, requirements, links, possibly > some howtos etc. ? > +1 -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received thi

Re: Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread limodou
; chars, I got: > http://localhost:8080/book/1/dgfgfdsss łółę/ > > Num, I call it chapter order num, so just like chapter01, chapter02, and I'll use it to order the chapters. It's just a CharField. You should use something like 'chapter01', or simple 'c

Re: Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread limodou
On 2/12/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On Feb 11, 10:39 am, limodou <[EMAIL PROTECTED]> wrote: > > Many things I borrowed from djangobook.com, especially the css. > > Hi Limodou, > > The djangobook.com CSS is *not* available for copying, so

Re: Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread limodou
//wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ 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

Clone DjangoBook.com -- Open book platform beta release

2007-02-11 Thread limodou
python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

bug report:cut filter cann't process unicode

2007-01-24 Thread limodou
ve added str() to convert value to string type. So I think it's a mistake. Isn't it? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message becaus

Re: dump and restore tool for django

2007-01-23 Thread limodou
and add 'default' key to specify the default value of a new column, or the new column is renamed from an old column , you can add 'reference' type for new column, then the value of new column will use the value of referred column.

Re: Django and Mako ?

2007-01-21 Thread limodou
_django/mako_django.py You can see it. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: dump and restore tool for django

2007-01-20 Thread limodou
e program, and I need introduce many things I need from core.management which I think useful. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because yo

Re: dump and restore tool for django

2007-01-20 Thread limodou
d through: manage tool customtool -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

dump and restore tool for django

2007-01-18 Thread limodou
I'v finished a tool for dumping and restoring database for django, you can find it at: http://code.djangoproject.com/wiki/DbDumpScript -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.

Re: a candidate for a custom decorator?

2007-01-11 Thread limodou
t. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: a candidate for a custom decorator?

2007-01-11 Thread limodou
I suggest that you print the request, args, and kwargs to see the real arguments. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because y

Re: Listing folders - how to improve this code

2006-12-29 Thread limodou
an see os.walk() I think it's better for these things. else: return render_to_response('drcsm/' + settings.ENGINE + '/error.html', {'error': 'Zly Katalog', 'theme': settings.THEME, 'engine&

Tip:decorator and urls.py

2006-12-28 Thread limodou
--->8-- So you can use template to deal with two type different output: redirect and normal render output. Of course, template just my implementation and I just want to use it to describe s

Re: Tip:decorator and urls.py

2006-12-28 Thread limodou
g.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ 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

Re: How would you implement this?

2006-12-21 Thread limodou
.stuff.. {% call "table.html" with table=tables.0 %} ...stuff... {% call "table.html" with table=tables.1 %} ...stuff... -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~

Re: serialization question

2006-12-19 Thread limodou
in/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ 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 thi

Re: Templates for unknown object types

2006-12-18 Thread limodou
, or it has __str__ method, I think it's ok. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django and dojo, what is the status ?

2006-12-18 Thread limodou
uld find few about ajax bind with django, you should choise yourself. I suggest jQuery is a good stuff. I use it very funny. jQuery: http://www.jquery.com -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~

Re: Template tags and contexts

2006-12-14 Thread limodou
You can run your code outside of the block tag, so the block tag will not push your context into the stack. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You receive

Re: Dynamic includes in template?

2006-12-04 Thread limodou
e some custom tags you can try: expr http://code.djangoproject.com/wiki/ExprTag then the sample code is: {% for question in questions %} {% expr 'questions/' + question.get_type_display() + '.html' as tmp %} {% include tmp %} {% endfor %} But I don't know if it can

Re: Fast fcgi on dreamhost --> shauwn of the dead, help me shoot zombies

2006-12-02 Thread limodou
code and the start method in TextDriv is not like dreamhost, so I also want to know how to fix the problem? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message

Re: What IDE do you use? (semi-OT)

2006-10-10 Thread limodou
like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: What IDE do you use? (semi-OT)

2006-10-09 Thread limodou
- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread limodou
ntax support, just like html, css, js, etc. auto complete, rst support. For django, you can create django project in wizard(wziard is a plugin you need to enable it), set django project in directory browser, start develop server in directory, view the dot image of the model -- I like python!

Re: Ajax Jquery

2006-09-29 Thread limodou
fields, forms, others things will be created by js. And for server, you only need to think about first render, data load, add, delete, edit. And template is only used in first render stage. Others will only return json format data. -- I like python! UliPad <>: http://wiki.woodpecker.org

Re: two models -> one form -> addmanipulator

2006-09-22 Thread limodou
ite your own save method to process the request data. So it's not easier, but I think it's more clearly, because you know what you'v done. And for complex situation, for example multi models need to be dealed at same time and they may have relationship also, so it's the only

Re: two models -> one form -> addmanipulator

2006-09-22 Thread limodou
n't do this in django. You should use custom manipulator for this. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~ You

Re: automatically fill in some fields of a form, storing authenticated user

2006-09-22 Thread limodou
ld know the field_name and value format of user field in data. You can first include the user field, and see the html code to get the field_name of user, then disable the user field, and insert the field_name you got before into the data. -- I like python! My Blog: http://www

Re: Django app development / deployment best practices

2006-09-20 Thread limodou
modify, include urls.py also. So my parsing code is ugly. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~ You received t

[Snip]Convert all strings in data structure to unicode for simplejson

2006-09-20 Thread limodou
ttr(a, '__str__') and callable(getattr(a, '__str__')) So in the view code, you could do like this(assume above function is saved in ajax.py) import ajax def load(request): a = {'response':'ok', 'message':_('Thank you')} return a

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-16 Thread limodou
g for some standalone wiki syntax parser (for example trac > syntax) that could be used in diamanda (and won't kill contentBBcode, > and possibly HTML) > > A "support" site - my "tech blog" will be online in the next week. > There will be a live example, do

Re: django_settings_module

2006-09-14 Thread limodou
ngs.py, and this will automaticly created by : django-admin.py startproject blog -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~-

Re: Initial SQL data using Django ORM - A HowTo

2006-09-11 Thread limodou
v), v)) d['forum_category'] = Category.objects.get(id=d['forum_category']) Category.objects.create(**d) So create will auto save the new object. I don't test it. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPa

Re: How about a Django apps public repository?

2006-09-11 Thread limodou
> > we could then aggregate this information to provide a centralized RSS > feed on top of it so people can keep track of > new releases and new projects.. as well as a way for people to > search and browse through the list of projects, so they > can find what they need. > &

Re: How about a Django apps public repository?

2006-09-10 Thread limodou
On 9/11/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > I've nearly got something together now. > I just need to add some basic templates for it. > > Give me a day or two to get it up ;-) > Wonderful! -- I like python! My Blog: http://www.donews.

Re: How about a Django apps public repository?

2006-09-08 Thread limodou
ling > BasicAuth: A simpler authentication system for people who use a > custom admin site > StaticPages: A very lightweight request to template mapper (similar > to TemplatePages) > > Any other contributors? > > Sean > I have woodlog could be shared.

Re: How do you get and set cookies in django

2006-09-08 Thread limodou
(seconds=settings.SESSION_COOKIE_AGE), "%a, %d-%b-%Y %H:%M:%S GMT") response.set_cookie(settings.SESSION_COOKIE_NAME, session_key, max_age=settings.SESSION_COOKIE_AGE, expires=expires, domain=settings.SESSION_COOKIE_DOMAIN) some parameters you can replace with your values. --

Re: How about a Django apps public repository?

2006-09-08 Thread limodou
we cannot. And even if we setup our own django-spec repository, we can still submit new version information of django stuffs to pypi, no one would say that's impossible. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Mai

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread limodou
user. Now that diamanda is a wiki app, so I think it should be support wiki format first, and many people are used to trac/moinmoin, so the wiki text format is not so difficut at all. Just my thought. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread limodou
anage your > pages quick and easy without playing with wiki syntax. Note that most > "complicated" code generation like nice tables etc. will be handled by > ContentBBcode :) > So which text format do you think is the most familiar with people? I think wiki format should be. --

Re: How about a Django apps public repository?

2006-09-07 Thread limodou
+1 I also suggested similar subject before. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~ You received this message

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-06 Thread limodou
x27;ll probably add some > basic wiki syntax for formating but it won't substitute HTML. > I think wiki syntax is better. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad

Re: Need Template Tag help - I'm making this harder than it has to be.

2006-09-06 Thread limodou
ur models like. So I don't know there is a manytomany relationship between section and sponsors. If there are manytomany relationship between section and sponsors, so you could try: section.sponsor_set.all() And this is described in db-api document. -- I like python! My Blog: http://www.

Re: Need Template Tag help - I'm making this harder than it has to be.

2006-09-06 Thread limodou
I can't pass the child sponsors of the object back to the page? > > Why not write a custom function in model to return the child sponsors? So you can get the child sponsors through the section object. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.wo

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-06 Thread limodou
Can Diamanda support moin text format, I don't like the text format shipped with Diamanda. Can the page support multi text format? -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/

Re: Need Template Tag help - I'm making this harder than it has to be.

2006-09-06 Thread limodou
gt; Yeah. Only the model class has a Manager instance, model instance hasnot this instance. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~---

  1   2   3   >