OK, Events is not in the 'global' scope !
Thanks (i'm tired)
On 3 juin, 07:18, Daemoneye <eternalstrikefree...@hotmail.com> wrote:
> class A:
> class B:
> pass
> a=A()
> B=A.B()
> you should add A. to control the class B
> ÔÚ Thu, 03 Jun 2010 1
Hello,
I'm lost in Python !!
If I write this
class Dated(Behavior):
created_on = models.DateTimeField(_('Created on'))
updated_on = models.DateTimeField(_('Updated on'))
class Events:
def __init__(self):
super(Events, self).__init__()
I get an error
Thanks for your *really* interesting explanations.
It seems more clear to me and I'm going to read all about
derscriptors !
Python is a facinating language ...
On 8 mar, 09:16, Masklinn <maskl...@masklinn.net> wrote:
> On 8 Mar 2010, at 09:01 , JF Simon wrote:
>
>
>
> > H
Hi dudes,
My object seems mysterious, as is my problem ... I'd like to
understand something (it's much more related to Python than Django).
Take an example :
class Image(models.Model):
email = models.ForeignKey('Email', verbose_name=_(u'Email'))
name = models.CharField(_(u'Name'),
A great new feature. It's exactly what I need, thanks !!
On 20 sep, 09:37, patrickk wrote:
> you can now use GrappelliSite instead of AdminSite which gives you
> some options for the admin index page. take a look
>
Ooops, it's me ... these tricks work perfectly, sorry !
On 5 oct, 17:37, JF Simon <ad...@jfsimon.fr> wrote:
> I made some tests, it seems that imports don't work.
>
> In th __init__ I tried:
> from project.app.models.module import Class
> ... and Class is not imported
>
I made some tests, it seems that imports don't work.
In th __init__ I tried:
from project.app.models.module import Class
... and Class is not imported
Is the project package in the python's path as call manage.py
syncdb ?
GRRR
On 5 oct, 17:24, JF Simon <ad...@jfsimon.fr> wrote:
>
Hi,
I tried in vain to make it work !!! I've got some models modules in a
pckage named "models" in my app, I tried these 2 solutions (who are
mostly the sames) :
- http://www.acooke.org/cute/UsingaDire0.html
-
http://www.ifisgeek.com/2009/01/26/splitting-django-models-into-separate-files/
So:
Ah I found something ...
In my forms.MultiWidget subclass, "decompress" method was returning
None and not a couple of values !
I just done that :
def decompress(self, value):
if value is None:
return (None, None)
return value
I don't know if it's the best way,
I launched form.as_table() in my terminal and the traceback is :
File "", line 1, in ?
File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line
190, in as_table
return self._html_output(u'%(label)s%(errors)s%
(field)s%(help_text)s', u'%s',
'', u'%s', False)
File
Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though
exceptions within templates were raised ... my sentence seems weird.
Ill try that tonight.
Thanks again.
JF
On 24 sep, 14:42, Karen Tracey <kmtra...@gmail.com> wrote:
> On Thu, Sep 24, 2009 at 2:49 AM, JF Simon <ad..
Don't you find my problem really funny ?
--~--~-~--~~~---~--~~
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 this group, send
Hi there !
I try to understand why my form doesn't render anything. No exception
is raised and i'm going crazy !
In my forms.py I got these (simplified for instance) classes :
class SignupPasswordWidget(forms.MultiWidget):
def __init__(self, attrs=None):
widgets = (
Be more specific, is model in the context ? is name a property of
model ?
On 2 sep, 17:44, Sandra Django wrote:
> Hi friends, Can I do a condition depending on my model name? For example, I
> did that:
> {% ifequal model.name "Mymodelname" %}
> do something
> {%
Thanks, I don't though about users perms !
Grappelli just turn your admin more pretty, you should try:
http://code.google.com/p/django-grappelli/ !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Hi men,
I'm using Django + Grappelli and I'd like to know if there is a simple
way to make some improvements to the dashboard (index) of the admin
such as :
- hide modules (like Django_Evolution)
- merge modules (Auth entries with my User module)
- rename existing modules (not for now, just to
OK, I found, I have to write the path in request.path_info !!!
It works !
--~--~-~--~~~---~--~~
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
thanks dude.
any idea to split the dict on the _ char ?
recursive function ?
--~--~-~--~~~---~--~~
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
Hello, i'm new with python (and french so my english may seem very
poor, sorry about that).
I would like to list a model's fields and return a dict, here is the
example :
I have a model class with :
meta_title : CharField(...)
meta_description : CharField(...)
body_header_title : CharField(...)
19 matches
Mail list logo