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
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
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
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
>
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
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 =
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
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
-
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
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
; 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
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
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
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:
>
>
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
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,
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
/'*
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')
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
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?
> >
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
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
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
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
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
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
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:
> 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
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 &
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:
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:
&
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
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 =
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
>
> 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.
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"
&
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
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
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
> 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 %}
--
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.
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
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
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
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
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__
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
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)
>
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)
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
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
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
> 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
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
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
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,
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 =
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.
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
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
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
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
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.
>
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
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
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
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
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
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
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
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
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
> Большое
Большое спасибо, Артем, за добрый совет, сразу моя ошибка прояснилась!
У меня есть Подробное руководство А.Головатого и Д.Каплан-Мосса
(2010), и книга Дж.Форсье, П.Биссекса и У.Чана (2010). Руководство на
сайте Django я тоже стараюсь читать вдумчиво. Не ожидаю, что за меня
все сделают. Пока
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'.
>
> 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
Почемуб тебе сначала не разобратся как и что работает, и не задавать
глупых вопросов, за тебя всеравно все не сделают.
Почитай (вдумчиво) книжки и туторы по джанге, например мне сам больше
помогла разобратся "Beginning Django E-Commerce [Jim McGaw] (2009)"
--
You received this message because
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
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
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
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
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
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:
>
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
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
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
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
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
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:
>
>
>
>
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
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
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
; 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,
> -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:
-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
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
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
. . . . . . . . . . . . . . . . . . . .
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
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
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
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
301 - 400 of 902 matches
Mail list logo