Re: Resize Image On Save is resizing all images in directory?

2012-02-28 Thread richard
reszing each image. Can anyone explain why this works like that? On Feb 28, 6:39 am, richard <pullenjenn...@gmail.com> wrote: > Hi I have an upload form that uploads an image and on the save i > resize the image. But when i do this images that are in the same > directory seem to get

Resize Image On Save is resizing all images in directory?

2012-02-28 Thread richard
Hi I have an upload form that uploads an image and on the save i resize the image. But when i do this images that are in the same directory seem to get resized aswell even though they have unique hash names? any help please. MODELS.py def upload_to(instance, old_filename): import time

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Thanks tom, that worked and now understand what i was doing wrong. much appreciated. On Feb 24, 7:08 am, Tom Evans wrote: > On Fri, Feb 24, 2012 at 2:55 PM, richard wrote: > > Hi Tom, > > > Thanks for your reply. So for clarity i thought i

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread Tom Evans
On Fri, Feb 24, 2012 at 2:55 PM, richard wrote: > Hi Tom, > > Thanks for your reply. So for clarity i thought i was getting the > userprofile to pass into the bound form so that the userprofile_id in > the UserProfilePic would get populated/saved. as if i leave the >

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Hi Tom, Thanks for your reply. So for clarity i thought i was getting the userprofile to pass into the bound form so that the userprofile_id in the UserProfilePic would get populated/saved. as if i leave the instance as None then i get an error saying that userprofile_id cannot be empty? also, is

Re: help needed with multiple profile images with UserProfile

2012-02-24 Thread Tom Evans
On Fri, Feb 24, 2012 at 2:20 PM, richard wrote: > Hi, Am i doing this in the correct way? > […] > > any help would be greatly appreciated. > > […] > > from .models import UserProfilePic > class UserProfilePicForm(ModelForm): >    class Meta: >        model =

help needed with multiple profile images with UserProfile

2012-02-24 Thread richard
Hi, Am i doing this in the correct way? I am trying to accomplish a UserProfile having multiple profile images. IE if a user uploads a profile photo it gets saved as the default profile pic but if they upload another pic then that becomes the default pic but i need to keep records of all

Images in html nicht erreichbar durch Django server warum ???

2012-02-04 Thread doniyor
ache, dann speichert er zwar irgendwas, aber das bild ist nicht da. woran kann es liegen ? ich geb mal ganze hierarchie hier an: -transfer - contact (das ist app) - __init__ - models.py - tests.py - views.py - media - js - images - css - template -

Re: Model for images with thumbnails

2012-01-06 Thread BillB1951
s about writing model for media files, especially images. > In my app thumbnails should be automatically created when image is > uploaded. Each such image can have thumnails with different > dimensions. Images can be attached to posts. > > The question is how to store such information in

Re: Model for images with thumbnails

2012-01-06 Thread Andres Reyes
ncescortiz/image > > or you can try https://github.com/SmileyChris/easy-thumbnails > >> On 6 ene, 12:35, MeME <maciej.macias...@gmail.com> wrote: >> > Hello, >> > >> > I'm new to Django. I started to write something for personal >> > purp

Re: Model for images with thumbnails

2012-01-06 Thread Иван Иванов
; Hello, > > > > I'm new to Django. I started to write something for personal > > purposes. > > I have doubts about writing model for media files, especially > > images. In my app thumbnails should be automatically created when > > image is uploaded. Each such image

Re: Model for images with thumbnails

2012-01-06 Thread francescortiz
you can try https://github.com/francescortiz/image On 6 ene, 12:35, MeME <maciej.macias...@gmail.com> wrote: > Hello, > > I'm new to Django. I started to write something for personal > purposes. > I have doubts about writing model for media files, especially images. > In

Model for images with thumbnails

