Ok. Everything clear then! Thank you!
On 29 jun, 12:36, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Sun, 2008-06-29 at 02:55 -0700, zenx wrote:
> > Can you make a model that inherits from another model with multi-table
> > inheritance and that can have a null
Can you make a model that inherits from another model with multi-table
inheritance and that can have a null parent? Or should do that always
with OneToOneFIeld(null=True) ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
<[EMAIL PROTECTED]> wrote:
> On Mon, 2007-07-30 at 19:28 +0000, zenx wrote:
> > Hi,
>
> > I get the following error when trying to use the {% url %}
> > templatetag. I have read the documentation several times but cannot
> > understand where is the problem:
>
&g
Hi,
I get the following error when trying to use the {% url %}
templatetag. I have read the documentation several times but cannot
understand where is the problem:
AttributeError at /c/albums/wonderful-world/
'str' object has no attribute 'callback'
My urls.py:
urlpatterns = patterns('',
I know you can access request attributes in views, but how to access
for example request.user or request.META['REMOTE_ADDR'] in
templatetags?
I have tried it several ways but really don't know how to do it.
Thank you!
--~--~-~--~~~---~--~~
You received this
Thank you Rajesh, I didn't knew that.
I will try your solution.
Thanks!
On 11 jul, 23:16, RajeshD <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Anyone knows where the problem is?
>
> If you are using the Admin app to populate tags then the automatic
> manipulators first call Receta.save() followed
Hi,
I would like to get a list of tags separated by a comma and be able to
save them as related objects for the current object. Currently I have
this code. When saving a Receta object it creates the tags objects if
they doesn't exist yet and it should save the relations between Tags
and Receta,
Thank you Gábor!
I will make "clear_old" a static method.
thanks!!!
On 18 jun, 15:27, Gábor Farkas <[EMAIL PROTECTED]> wrote:
> zenx wrote:
> > I want to show the user the latest users that have seen his profile.
> > So everytime a logged user views anot
I want to show the user the latest users that have seen his profile.
So everytime a logged user views another user's profile a ProfieView
object is stored in the database (or the date is updated if the user
that is viewing the profile has already viewed it before). I know this
can make the
e tric (based on the superduperguruLukeplant great hack)
> 4) wait for the new Admin Class (maybe 0.96 will come soon)
>
> Bye
> Picio
>
> 2007/3/1, zenx <[EMAIL PROTECTED]>:
>
>
>
> > Hi,
>
> > How could I filter the results of my ad
Hi,
How could I filter the results of my admin change_list page. I know I
can extend the change_list template but that doesn't allow me to
filter the results. Is there some easy way to do that?
thank you
--~--~-~--~~~---~--~~
You received this message because
I have become a little bit disappointed while reading this:
http://programming.reddit.com/info/ngua/comments
"I have tested numerous files, and an excel file which takes 5 seconds
to upload in Rails or another Python framework (like Pylons), will
take over 20 seconds to upload in Django, mainly
It's not my code, just took a look at it and found it useful.
Thank you for looking at it!
zenx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Hi,
After finding a good solution for generic relations in admin:
http://net-x.org/weblog/2006/nov/29/django-generic-relations-made-easier/
I think that it should be implemented in the admin app of the django
development version.
What do you think about it? Want django developers to take the
Now it is!! http://net-x.org/media/GenericRelation-0.1.zip
Rob Slotboom ha escrito:
> > paulh, take a look at
> > thishttp://net-x.org/weblog/2006/nov/29/django-generic-relations-made-eas...
>
> Hi Antoni,
>
> Seems interesting but the code isn't yet available I suppose...
>
> Rob
paulh, take a look at this
http://net-x.org/weblog/2006/nov/29/django-generic-relations-made-easier/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi,
I have an Objects Model and a Tags Model with a M2M relationship
between them. I want to update info about the tags of the object
visited by the user updating it everytime the user requests an Object.
Is it a crazy idea? I want to know wich tags are the most viewed by the
user and wich are
Spanish info:
á é í ó úshould be a e i o u
ü should be u
ñ should be n
I think that's everything in spanish ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi,
I have created a stats field (PositiveIntegerField) in my objects and I
want to use it for saving how many times the object has been showed to
visitors but I don't want to make a database request everytime an
object is viewed due to performance issues. I have seen
Hi, are there any plans to add serialization support to generic views?
I think it won't be difficult to implement it because generic views are
already programmed and they should only get one extra parameter to know
which type of document they have to return (html (default), xml, json).
It's just
It would be cool if the javascript widget also displayed the
hexadecimal color (like #FF) calculating it real time from the RGB
selected color. It will be also interesting if people could get the
RGB, hex, etc. color by different methods (not only rgb).
thank you all! I will do it with raw SQL . thanks for the code.
I hope SQLAlchemy will be implemented soon in django. thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
It's not UK based but I have hosted some projects in hub-hub.com and I
am satisfied with them. It's not super cheap but I think it's ok.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
hi,
just tried this but doesn't work:
q = ArtistaTag.objects.all()
nums=['']
for tag in q:
num = tag.artista_set.count()
nums.append(num)
max_art = max(nums)
min_art = min(nums)
i get a TypeError unsupported operand type(s) for -: 'str' and 'long' :(
I want to get the maximum and the minimum values of various numbers. Is
the following method the best way to do it?
for tag in q:
num = tag.artista_set.count()
if num_ant:
if num < num_ant:
min_art = num
else:
thanks! just tried that way and everythings works.
Thank you, Malcolm!
--~--~-~--~~~---~--~~
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
Hi,
I have a templatetag that returns a lists of objects. The problem is I
want to include another information for every object: I want to include
the number of related objects for every object of a ManyToMany
relationship. The model ArtistaTag has a ManyToMany relationship with
Artistas. So I
Hi, I want to make a filefield that only allows to upload mp3 files. I
have added the following code to my model:
def _manipulator_validate_filefield(self,field_data,all_data):
if not self.archivo.endswith(".mp3"):
raise validators.ValidationError, 'Please select an mp3
I will take a look at it. Thank you!
--~--~-~--~~~---~--~~
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,
I've got 3 models: Artist, Album and Song.
For getting an artist info I use:
(r'^artists/(?P[-\w]+)/$',
'django.views.generic.list_detail.object_detail', dict(info_dict,
slug_field='identificador')),
I want an url like
www.mysite.com/artists/black_eye_peas/albums/album_name for getting
OK. Thank you!
--~--~-~--~~~---~--~~
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 email to [EMAIL
Hi,
I was wondering if it was possible to create project level template
tags that can be called by any app template.
Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
you're right, that's better. thank you!!!
--~--~-~--~~~---~--~~
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,
In delete function use:
super(MyClass, self).delete() instead of super(Artista, self).delete().
I think everything else is ok.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
I needed to make this and I hope it helps some people there. Features:
- Generate thumbs from ImageFields when creating the models
(file.jpg -> thumbnail saved as: file.thumbnail.jpg)
- Showing thumbs in admin
- Deleting thumbs when deleting the object
In your models.py:
Hi Gábor,
I think it's just for making it more flexibile, but in the most cases
you will use unique=True in your SlugFields.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Nop, still doesn't work with filter_interface=models.HORIZONTAL. But it
worked a couple of times. I will take a further look at it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hi Malcom,
I have played a little around it and it seems to work ok adding
filter_interface=models.HORIZONTAL to the Field.
Here is the ticket I've created:
http://code.djangoproject.com/ticket/2828#preview
Thanks.
--~--~-~--~~~---~--~~
You received this
Hi,
I get always the following error when deleting objects with
ManyToMany(self) relationships in the admin. Have tried with different
models and always getting the same error. Doesn't the admin interface
support ManyToMany relationships with the same table?
TypeError at
TypeError at /admin/artistas/artista/asdf/delete/
getattr(): attribute name must be string
this is the many to many field. when I delete it from the model
everything works well but when that field is in the model i get the
type error.
artistas_relacionados =
Hi!
I've set up django on dreamhost as seen here
(http://www2.jeffcroft.com/2006/may/11/django-dreamhost/). Everything
works ok with one project, but when I create another project and add
another sub-domain for it following all the steps as shown on that site
my browser doesn't load that
thanks for the tutorial!!! I wil take a look at it :)
--~--~-~--~~~---~--~~
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
Iwan, take a look at this too:
http://feh.holsman.net/articles/2006/04/30/double-opt-in-user-registration-for-django
http://feh.holsman.net/articles/2005/11/20/user-registration
Instead of requiring a verification e-mail, it firsts sends the user an
e-mail that includes a link for continuing the
Lets see if someone has already dealt with this problem and can help
me:
I want to administer appointments in admin. I have two classes:
===
class Client(models.Model):
name = models.CharField(maxlength=30)
company = models.CharField(maxlength=50)
class
voted too! ;)
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
thank you!!!
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
Picio, sorry for the misunderstanding! You will find the links that
Jeremy has posted very useful :D
(PS: I'm from Spain)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hi Picio,
I don't know when it will be published, but a book is coming:
http://www.amazon.com/gp/product/1590597257
It is written by Adrian Holovaty and Jacob Kaplan-Moss (django
developers) and as far as I know it will be also avaible for free
download as PDF :D
And you can find the starting tutorial you are asking for here:
http://www.djangoproject.com/documentation/
take a look at "installation guide" and "Tutorial: Writing your first
Django app"
--~--~-~--~~~---~--~~
You received this message because you are
Thanks Matthew!!!
I'm anxious to look at the code :D
--~--~-~--~~~---~--~~
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
Just wanted to know if there are any implementations of the
AJAXWidgetComboBox for the ForeignKey relationship inputs in the admin
forms (instead of using raw_id_admin=True)
http://code.djangoproject.com/wiki/AJAXWidgetComboBox
Thank you!
--~--~-~--~~~---~--~~
Thank you both!!! That's very helpful! I will read the howto carefully
;)
--~--~-~--~~~---~--~~
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
Thank you!!!
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
Thank you Jacob!
If anybody can point me to any link about setting up NFS with Django I
would be grateful.
Thanks!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Thank you! I will take a look at it.
--~--~-~--~~~---~--~~
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
I was reading some django performance tips:
http://www.jacobian.org/writing/2005/dec/12/django-performance-tips/
One of them is: "Use a separate media server"
But how could I upload files with Django FileField or ImageField to
another webserver than the one using django?
"Ruby has different libraries that provide higher-level access to
network protocols such as FTP, HTTP or HTTPS. This article shows the
usage of net::http, net::https, open-uri and the rio library."
(http://www.juretta.com/log/2006/08/13/ruby_net_http_and_open-uri/)
I would like django to connect
57 matches
Mail list logo