I am using django version 1.0.
I have a admin with a form for custom validation. My validation is
done in def clean(self):
The problem is that I have a requirement to get the record id to check
against database for data validation. But i don't know how to do.
My model is:
class Category(models.
I have upgraded to django 1.0 beta or the latest version for my
development machine. And faced IntegrityError when i delete a record
with few related records. This problem do not happen before django 1.0
A Product model and a Part model, which is a 1-to-many relationship,
(a Product can have mult
I also faced this problem, i have a rolled-out site, using the
allow_tags method to do a critical mission in a customized admin site.
regards,
Arnold
On Nov 16, 3:34 am, wowar <[EMAIL PROTECTED]> wrote:
> Today, after updating django to revision 6678 method 'allow_tags'
> doesn't work. Despite i
I faced this problem as well, but there is a work around. I am using
django 0.97 pre (i downloaded from svn 16th Nov, 2007)
Go to c:/python2.4/lib/site-packages/django/core/validators.py
or
/usr/lib/python2.4/site-packages/django/core/validators.py , if you
are using Fedora
comment the following
Sorry, there is a typo mistake, my question is "how to get logged-in"
user WITHOUT request parameter.
Because i want to use it in a function in models.py
regards,
Arnold
On 11月8日, 下午8時18分, Dan Fairs <[EMAIL PROTECTED]> wrote:
> > My question above can be simplified as "how to get logged-in user
My question above can be simplified as "how to get logged-in user with
request parameter"
On Nov 8, 12:32 pm, Arnold Chen <[EMAIL PROTECTED]> wrote:
> I want to let users to create their own profile in django admin. And
> when they save any new records, use t
I want to let users to create their own profile in django admin. And
when they save any new records, use their logged-in user id
(models.ForeignKey(User)) and override the save() function of the
model.
Is there any statement that i can use? i believe it should be
something like auth.user
thanks
I used to use /i18n/setlang?language=zh-cn approach to change
language. However i found that the latest (as of this writing 20th
Sept, 2007) svn version django do not support calling the url using
GET, and there is a sentence in the function set_language in the
i18n.py file
"Since this view chang
Yes, the server has been restarted many times
On 9月11日, 下午6時54分, Ryan K <[EMAIL PROTECTED]> wrote:
> Have you tried restarting the web server?
>
> Arnold Chen wrote:
> > Dear all,
>
> > I am experiencing some situation that is very strange. the development
> >
Dear all,
I am experiencing some situation that is very strange. the development
site is http://alberta.design97.com
This site is django-powered, it is up sometimes, on some computers,
you can visit this site for a preview, if you get an error, try reload
the page, usually the page will show wit
How come i don't remember using the python socket ? thanks James
On Sep 10, 1:13 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/9/07, Arnold Chen <[EMAIL PROTECTED]> wrote:
>
> > I am writing an application that require "silent" pos
Dear All,
I am writing an application that require "silent" post of data to a
specific URL. I know that is a function fsockopen in PHP which can
achieve this, and i am looking for function in Django like that.
fsockopen is used to Open Internet or Unix domain socket connection.
and you can post
t; > @property
> > def name(self):
> > if translation.get_language()=="en":
> > return self.name_en
> > else:
> > return self.name_de
>
> > good luck
>
> > wolfram
>
> > On 7/25/07, Arnold
I am implementing a multi-lingual product catalog website with Django.
It is in English (default), Trad. Chinese and Simp. Chinese. I want to
let user to choose the language they want, and the system display the
corresponding product name (in the selected language).
The product class is something
they run in browsers, and most of the
time, they hang the browser, so is there a way to push ?
regards,
Arnold
On Jul 17, 4:03 pm, Arnold Chen <[EMAIL PROTECTED]> wrote:
> Thanks Ben,
>
> Besides, i've found thatwww.lawrence.comandwww.ljworld.com(which
> are famous sites tha
Django, just make a directory
> that won't be handled by Django and stick all your static content in
> there. After all, the webserver is usually better at serving static
> files than Django is :)
>
> On 17/07/2007, at 2:26 PM, Arnold Chen wrote:
>
>
>
> > Can any
Can any one please tell me how to serve a static PDF in django ? The
file is located in the server, and do not need to be created on the
fly (by using report lab). I have done it in PHP by using header, but
i just don't know how to do it with django. Thanks
--~--~-~--~~~-
17 matches
Mail list logo