can be existed in everywhere. Before you run the
server, you should use manage.py to run the server, it'll automatic
add DJANGO_SETTINGS_MODULE for you and also the PYTHONPATH. And if you
run on apache, you should configure the http.conf, and add your
project path to sys.path(see the mod_pyth
On 3/21/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> hi,
> dunno if it is possible, but could the default language in django
> pastebin be set to python instead of php?
I don't understand what you are talking about?
--
I like python!
My Blog: http://www.don
e
> changes button cause may be he will not like the change when he submit
> it and he change his mind
>
I think you need do these things yoursef.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~
init__.py
that's ok. If you need models.py:
>models.py
if you need urls.py
>urls.py
if you need views.py
>views.py
>filename represents create a empty file, and you can copy code from
existed files to it.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Mail
On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> Limodou,
> I have the custom manipulator, see the beginning of this thread.
> But I do not know how to populate data from that manipulator to the form
>
the data passed to FormWrapper should match the name of FormField
need to clean all those stale tables
I think is sometimes not a problem. Because you maybe want to save the
information about shopping cart, and when the user login later, he can
continues his shopping.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit
k you for the reply
>
I think ChangeManipulator is concerned to a single object, but what
you will deal with are many objects, so you should create a custom
manipulator yourself.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http:
On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> Limodou,
> Thank you for your reply.
> And do you have any idea how FormWrapper should be used?
> In my shop project I need to provide a feature to a user , when he
> does/finish shopping to be able to check all items
I think manipulator only deal with validation and saving. If you want
to fill the data to the input fields, you should pass the data to
FormWrapper. So manipulator isn't data-sensitive, it's FormWrapper do
these things.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdi
PyDev.
>
>
> doug.
>
I'v finished some works in NewEdit, but only used for myself, and the
functionity is somewhat insufficiency.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~
In my form I would like the field_name CategoryF to be shown as a
> selection list.
> What must i do?( Now it does not work, I get the error :unpack
> non-sequence
> Thank you
> L.
>
>
choices should be defined as [(value1, 'label string1'), (value2,
'label
be the app I created in my project called calendar :) You
> can tell I'm new to Python (and Django)
>
> Thanks for the quick reply.
>
Because I'v also made this mistake as you before. :P
--
I like python!
My Blog: http://www.do
x27;t Django 'see' the method monthcalendar?
>
I guess there maybe a same named file calendar.py or calendar package
in your directory, which is duplicated with python calendar.py module
file.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups
['D:/your_django_project_parent_directory'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE poll.settings
> PythonDebug On
> PythonAutoReload On
>
dnt match response!
>
> any clues
>
> many thanks
maybe you should:
from django.contrib.auth.models import SESSION_KEY
if user.check_password(request.POST.get('password', '')):
request.s
>
right. But in the developing period, exchange is more important :P
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
efine a DEFAULT_CHARSET option in settings.py. Which is
defined originally in django/conf/global_settings.py. You can just
defined it in settings.py, and this will overwrite the original one.
Try it.
--
I like python!
My Blog: http://www.donews.net/l
} + {{ var 2 }}
>
I'v develop a custom tag for second thing, you can try it:
http://groups.google.com/group/django-users/browse_thread/thread/6c1c162e7dd5d0d8/ce3aa7e2e3d48ae1#ce3aa7e2e3d48ae1
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist:
On 3/10/06, Rob Slotboom <[EMAIL PROTECTED]> wrote:
>
> I've added an example view and template at:
>
> http://code.djangoproject.com/wiki/CookBookViews
>
Can you compare your appoach with paginator shipped with django?
--
I like python!
My Blog: http://www.donews.ne
Please check this document http://code.djangoproject.com/wiki/NewbieMistakes
It seems that you lost a '/' after action name "rated".
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.goog
; But how to use it in the template???
>
Where and how do you use it, in template or in custom tag code?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You received this mes
it toggable. If you want to aply a
> filter, show it. If not, leave it there and browse the listings.
>
> I documented it here, and you can also see some images on how it looks:
> http://andu.417.ro/blog/django_filter_hack.html
>
I'v seen that already. It's good.
--
I like pyt
ect, you
should convert context object to a dict, just like:
clist = list(context)
clist.reverse()
d = {}
for c in clist:
d.update(c)
And d will be the dict data.
--
I like python!
My Blog: http://www.donews.net/limod
coming in off an XML feed and being inserted or updated into a Django
> model.
>
> Can someone point me in the right direction?
>
You can still create a Manipulator object to validate your data.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit
al way.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
You can use it just as you wish. You can put the code in template, that's ok.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You received this message because you are
On 3/6/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 3/5/06, limodou <[EMAIL PROTECTED]> wrote:
> > http://oodt.jpl.nasa.gov/better-web-app.mov
> >
> > Which compared J2EE, Rails, Zope, TurboGears and Django for both hello
> > world and a time tra
I found some interesting ideas in this article. And also an
interesting screencast in the blog.
http://oodt.jpl.nasa.gov/better-web-app.mov
Which compared J2EE, Rails, Zope, TurboGears and Django for both hello
world and a time tracker.
--
I like python!
My Blog: http://www.donews.net/limodou
d define as
"%r as var_name"' % (tag_name, tag_name)
var_name = m.groups()[0]
nodelist = parser.parse(('endcatch',))
parser.delete_first_token()
return CatchNode(nodelist, var_name)
do_catch = register.tag('catch', do_catch)
I hope this tag will be
expr_string, var_name)
do_expr = register.tag('expr', do_expr)
-How to use it-
{% load utiltags %}
{% expr 1 as a %}
{% expr 2 as b %}
{% expr a+b as c %}
{{ a }}+{{ b }}={{ c }}
--
I like python!
My Blog: http://www.donews.net/l
On 2/22/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On 2/21/06, limodou <[EMAIL PROTECTED]> wrote:
> >
> > I don't know if it's a bug in Admin.
> >
> > Any suggestion?
>
> Have you checked the bug database? There are a few
t;."user_id","user_profile_userprofile"."portrait","user_profile_userprofile"."blog_setting_id"
FROM "user_profile_userprofile" ORDER BY "auth_user"."username" DESC'
There is exactly not auth_user and user_profile_userprofile tab
auto change the password to sha1 arthmetic and store the
password just like the format.
Hope this will be helpful.
>
> Running Django-0.91, postgresql-8.1.2, apache_2.0.55,
> Python 2.4.2 on Windows 2000
>
> Thanks
> Ben
--
I like python!
My Blog: http://www.donews.net/limodou
NewEd
On 2/17/06, Maniac <[EMAIL PROTECTED]> wrote:
>
> limodou wrote:
>
> >{% calendar year month %}
> >
> >
> It's perfectly possible (strange I can't find it in the docs now but I
> knew it from there).
>
> In your tag function you should wra
ut
how about:
{% mytag {{object.name}} %}
I'v seen that there is a new tag SET in developing. I hope it can be
some helpful.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You r
On 2/15/06, Maniac <[EMAIL PROTECTED]> wrote:
>
> limodou wrote:
>
> >If you are using the lastest svn, why your output is not the same as me?
> >
> >
> Because 0.92 is a magic-removal branch, not the trunk which 'latest svn' is.
>
You are righ
= context.get('user', None)
> if user.is_anonymous():
> return ""
> return "User
> Prefs"+str(user)+"
> "
>
> work?
>
I think it can work. But this appoach skips parameter.
I'll use it for now. Thanks.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
work.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
On 2/15/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> On Wednesday 15 Feb 2006 9:21 am, limodou wrote:
> > If you are using the lastest svn, why your output is not the same
> > as me?
>
> no idea
> >
> > Does you use apache?
>
> yes
>
On 2/15/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> On Wednesday 15 Feb 2006 8:36 am, limodou wrote:
> > > > > (r'^admin/', include('django.contrib.admin.urls.admin')),
> > > >
> > > > Which version do you use? I
On 2/15/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> On Wednesday 15 Feb 2006 8:11 am, limodou wrote:
> > > (r'^admin/', include('django.contrib.admin.urls.admin')),
> >
> > Which version do you use? It seems that the syntax is for
;^admin/', include('django.contrib.admin.urls.admin')),
>
Which version do you use? It seems that the syntax is for 0.91. If you
are using 0.92, the above should be:
(r'^admin/', include('django.contrib.admin.urls')),
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
interaction.
>
> thanks,
> gabor
>
There is a website focus on events that occurs in ajax and javascript
world, you can take a look.
http://ajaxian.com/
And mochikit maybe a very good startpoint.
http://mochikit.com/
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
nly
raise it's own exception.
So I suggest that may be the error infomation can be shown more?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
You received this message
interesting, but
> hopefully somebody might find use of it or interest in it.
>
good! I don't hear about PCMEF before.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~-~--~~~---~--~~
Y
haracters, if the number reaches what you want, then close the tag(if
need) and output the text.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
I'm very pleased to announce that DjangoInstall package 0.1 released.
=
Django Install Package
=
:Author: limodou ([EMAIL PROTECTED])
:Blog: http://www.donews.net/limodou
:Date: 2006-02-09
What's it?
===
It
d only orders for that user...
> """
>
> The authors don't say the phrase "row level security", but that's
> exactly what it is.
> Some critiques to my ACL proposal argued for the example in exerpt 2. I
> now happen to agree with them. :-)
>
+1
Great idea. I also think the Model can support user relative record
set is very useful. And I also need it.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
-removal
branch. There is only magic-removal version in zip file.
Online visit:
http://www.woodpecker.org.cn/obp/django/django-stepbystep/newtest/doc/
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2006/1/26, Wilson <[EMAIL PROTECTED]>:
>
> Tim,
>
> There are plans for an app repository once Django 1.0 is officially
> released. Stay tuned!
>
>
I'm waiting...
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
Maybe you should set the module instance in module_constants property,
it's described at model-api document in META options section. Or just
like what Cheng Zhang shown to import the module in the function
scope.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist:
be able to run
> with Python 2.3.
>
:) But in 2.3.X version, there are also have pygettext.py and
msgfmt.py exist, in windows version. I have 2.3 and 2.4 version
installed in my box.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
there are pygettext.py and
msgfmt.py in tools folder. So I think they are standard tools in
offical python release.
I'll try the link you gived to me, if I have more questions about
i18n, I'll send letter in i18n maillist. Thanks.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
pygettext tools, why not use it but xgettext?
Or can someone give me a valid software link?
Thanks.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
ke:
(r'^site_media/(?P.*)$', 'django.views.static.serve',
{'document_root': STATIC_PATH}),
STATIC_PATH is absolute path. If you done that, you could use it in
links just like:
If you want to serve static files in Apache, you could see the
mod_python document,
2006/1/4, EricHsu <[EMAIL PROTECTED]>:
>
> hi all, I've submitted it as a ticket :)
>
> http://code.djangoproject.com/ticket/1162
>
>
Good! Just let us waiting...
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
register.filter(wordwrap)
> register.filter(yesno)
> +register.filter(range0)
> +register.filter(range1)
>
>
> then use it like this:
>
> {% for page_number in pages|range1 %}
> {{ page_number }}
> {% endfor %}
>
>
Great! And you should make it a new ticket, hope th
; {{ page_number }}
> {% endfor %}
>
> {% endif %}
>
> Could I submit this line of code into django's source? hehe
>
>
I think create a range filter may be better. May be someone don't need
pages_list。But range is more generic.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2006/1/4, EricHsu <[EMAIL PROTECTED]>:
>
> Hi limodou, could you pls be more specific? Thanks!
>
>
I thought the pages is a list, but I was wrong, and I didn't find
there is a range filter in templates document, so I think either you
create a new range filter, or you creat
2006/1/4, EricHsu <[EMAIL PROTECTED]>:
>
> the python way
>
> {% for page_number in range(pages) %}
>
> doesn't work either... :'(
>
>
May be you should use forloop.counter for that.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
m django.contrib.admin.views.decorators import staff_member_required
@staff_member_required
def upload(request):
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
e("Hello, world. You're at the poll index.")
HttpResponse just return the message to the caller, not directly to the screen.
>
> This is the simplest view possible. Go to "/polls/" in your browser, and you
> should see your text.
> --
>
> I d
no output from "saysomething". What am I missing?
>
> Also, what is the best way to get debug output from Django? I tried a 'print'
> statement in 'saysomething' but it seemed to go nowhere.
>
> Thanks,
> Michael
>
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2005/12/28, Jarek Zgoda <[EMAIL PROTECTED]>:
>
> limodou napisał(a):
>
> > 7. view the result
> >
> > You will see the "Hello, django!" in the browser.
> >
> > That's the all. The only thing I used just is urldispatcher.
> >
>
That's the all. The only thing I used just is urldispatcher.
I hope it will be fun for beginners.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
sections of your email to
> read. :-p
>
maybe it a spam email?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2005/12/27, James Bennett <[EMAIL PROTECTED]>:
>
> On 12/26/05, limodou <[EMAIL PROTECTED]> wrote:
> > May be sqlite can do like that, but other databases can not just
> > remove the database file. And this appoach will destroy all the
> > tables, but what I wa
2005/12/27, James Bennett <[EMAIL PROTECTED]>:
>
> On 12/26/05, limodou <[EMAIL PROTECTED]> wrote:
> > I suggest that there may be a admin command just like: django-admin.py
> > reinstall app
> > to do the things like: django-admin.py sqlreset appname | psql
py sqlreset appname | psql dbname
I think this will be helpful in developing period.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
##
> 二、修改template index.hmtl的内容:
> {% for app in app_list %}
>
> {{ app.name }}
>
> {% for model in app.models %}
> 为:
> {% for app in app_list %}
>
> {{ app.title }}
>
> {% for model in app.models %}
> ###
> ###
> 三、这样在每一个app的module定义PY文件中加入如下属性就可以在管理界面中看到了:
> ###
> verbose_name = u'保险业务信息管理'.encode('gb2312')
> ###
>
>
兄弟,这是老外的邮件列表啊,怎么不用英文呢?老外有几个看得懂呢?
Hi, guy, why did you write it in Chinese, why not in English?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
> Great job! I was waiting for something like this!
>
Thanks. :)
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
orial?action=AttachFile&do=get&target=how_django_model.swf
download it(recommend):
http://wiki.woodpecker.org.cn/moin/NewEditTutorial?action=AttachFile&do=get&target=how_django_model.zip
Hope someone has interesting.
--
I like python!
My Blog: http://www.donews.net/limodou
N
; convinient to use in real applications. For example, i would like to
> get server address and port in post_save hook, current logged in user
> in display method and so on..
>
> Or maybe there is the way ?
>
>
May be middleware can do this. But I'm not sure.
--
I like pyth
2005/11/17, Robert Wittams <[EMAIL PROTECTED]>:
>
> limodou wrote:
> >>This isn't very well documented right now.
> >>See "http://www.djangoproject.com/documentation/model_api/";, under
> >>DateTimeField:
> >>
> >>
n output code of generic view,
may be a bug?
>
> It should probably be mentioned that this is not just in the admin, but
> also in every automatically created manipulator.
Thanks you very much. I see.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2005/11/16, Adrian Holovaty <[EMAIL PROTECTED]>:
>
> On 11/16/05, limodou <[EMAIL PROTECTED]> wrote:
> > I'm testing generic view, and I had a FileField in my polls model, but
> > as I summited, I got a Exception:
>
> Hi limidou,
>
> We can'
d and won't be until the API is fully baked. (Post
> core fields removal.)
>
> Robert
>
Thanks.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
2005/11/16, limodou <[EMAIL PROTECTED]>:
> I'm testing generic view, and I had a FileField in my polls model, but
> as I summited, I got a Exception:
>
> TypeError at /polls/add/
> string indices must be integers
> Request Method: POST
> Request URL:
a list. Is this a bug?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
o get field display name?
btw: polls model is the example from tutorial
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
svn.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
ce. Any
> suggestions?
if you set sqlite3, I tried myself, you should also need to install
pysqlite2 package, and also need to set DATABASE_NAME variable, and
also need to use sqlite3 command tool to create a database file,
django-admin.py will not create one for you. It's my experience.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
Flash tutorial online review:
http://wiki.woodpecker.org.cn/moin/NewEditTutorial?action=AttachFile&do=get&target=how_djangoproj.swf
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
TW, you can also using NewEdit to save some code snippets, and you
can apply them as editing.
NewEdit project: http://wiki.woodpecker.org.cn/moin/NewEdit
SVN: http://cvs.woodpecker.org.cn/svn/woodpecker/newedit (recommend)
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
e. Thanks.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
I found that the zh_CN translation option should be "Simplified
Chinese", but not "Traditional Chinese" in the global_settings.py in
conf directory。
And I'm the Chinese translator, I want to know how to submit the changes.
--
I like python!
My Blog: http://www.donews.net
201 - 286 of 286 matches
Mail list logo