Re: background image

2013-07-30 Thread Karl Arunachal
Thank you. I will try as you told me. Just one more question, how do i create different static directory for each user? On Tue, Jul 30, 2013 at 5:37 PM, Christian Erhardt < christian.erha...@mojo2k.de> wrote: > Generally speaking you could extend the users profile and add a field to > it. Then y

Re: background image

2013-07-30 Thread Christian Erhardt
Generally speaking you could extend the users profile and add a field to it. Then you could store the image during registration or when a user updates his settings. On the page where you want to show the image you could check for a image in the profile and show it. I started my project with pin

Re: background image for table not apply in printout page and email copy - Django

2013-06-13 Thread Roopa singh
I tried with this also "background:url('{{ STATIC_URL }}images/human.png'); " image background is not applied in print-out and email also. On Thu, Jun 13, 2013 at 3:06 PM, Thomas Weholt wrote: > My first suggestion would be to see what {{ STATIC_URL }} renders as in > your browser. Another thing

Re: background image for table not apply in printout page and email copy - Django

2013-06-13 Thread Thomas Weholt
My first suggestion would be to see what {{ STATIC_URL }} renders as in your browser. Another thing; if you want to use this template to generate emails, IP-addresses starting with 192.168.x.x would not work because they are reserved for internal networks AFAIK. The image would have to be available

Re: background-image

2010-04-28 Thread Bill Freeman
Are you using the development server, or are you running behind apache or similar? If the former, have you configured the development server to serve static media? See: http://docs.djangoproject.com/en/1.1/howto/static-files/ If the latter, have you configured the front end server to serve t

Re: background-image

2010-04-28 Thread luca72
Hello and thanks for your reply i have this: MEDIA_ROOT = '/home/lucak904/Scrivania/Luca/Webframework/Jacopo/sito/ sito_jacopo/media_sito/' MEDIA_URL = '/media_sito/' i have make u subfolder called images under media_sito, but the page is loaded but the image is not show, in the shell of the ser

Re: background-image

2010-04-28 Thread Bill Freeman
url() must be given a url, not a file path. You need to put the image somewhere that is being served by apache, or by the development server (usually a subdirectory of 'media/' or similar) and then use the corresponding url. For example, when running the devolopment server in /home/me/djprojects/

Re: background-image

2010-04-28 Thread Brett Parker
On 28 Apr 07:51, luca72 wrote: > Hello i have a problem when i render with django a background image > with css: > simple css: > > div#main {position: absolute; top: 20%; left: 20%; bottom: 0; right: > 0; overflow:scroll; background-color: black; color:red; font- > size:medium; font-family: TimesN