2012-01-06 Thread MeME
Hello, I'm new to Django. I started to write something for personal purposes. I have doubts about writing model for media files, especially images. In my app thumbnails should be automatically created when image is uploaded. Each such image can have thumnails with different dimensions. Images can

Re: displaying images

2011-11-23 Thread Adam Stein
On Wed, 2011-11-23 at 08:31 -0800, marjenni wrote: > Hi all, >Again, I am sure this is a very common problem for beginners, but > all help appreciated. > > > In a python function I am building a webpage, and trying to add > images to a table like this: > >

Re: displaying images

2011-11-23 Thread Ivo Brodien
tion I am building a webpage, and trying to add > images to a table like this: > > html += " > " % imageName > > return HttpResponse(html) > > > Now the table is displayed fine, but images are missing. > > The images are present in the directory /h

displaying images

2011-11-23 Thread marjenni
Hi all, Again, I am sure this is a very common problem for beginners, but all help appreciated. In a python function I am building a webpage, and trying to add images to a table like this: html += " " % imageName return HttpResponse(html) Now the table is displayed fine,

Re: Uploading and viewing images problem

2011-09-20 Thread Rodney Topor
ou can enable serving the media from the development server ?! > *my MEDIA_URL = '/site_media/'* > > And html from the templates > * * > > > > > > On Tue, Sep 20, 2011 at 7:43 AM, Rodney Topor <r.to...@gmail.com> wrote: > > I've written a small project to upload and

Re: Uploading and viewing images problem

2011-09-20 Thread Praveen Krishna R
/'* And html from the templates * * On Tue, Sep 20, 2011 at 7:43 AM, Rodney Topor <r.to...@gmail.com> wrote: > I've written a small project to upload and view images using a recent > development version of Django. In settings.py, I've defined > MEDIA_ROOT = join(PATH, 'media')

Uploading and viewing images problem

2011-09-19 Thread Rodney Topor
I've written a small project to upload and view images using a recent development version of Django. In settings.py, I've defined MEDIA_ROOT = join(PATH, 'media') # the full path to the media subdirectory of my project directory MEDIA_URL = '/media/' I've created subdirectories /media/images

Re: Caching static images using memcache/nginx

2011-09-16 Thread Ilian Iliev
ing a static resource like a image? > > Thomas > > On Thu, Sep 15, 2011 at 4:52 PM, Ilian Iliev <il...@i-n-i.org> wrote: > > How about to set correct headers and make the images cached on user side > > instead > > of wasting memchached resources? > >

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
Aha! That's briliant, but doesn't nginx set those headers for me when returning a static resource like a image? Thomas On Thu, Sep 15, 2011 at 4:52 PM, Ilian Iliev <il...@i-n-i.org> wrote: > How about to set correct headers and make the images cached on user side > instead

Re: Caching static images using memcache/nginx

2011-09-15 Thread Ilian Iliev
How about to set correct headers and make the images cached on user side instead of wasting memchached resources? If you are serving tons of thumbs multiple times I bet that the traffic will be bigger problem than the time it took for these images to be read from disk. Check this post -> h

Re: Caching static images using memcache/nginx

