I was having trouble with the permissions of directories created by
Django during file uploads. One solution would be a setting like
FILE_UPLOAD_PERMISSIONS that would be used when directories are
created. This is what is currently done in FileSystemStorage:
def _save(self, name, content):
Hello. I'm using Oracle and I would like to have a restricted user for
Django that can only do DML. Is there a way to specify a schema that
would prefix all "naked" table references so that this user can find
the tables as it isn't the schema owner?
If there isn't something like that, I think an
Hello all. Say I have some models like these:
class Image(models.Model):
file = models.ImageField(upload_to=get_image_path)
class Line(models.Model):
image = models.ForeignKey(Image)
color = models.CharField(max_length=20)
width = models.IntegerField()
class Point(models.Model):
> Sure. Open a ticket and attach a patch to update the docs and we'll
> commit it at some point. You're right that we should update the docs.
Done!
http://code.djangoproject.com/ticket/10145
> Still, if the extra line of code will really set you back each time
I suppose one extra line isn't too
Hello all. The docs say about QuerySet.create [1]:
"""
This is equivalent to (but much simpler than):
>>> b = Blog.objects.get(id=1)
>>> e = Entry(
blog=b,
headline='Hello',
body_text='Hi',
pub_date=datetime.date(2005, 1, 1)
)
>>> e.save()
"""
I was tryin
5 matches
Mail list logo