Hi Tim,
Thanks for the response.
My Test model:
class Test(models.Model):
text = models.CharField(max_length=50)
image = models.ImageField(upload_to="upload/test_images/",
blank=True, null=True)
#also tried with FileField
def __unicode__(self):
return self.text
c
Hey,
Mainly I would like to know what the intended behavior of "save as
new" is supposed to be, if it is supposed to copy the files, I will
look further into why its not working for me.
I was assuming that it would, and didn't find anything in the
documentation to the contrary. If it is the
Hey,
Just wondering if "save as new" should also save any files (in this
case images) along with everything else? Currently OtherInlines'
information gets copied to the saved as new object, but any images
associated with the original object are not.
models.py:
class ProductImage(models.M
On 21/06/2009, at 11:14 PM, Vlad(L) wrote:
>
> MEDIA_ROOT = 'C:/booksite/media/'
> MEDIA_URL = 'http://127.0.0.1:8000/media'
>
> ...
>
>
I think this line should be more along the lines of:
When you render the html, view the source, and make sure its rendering
the right path.
Access the im
On 07/11/2008, at 3:01 AM, Alistair Marshall wrote:
On Nov 6, 2:22 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> If all worker classes (cook, waiter, ...) are subclassed from Worker,
> something like this should work: Worker.objects.filter(workplace=...)
>
Unfortunately the function that ea
, the correct values
are returned from the cache.
But obviously, this is of no use, as it gives me data as to the
upload's progress.
Thanks in advance
Pawel
On 06/11/2008, at 7:24 PM, Alex Koshelev wrote:
And what error message do you receive?
On Thu, Nov 6, 2008 at 09:46, P
Hi all,
I'm in the process of trying to write an Upload Progress Bar for my app.
I'm using the latest trunk version of Django, mod_python 3.3.1,
Memcached, Apache 2.2.8 prefork, and YUI 2.6.
I cannot seem to access the values stored in the cache during upload
(hoping to retrieve the 'upload
Maybe something like this would help:
in the month loop:
{% if forloop.counter|divisibleby:"2" %}
{% else %}
{% endif %}
or try forloop.parentloop.counter if you need to get at it from you
event loop.
Cheers,
Pawel
On 03/05/2008, at 11:15 AM, Darryl Ross wrote:
Ryan Va
Hi,
I had finally decided to see if the new svn version of django fixed
an issue I was having (ticket 1796 - fixed in rev 5919).
So I ran svn update and checked out rev 6022, restarted apache and
unfortunately got an "Internal Server Error" visiting the website.
So I starting to checkout di
Hi,
I just updated to the latest django version (5925) and ran syncdb and
get the following error.
Any suggestions?
$ ./manage.py syncdb
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating t
10 matches
Mail list logo