2011-09-15 Thread J. Cliff Dyer
it will be read from the > cache and not from disk. > > I got a folder served by nginx with all my static content (js, css, > images ), including the thumbnails and I want to cache it all ( using > the assigned amount of ram to memcache of course, but I hope this is > handled by me

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
g' >> nginx will look for it on disk, cache it using memcache and return it >> so that the next time the page is rendrered it will be read from the >> cache and not from disk. >> >> I got a folder served by nginx with all my static content (js, css, >> images ), incl

Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
will look for it on disk, cache it using memcache and return it so that the next time the page is rendrered it will be read from the cache and not from disk. I got a folder served by nginx with all my static content (js, css, images ), including the thumbnails and I want to cache it all ( using

Re: Static images for use in admin widget

2011-09-07 Thread Micky Hulse
Hi Tomas, Thanks again for your tips and code samples, I really appreciate it. I really liked that technique of using __init__.py to add a constant to the settings.py file. Very cool! I get what you mean now when you say "I think hardcoding the 'app/' directory is the usual way to do this, you

Re: Static images for use in admin widget

2011-09-07 Thread Micky Hulse
On Tue, Sep 6, 2011 at 10:54 PM, Tomas Neme wrote: > this looks awful to me. Can't you stick that into a .js file and include > that? Doh, yah... If my django-fu skills were better, then maybe I could! :) I should have posted the original code:

Re: Static images for use in admin widget

2011-09-06 Thread Tomas Neme
> Inside the widget's render() function, I have a formatted string that > contains embedded JS, and within that string I have a JS function that > looks like: > > function showCrossHair(divId) { >... >div.innerHTML = ''; >... > }; this looks awful to me. Can't you stick

Static images for use in admin widget

2011-09-06 Thread Micky Hulse
atic files collected to this location: site.com/static/app/... Just curious of the best way to handle linking of images within widgets whilst keeping things modular? I was thinking that I could import STATIC_URL from settings and then do something like this: div.innerHTML = ''; ... where &

Re: Upload Multiple Images App ?

2011-08-17 Thread william ratcliff
which is about image > content.Thank you fire-water.But I woder whether we can upload > multiple images through ajax.Is there any tutorial about this? > > 2011/8/8 Kevin Monceaux <ke...@rawfeddogs.net> > > > > On Fri, Aug 05, 2011 at 10:31:38AM -0700, fire_water wrote:

Re: Upload Multiple Images App ?

2011-08-17 Thread 枯藤天涯
almost all django apps which is about image content.Thank you fire-water.But I woder whether we can upload multiple images through ajax.Is there any tutorial about this? 2011/8/8 Kevin Monceaux <ke...@rawfeddogs.net> > > On Fri, Aug 05, 2011 at 10:31:38AM -0700, fire_water wrote: &

Re: Upload Multiple Images App ?

2011-08-08 Thread Kevin Monceaux
On Fri, Aug 05, 2011 at 10:31:38AM -0700, fire_water wrote: > and has a http://code.google.com/p/django-stdimage/ > issues/detail?id=22">known bug that does not delete images when > its object/row is deleted. > According to django-imagekit's github.com page, it has t

Odp: Upload Multiple Images App ?

2011-08-06 Thread Petey
I did it in a simple way ;) I had seperate model class for images and I used inline models in admin Take a look at code below: models: class News(models.Model): title = models.CharField("Tytuł", max_length=256) text = models.TextField("Treść") date_added =

Upload Multiple Images App ?

2011-08-05 Thread fire_water
I am writing my first Django application and one feature I want to include is the ability for each registered user to be able to upload multiple images. (By registered user, I just mean a typical "create username/password, wait for email notice, activate account".) Each i

Re: merge images into a webpage

2011-07-10 Thread het.oosten
> > Just so happens I'm learning Dutch at the moment, and was able to read a lot > of the code ;p I guess that was my luck :-) -- 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.

Re: merge images into a webpage

2011-07-10 Thread Cal Leeming [Simplicity Media Ltd]
gt; >def __unicode__(self): > > > return '' % > > > (self.plaatje, self.alt) > > > > > I can call the single images in the template with {{plaatje.1}} etc > > > I found out in this thread that it is not a good idea to "abuse" &

Re: merge images into a webpage

2011-07-10 Thread het.oosten
above, when i do: > >        def __unicode__(self): > >                 return '' % > > (self.plaatje, self.alt) > > > I can call the single images in the template with {{plaatje.1}} etc > > I found out in this thread that it is not a good idea to "abuse&qu

Re: merge images into a webpage

2011-07-10 Thread Cal Leeming [Simplicity Media Ltd]
icode__(self): > return '' % > (self.plaatje, self.alt) > > I can call the single images in the template with {{plaatje.1}} etc > I found out in this thread that it is not a good idea to "abuse" > unicode for this > > On Jul 10, 9:28 pm, "het.oosten&quo

Re: merge images into a webpage

2011-07-10 Thread het.oosten
One addition to the above, when i do: def __unicode__(self): return '' % (self.plaatje, self.alt) I can call the single images in the template with {{plaatje.1}} etc I found out in this thread that it is not a good idea to "abuse" unicode for this On Jul 1

Re: merge images into a webpage

2011-07-10 Thread het.oosten
> have the variable image_list in your context which is a list, you can do > this: > > {{ image_list.0 }} and {{ image_list.1 }} This is what i tried, but the only way to show the images is(plaatjes_lijst=image_list): {% for x in plaatje %} {{x.plaatjes_lijst|safe}} {% endfor %} --

Re: merge images into a webpage

2011-07-10 Thread Shawn Milochik
You can easily do this in your template with an index. Assuming you'll have the variable image_list in your context which is a list, you can do this: {{ image_list.0 }} and {{ image_list.1 }} -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: merge images into a webpage

2011-07-10 Thread het.oosten
Here is the link to pastebin: http://pastebin.com/1FuVH7Hu It is all about getting specific content for a season a user chooses (it is a site for a campground) If you need more info, i will be happy to provide. -- You received this message because you are subscribed to the Google Groups

Re: merge images into a webpage

2011-07-10 Thread Cal Leeming [Simplicity Media Ltd]
e a method unless you *really* have to (even if it's for performance, unless your site is getting thousands and thousands of hits a minute, then just use a template) > And i indeed get a nice list of image in the template. I want however > control where the single images show up. With something lik

Re: merge images into a webpage

2011-07-10 Thread het.oosten
Ok perhaps a basic question. I wrote a custom method for my model: def image_list(self): return '' % (self.image, self.alt) And i indeed get a nice list of image in the template. I want however control where the single images show up. With something like {{image. 1}} other

Re: merge images into a webpage

2011-07-10 Thread Shawn Milochik
On 07/10/2011 12:28 PM, het.oosten wrote: Adding a method/property to my model is a thing i haven't considered. You have a good point there. I will do some more reading to find a solution in this direction. Thanks! Rob It's easy to forget that Django is just Python. You're the programmer, so

Re: merge images into a webpage

2011-07-10 Thread het.oosten
Adding a method/property to my model is a thing i haven't considered. You have a good point there. I will do some more reading to find a solution in this direction. Thanks! Rob On Jul 10, 5:54 pm, Shawn Milochik wrote: > I'd rather see the contents of your __unicode__

Re: merge images into a webpage

2011-07-10 Thread Shawn Milochik
I'd rather see the contents of your __unicode__ function as a get_absolute_url function, with the __unicode__ maybe returning just the filename or the parent object's title and the filename. I strongly dislike the embedding of template code in a text field of your model, because it makes

Re: merge images into a webpage

2011-07-10 Thread het.oosten
Oops i posted too fastis there a better way to accomplish the above? On Jul 10, 12:41 pm, "het.oosten" wrote: > I got is working like this: > > In my model: >         titel = models.CharField(max_length=200) >         alt = models.CharField(max_length=200) >        

Re: merge images into a webpage

2011-07-10 Thread het.oosten
I got is working like this: In my model: titel = models.CharField(max_length=200) alt = models.CharField(max_length=200) plaatje = models.ImageField(upload_to='plaatjes/') menu = models.ForeignKey(Menu) seizoenen = models.ManyToManyField(Seizoenen)

Re: merge images into a webpage

2011-07-09 Thread Shawn Milochik
It would work just fine. Something like this: {% for text, images in my_iterable %} {{ text }} {% for image in images %} {% endfor %} {% endfor %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: merge images into a webpage

2011-07-09 Thread het.oosten
ebpage text is one object (just one textfield), and the images are multiple objects.The list of images would be added before or after the text, instead of replacing {{ image1 }} with I would get: lots of text even more text Instead of the desired: lots of text even more text -- You received th

Re: merge images into a webpage

2011-07-09 Thread Shawn Milochik
Make an iterable in your view (list or tuple) containing lists or tuples of two items -- the text and the image link. Then iterate through that in your template with a 'for' tag. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: merge images into a webpage

2011-07-09 Thread het.oosten
> Would using the get_absolute_url() method on your model and then using > that in your tags work? thanks for the reply. This works when you have one dictionary and one template. I want to merge the output of two queries, and render this in a template. Query one gives me: lots of text {{ image1

Re: merge images into a webpage

2011-07-09 Thread Shawn Milochik
On 07/09/2011 03:52 PM, het.oosten wrote: I have two models. One containing images, and one containing the text of a web page. While the text remains the same, the selection of images vary, depending on the session ( I use different themes/moods depending on the season). The selection of images

merge images into a webpage

2011-07-09 Thread het.oosten
I have two models. One containing images, and one containing the text of a web page. While the text remains the same, the selection of images vary, depending on the session ( I use different themes/moods depending on the season). The selection of images works perfectly, but now i am stuck merging

satchmo images

2011-06-16 Thread Bobby Roberts
anyone know where to adjust the upload size of the product images in satchmo? -- 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,

Re: Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread urukay
In form use this field: class MyImageField(ImageField): def __init__(self, *args, **kwargs): super(MyImageField, self).__init__(*args, **kwargs) def clean(self, *args, **kwargs): data = super(MyImageField, self).clean(*args, **kwargs) try: data.name =

Re: Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread Ariel
And how can I change the filename of the image when it is uploaded ??? 2011/5/4 urukay > Or try to change the name of the file when uploading the image/file. > That's how solved it. Had couple problems with it also in development > enviroment and now it's working ok.

Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread Ariel
I am using debian 6 in spanish. On Wed, May 4, 2011 at 2:41 AM, Karen Tracey wrote: > On Tue, May 3, 2011 at 10:22 AM, Ariel wrote: > >> In my apache enviroment settings I have already set that: >> >> export LANG='en_US.UTF-8' >> export

Re: Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-04 Thread urukay
Or try to change the name of the file when uploading the image/file. That's how solved it. Had couple problems with it also in development enviroment and now it's working ok. Haven't tested yet in production, but it should work too. Radovan On 3. Máj, 22:56 h., Tomasz Zieliński

Odp: Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-03 Thread Tomasz Zieliński
W dniu wtorek, 3 maja 2011, 21:34:28 UTC+2 użytkownik Ariel napisał: > > Yes, only on the production enviroment. > > > Try to create a file with UTF8 characters in its name, from your code. Then you'll know if those Apache settings are in effect. -- Tomasz Zielinski pyconsultant.eu -- You

Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-03 Thread Ariel
Yes, only on the production enviroment. Regards 2011/5/3 А. Р. <4d876...@gmail.com> > 2011/5/3 Ariel <...@gmail.com>: > > In my apache enviroment settings I have already set that: > > > > export LANG='en_US.UTF-8' > > export LC_ALL='en_US.UTF-8' > > > > But I still get the same error. Bedsides

Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-03 Thread А . Р .
2011/5/3 Ariel <...@gmail.com>: > In my apache enviroment settings I have already set that: > > export LANG='en_US.UTF-8' > export LC_ALL='en_US.UTF-8' > > But I still get the same error. Bedsides I am using wsgi no modpython. > > Please, could somebody help me ??? > Regards > Thanks in advance. >

Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-03 Thread Ariel
In my apache enviroment settings I have already set that: export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' But I still get the same error. Bedsides I am using wsgi no modpython. Please, could somebody help me ??? Regards Thanks in advance. Ariel On Tue, May 3, 2011 at 1:40 PM, Karen

Re: Problem uploading images and videos with filenames containing not ascii characters

2011-05-03 Thread Karen Tracey
You need to set up the environment/locale for your server so that Python will allow non-ascii characters in filenames. See: http://docs.djangoproject.com/en/1.3/howto/deployment/modpython/#if-you-get-a-unicodeencodeerror Karen -- http://tracey.org/kmt/ -- You received this message because you

Problem uploading images and videos with filenames containing not ascii characters

2011-05-02 Thread Ariel
Hi everybody: How Can I solve this, I have a form to upload videos and images but when a video or image with a filename containing not ascii characters is uploaded then I get the following error: Django Version: 1.2.1 Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't

Re: Admin can't/won't upload new images?

2011-04-08 Thread JonRob
Problem solved. The site was running on passenger and I fogrot to update passenger_wsgi.py to point away from the old site. Jon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Admin can't/won't upload new images?

2011-04-08 Thread JonRob
Hi, I have a strange problem, possibly permissions related, that I was hoping someone might be able to help me diagnose. I have my Django app configured so that I can upload images. Previously this worked fine, I've uploaded over 200 images with no problems. All of a sudden, however, it has

Re: images in a template

2011-03-27 Thread Vladimir
is in directory: /static/images/ products/thumbnails/ - such case dosn't work when image file is in directory: /static/images/products/ - such case dosn't work when image file is in directory: /static/images/ products/thumbnails/d/ and it doesn't work in my hands when image

Re: images in a template

2011-03-19 Thread Sultan Imanhodjaev
The piece of code below from my own development stack ( r'^static/(?P.*)$', serve, {'document_root': '%s/../static' % (APPLICATION,)} ) On Sat, Mar 19, 2011 at 10:42 PM, Vladimir wrote: > Thank You, Sultan! > Search "django.views.static.serve" for Django 1.2

Re: images in a template

2011-03-19 Thread Vladimir
Thank You, Sultan! Search "django.views.static.serve" for Django 1.2 in http://docs.djangoproject.com/ gives nothing. I failed to get any from Your answer, because I'm a beginner, You see. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: images in a template

2011-03-19 Thread Sultan Imanhodjaev
Hello, Sometimes for unknown reason I've to use a small workaround while developing from django.views.static import serve and then just use serve itself url((r'^site_media/(?P.*)$', serve, {'document_root': settings.STATIC_DOC_ROOT}), 2011/3/19 Vladimir > Большое

Re: images in a template

2011-03-19 Thread Vladimir
Большое спасибо, Артем, за добрый совет, сразу моя ошибка прояснилась! У меня есть Подробное руководство А.Головатого и Д.Каплан-Мосса (2010), и книга Дж.Форсье, П.Биссекса и У.Чана (2010). Руководство на сайте Django я тоже стараюсь читать вдумчиво. Не ожидаю, что за меня все сделают. Пока

Re: images in a template

2011-03-19 Thread Vladimir
Thank You very much, Daniel ! I try to follow every advice of You and Mike. > So you put the image in the media directory. In a project directory 'galiontour' I created a subdirectory 'media' and placed 'galion.gif' into it. Index.html was placed into application level directory 'galion'. >

Re: images in a template

2011-03-19 Thread Vladimir
> unmatched parentheses `url((` should be `url(` Thank You very much, Mike! -- 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

Re: images in a template

2011-03-19 Thread Artem
Почемуб тебе сначала не разобратся как и что работает, и не задавать глупых вопросов, за тебя всеравно все не сделают. Почитай (вдумчиво) книжки и туторы по джанге, например мне сам больше помогла разобратся "Beginning Django E-Commerce [Jim McGaw] (2009)" -- You received this message because

Re: images in a template

2011-03-19 Thread Mike Ramirez
On Saturday, March 19, 2011 05:37:04 am Vladimir wrote: > url((r'^site_media/(?P.*)$', 'django.views.static.serve', > {'document_root': settings.STATIC_DOC_ROOT}), unmatched parentheses `url((` should be `url(` Mike -- Program load too heavy for processor to lift. -- You

Re: images in a template

2011-03-19 Thread Daniel Roseman
On Saturday, March 19, 2011 12:54:22 PM UTC, Vladimir wrote: > > Daniel, I understand that's a wrong idea to mix files of different > nature in one directory. I only showed that one and the same simple > (?) configuration: index.html plus image file does works when I call > index.html directly

Re: images in a template

2011-03-19 Thread Vladimir
Daniel, I understand that's a wrong idea to mix files of different nature in one directory. I only showed that one and the same simple (?) configuration: index.html plus image file does works when I call index.html directly and doesn't work when I call it in Django style. Of cource, this is a

Re: images in a template

2011-03-19 Thread Vladimir
1. I have read this article before. I think this instruction teaches us how we can access files in this directory. My problem differs: I can't include this files into index.html. 2. I don't understand why shall I create STATIC_DOC_ROOT, MEDIA_ROOT is already exists. 3. I failed following this

Re: images in a template

2011-03-19 Thread Daniel Roseman
On Saturday, March 19, 2011 9:44:41 AM UTC, Vladimir wrote: > > It does not work. If I call index.html which contains > #title h1{ background-image: url(galion.gif); background-position: > left top; background-repeat: no-repeat; } > directly in web browser then image is displayed. > If I

Re: images in a template

2011-03-19 Thread Mike Ramirez
On Saturday, March 19, 2011 02:44:41 am Vladimir wrote: > It does not work. If I call index.html which contains > #title h1{ background-image: url(galion.gif); background-position: > left top; background-repeat: no-repeat; } > directly in web browser then image is displayed. > If I call it: >

Re: images in a template

2011-03-19 Thread Vladimir
It does not work. If I call index.html which contains #title h1{ background-image: url(galion.gif); background-position: left top; background-repeat: no-repeat; } directly in web browser then image is displayed. If I call it: http://localhost:8000/index/ then image is not displayed. Note, for

Re: images in a template

2011-03-19 Thread Mike Ramirez
On Friday, March 18, 2011 11:12:52 pm Vladimir wrote: > Thank You very much! > I found one more mistake, I need to replace in views.py: > from django.template import loader, Context > with > from django.template import RequestContext > > Now there is no syntax mistake but there is no image. How

Re: images in a template

2011-03-19 Thread Vladimir
Thank You very much! I found one more mistake, I need to replace in views.py: from django.template import loader, Context with from django.template import RequestContext Now there is no syntax mistake but there is no image. How many other mistakes I have done? -- You received this message

Re: images in a template

2011-03-18 Thread Mike Ramirez
On Friday, March 18, 2011 10:39:18 pm Vladimir wrote: > return > render_to_response('index.html',,context_instance=RequestContext(request)) > > Such version lead to an error message: SyntaxError at/index/ , invalid > syntax (views.py, line 5) > What are my mistakes please? xtra comma in

images in a template

2011-03-18 Thread Vladimir
I have read several answeres to similar questions but didn't understand enough. Like others I need to use CSS external file, images and background images. At the beginning I try to use images. 0) I use Django 1.2.5 and development web server. 1) I inserted to setting.py

Re: images

2011-02-15 Thread webzy
Hi, Here is a How-to on this: http://docs.djangoproject.com/en/1.2/howto/static-files/ On Feb 15, 12:00 pm, "Szabo, Patrick \(LNG-VIE\)" wrote: > Hi, > > I just want an image to be shown in my header so i just added it in my > template like this: > > > >

AW: AW: images

2011-02-15 Thread Szabo, Patrick (LNG-VIE)
Now it works...Thanks a lot everybody ! . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT-Entwickler LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.sz...@lexisnexis.at Tel.: +43 (1) 534 52 - 1573 Fax: +43 (1) 534 52 - 146 -- You received this message because

Re: AW: images

2011-02-15 Thread Kenneth Gonsalves
On Tue, 2011-02-15 at 11:07 +0100, Szabo, Patrick (LNG-VIE) wrote: > How do i check the logs !? > I'm using the integrated webserver. you are running it from the console - it will give error messages like 404 with a path -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox

Re: images

2011-02-15 Thread Piotr Zalewa
Learn how to serve static files For the Django 1.3+ http://docs.djangoproject.com/en/dev/howto/static-files/ For Django 1.2 http://docs.djangoproject.com/en/1.2/howto/static-files/ Good luck zalun On 02/15/11 10:00, Szabo, Patrick (LNG-VIE) wrote: > Hi, > > I just want an image to be shown in

Re: images

2011-02-15 Thread Ian McDowall
; Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > > Im Auftrag von Kenneth Gonsalves > > Gesendet: Dienstag, 15. Februar 2011 11:05 > > An: django-users@googlegroups.com > > Betreff: Re: images > > > On Tue, 2011-02-15 at 11:00 +0100, Szabo,

Re: images

2011-02-15 Thread Praveen Krishna R
> -Ursprüngliche Nachricht- > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > Im Auftrag von Kenneth Gonsalves > Gesendet: Dienstag, 15. Februar 2011 11:05 > An: django-users@googlegroups.com > Betreff: Re: images > > On Tue, 2011-02-15 at 11:

AW: images

2011-02-15 Thread Szabo, Patrick (LNG-VIE)
-Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Kenneth Gonsalves Gesendet: Dienstag, 15. Februar 2011 11:05 An: django-users@googlegroups.com Betreff: Re: images On Tue, 2011-02-15 at 11:00 +0100, Szabo, Patrick (LNG-VIE

Re: images

2011-02-15 Thread Kenneth Gonsalves
On Tue, 2011-02-15 at 11:00 +0100, Szabo, Patrick (LNG-VIE) wrote: > Unfortunately i only get the "alt text" shown and not the image. > The image is in the same directory as the template. check your logs to see where it is searching for your image -- regards KG http://lawgon.livejournal.com

images

2011-02-15 Thread Szabo, Patrick (LNG-VIE)
Hi, I just want an image to be shown in my header so i just added it in my template like this: Unfortunately i only get the "alt text" shown and not the image. The image is in the same directory as the template. Why doesn't this work ?! Kind regards . . . . . . . . . . . . . . . . . . . .

Re: What is a good app to use for a portfolio or images and videos?

2011-01-28 Thread mongoose
I downloaded the new django-cms and it's quite a great package. It offers video and images plus many more plugins. It's overkill for a smaller portfolio site but it offers everything. Still just testing though, haven't had to edit much but think that when I need to change things then the hard

Re: need help with images

2011-01-27 Thread Bill Freeman
Are you asking about images you upload using django that appear in individual content items, or are you asking about "static" images, typically used by your CSS as background images or whose url is encoded in img tags directly in your templates? The former is a harder question and req

need help with images

2011-01-27 Thread nicolas lubkov
hello im having a terrible time just showing images in my web. i cant find out how it works. can some one show me how to just post a image in my web?? how to place the setting rigth the media root and url?? thak everybody for your help -- Saludos. Nicolas Lubkov Ing. Informatica de gestion

Re: What is a good app to use for a portfolio or images and videos?

2011-01-27 Thread Stuart
Have a look at django-filer by Stefan Foulis. There's also a plug-in for use with django-cms, if you wish. https://github.com/stefanfoulis/django-filer --Stuart On Jan 27, 7:30 am, mongoose <darrenma1...@gmail.com> wrote: > Hi hi, > > Wanting to make a simple site that hosts im

<    1   2   3   4   5   6   7   8   9   10   >