Re: Admin css question for 1.10.7

2017-05-09 Thread Melvyn Sopacua
On Tuesday 09 May 2017 17:48:43 Mike Dewhirst wrote:
> On 9/05/2017 11:45 AM, Mike Dewhirst wrote:
> > On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:
> >> On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> >> > You need to clone the Django repository and run the bisect
> >> > command
> 
> >> > from there:
> snip
> 
> >> running /home/melvyn/hg/django-project/invert.sh
> >> 
> >> Bisecting: 0 revisions left to test after this (roughly 0 steps)
> > 
> > Now I get it!
> > 
> >> [e23e7b2ffe8e282adfd5c597df25c181413c5b3b] Fixed #11544 -- Removed
> >> !important rules in contrib.admin styles.
> >> 
> >> running /home/melvyn/hg/django-project/invert.sh
> >> 
> >> e23e7b2ffe8e282adfd5c597df25c181413c5b3b is the first bad commit
> >> 
> >> commit e23e7b2ffe8e282adfd5c597df25c181413c5b3b
> >> 
> >> Author: elky 
> >> 
> >> Date: Mon Sep 7 00:28:14 2015 +0500
> >> 
> >> Fixed #11544 -- Removed !important rules in contrib.admin styles.
> > 
> > Should I now contact elky and start a conversation?
> 
> I went back to the docs and saw I should add a comment to ticket
> #11544. The ticket has been closed and I couldn't see how to add a
> new comment.

The ticket is also too old to be necro'd. You can open a new one and reference 
it. What I'm really 
surprised about is that this unwanted side-effect went unnoticed for so long. 
Makes you 
question how many people use the wide form view. 

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3381441.YtAzCGAYr7%40devstation.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-09 Thread Mike Dewhirst

On 9/05/2017 11:45 AM, Mike Dewhirst wrote:

On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:


On Monday 08 May 2017 03:57:01 Tim Graham wrote:

> You need to clone the Django repository and run the bisect command

> from there:




snip


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 0 revisions left to test after this (roughly 0 steps)



Now I get it!


[e23e7b2ffe8e282adfd5c597df25c181413c5b3b] Fixed #11544 -- Removed
!important rules in contrib.admin styles.

running /home/melvyn/hg/django-project/invert.sh

e23e7b2ffe8e282adfd5c597df25c181413c5b3b is the first bad commit

commit e23e7b2ffe8e282adfd5c597df25c181413c5b3b

Author: elky 

Date: Mon Sep 7 00:28:14 2015 +0500

Fixed #11544 -- Removed !important rules in contrib.admin styles.



Should I now contact elky and start a conversation?


I went back to the docs and saw I should add a comment to ticket #11544. 
The ticket has been closed and I couldn't see how to add a new comment. 
I suspect closing the ticket cuts off new comments. I'll cc elky and see 
what happens.


As a workaround, I've added my own bit of css in {% block extrastyles %} 
to adjust margin-left like so ...


form .wide p, form .wide input + p.help {
margin-left: 160px !important;
}

... which seems to work. I'd be happy to see forms.css changed but I 
don't know about unintended consequences.


For elky, the symptom is indented help-text in the Admin for 
DecimalFields versus help-text for other fields. It seems to be 
controlled from forms.css like so ...


form .wide p, form .wide input + p.help {
margin-left: 200px;
}

... and making it 160px seems to repair it. Happy to help in any way 
which doesn't involve learning git ;)


Thanks everyone for all your help.

Cheers

Mike



Thanks Tim and Melvyn

Mike


:04 04 8ba07a707a8493e0eed28fd23cb0e0d1b29e4e69
756ac7c45cced7bb403573eb4d31a70c250fddf8 M django

bisect run success

Happy hunting.

--

Melvyn Sopacua

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-users+unsubscr...@googlegroups.com
.
To post to this group, send email to django-users@googlegroups.com
.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3834087.V7UGXNyRTa%40devstation
.

For more options, visit https://groups.google.com/d/optout.




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0afd2f59-c21f-e1fb-11dc-12333096c936%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-08 Thread Mike Dewhirst

On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:


On Monday 08 May 2017 03:57:01 Tim Graham wrote:

> You need to clone the Django repository and run the bisect command

> from there:

Simplicity in Unix:

1 #!/bin/sh

2

3 # Basically, make grep -qv behave like I want it to

4

5 file='django/contrib/admin/static/admin/css/forms.css'

6 bad='form .wide p, form .wide input + p.help {'

7

8 fgrep -q "$bad" $file

9 if [ $? -eq 0 ]

10 then

11 exit 1

12 else

13 exit 0

14 fi

Results:

% git bisect start 2c3c029ede 0b9f366c60

Bisecting: a merge base must be tested

[39d95fb6ada99c59d47fa0eae6d3128abafe2d58] Fixed #24092 -- Widened 
base field support for ArrayField.


% git bisect run `pwd`/invert.sh

running /home/melvyn/hg/django-project/invert.sh

Bisecting: 1196 revisions left to test after this (roughly 10 steps)

[3d650e80ad47fdf3e7758766d2b00ed3c1efb089] Added today's security 
issues to the archive.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 598 revisions left to test after this (roughly 9 steps)

[672de44e242369d29136bbf1f3ae1059dd787936] [1.9.x] Replaced "inbuilt" 
with more common "built-in".


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 298 revisions left to test after this (roughly 8 steps)

[e8bfc1c74767ba902846ed0736327ce400112f3c] Stopped returning mirrors 
from setup_databases.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 149 revisions left to test after this (roughly 7 steps)

[566a01e916a0565db5af8dfb5ac9ce2fafc74c66] [1.9.x] Removed unused 
views.debug.linebreak_iter() function.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 74 revisions left to test after this (roughly 6 steps)

[b0c56b895fd2694d7f5d4595bdbbc41916607f45] Fixed #24496 -- Added CSRF 
Referer checking against CSRF_COOKIE_DOMAIN.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 36 revisions left to test after this (roughly 5 steps)

[b1a29541e5d37c03becde6c84e793766ef23395c] Merge pull request #4761 
from aaugustin/parallelize-tests-attempt-1


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 18 revisions left to test after this (roughly 4 steps)

[eaa3c883450f3c7ea939992ed075257bbac3d8b2] Refs #22258 -- Fixed an 
unclosed temporary file in fixtures test.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 8 revisions left to test after this (roughly 3 steps)

[29d52583e77b247aceeb2f514177a8a6c21ed786] Removed 'Test that' prefix 
from admindocs tests.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 4 revisions left to test after this (roughly 2 steps)

[b929d2d09d24705bc59d1d172921e1feade2777b] Fixed #25200 -- Updated 
tutorial screenshots for new admin theme.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 1 revision left to test after this (roughly 1 step)

[19f98946f2b31b62303aedb5b30951ca295116d8] Fixed #25358 -- Improved 
variable name for question in tutorial.


running /home/melvyn/hg/django-project/invert.sh

Bisecting: 0 revisions left to test after this (roughly 0 steps)



Now I get it!

[e23e7b2ffe8e282adfd5c597df25c181413c5b3b] Fixed #11544 -- Removed 
!important rules in contrib.admin styles.


running /home/melvyn/hg/django-project/invert.sh

e23e7b2ffe8e282adfd5c597df25c181413c5b3b is the first bad commit

commit e23e7b2ffe8e282adfd5c597df25c181413c5b3b

Author: elky 

Date: Mon Sep 7 00:28:14 2015 +0500

Fixed #11544 -- Removed !important rules in contrib.admin styles.



Should I now contact elky and start a conversation?

Thanks Tim and Melvyn

Mike

:04 04 8ba07a707a8493e0eed28fd23cb0e0d1b29e4e69 
756ac7c45cced7bb403573eb4d31a70c250fddf8 M django


bisect run success

Happy hunting.

--

Melvyn Sopacua

--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3834087.V7UGXNyRTa%40devstation 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ebdb2b8b-c667-c3e8-aca8-f97b338bcdef%40dewhirst.com.au.

Re: Admin css question for 1.10.7

2017-05-08 Thread Melvyn Sopacua
On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> You need to clone the Django repository and run the bisect command
> from there:

Simplicity in Unix:

 1  #!/bin/sh
 2
 3  # Basically, make grep -qv behave like I want it to
 4
 5  file='django/contrib/admin/static/admin/css/forms.css'
 6  bad='form .wide p, form .wide input + p.help {'
 7
 8  fgrep -q "$bad" $file
 9  if [ $? -eq 0 ]
10  then
11  exit 1
12  else
13  exit 0
14  fi

Results:
% git bisect start 2c3c029ede 0b9f366c60
Bisecting: a merge base must be tested
[39d95fb6ada99c59d47fa0eae6d3128abafe2d58] Fixed #24092 -- Widened base field 
support 
for ArrayField.

% git bisect run `pwd`/invert.sh
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 1196 revisions left to test after this (roughly 10 steps)
[3d650e80ad47fdf3e7758766d2b00ed3c1efb089] Added today's security issues to the 
archive.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 598 revisions left to test after this (roughly 9 steps)
[672de44e242369d29136bbf1f3ae1059dd787936] [1.9.x] Replaced "inbuilt" with more 
common 
"built-in".
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 298 revisions left to test after this (roughly 8 steps)
[e8bfc1c74767ba902846ed0736327ce400112f3c] Stopped returning mirrors from 
setup_databases.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 149 revisions left to test after this (roughly 7 steps)
[566a01e916a0565db5af8dfb5ac9ce2fafc74c66] [1.9.x] Removed unused 
views.debug.linebreak_iter() function.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 74 revisions left to test after this (roughly 6 steps)
[b0c56b895fd2694d7f5d4595bdbbc41916607f45] Fixed #24496 -- Added CSRF Referer 
checking 
against CSRF_COOKIE_DOMAIN.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 36 revisions left to test after this (roughly 5 steps)
[b1a29541e5d37c03becde6c84e793766ef23395c] Merge pull request #4761 from 
aaugustin/parallelize-tests-attempt-1
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 18 revisions left to test after this (roughly 4 steps)
[eaa3c883450f3c7ea939992ed075257bbac3d8b2] Refs #22258 -- Fixed an unclosed 
temporary 
file in fixtures test.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 8 revisions left to test after this (roughly 3 steps)
[29d52583e77b247aceeb2f514177a8a6c21ed786] Removed 'Test that' prefix from 
admindocs 
tests.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 4 revisions left to test after this (roughly 2 steps)
[b929d2d09d24705bc59d1d172921e1feade2777b] Fixed #25200 -- Updated tutorial 
screenshots for new admin theme.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 1 revision left to test after this (roughly 1 step)
[19f98946f2b31b62303aedb5b30951ca295116d8] Fixed #25358 -- Improved variable 
name for 
question in tutorial.
running /home/melvyn/hg/django-project/invert.sh
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[e23e7b2ffe8e282adfd5c597df25c181413c5b3b] Fixed #11544 -- Removed !important 
rules in 
contrib.admin styles.
running /home/melvyn/hg/django-project/invert.sh
e23e7b2ffe8e282adfd5c597df25c181413c5b3b is the first bad commit
commit e23e7b2ffe8e282adfd5c597df25c181413c5b3b
Author: elky 
Date:   Mon Sep 7 00:28:14 2015 +0500

Fixed #11544 -- Removed !important rules in contrib.admin styles.

:04 04 8ba07a707a8493e0eed28fd23cb0e0d1b29e4e69 
756ac7c45cced7bb403573eb4d31a70c250fddf8 M   django
bisect run success


Happy hunting.
-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3834087.V7UGXNyRTa%40devstation.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-08 Thread Tim Graham
You need to clone the Django repository and run the bisect command from 
there: 
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/

That said, you might have some luck using the "Blame" button on 
https://github.com/django/django/blob/stable/1.9.x/django/contrib/admin/static/admin/css/forms.css
That'll take you take a page that shows the latest change for each line.

On Sunday, May 7, 2017 at 10:01:19 PM UTC-4, Mike Dewhirst wrote:
>
> Tim 
>
> The problem does not exist in 1.8.18 and does exist in 1.9 
>
> Here is the test I wrote to see if the css file contains the problem 
> (which I established by trial and error) ... 
>
> # -*- coding: utf-8 -*- 
> import os 
> from django.test import TestCase 
> from django.contrib import admin 
>
>
> expected = "form .wide p, form .wide input + p.help {" 
>
>
> class TestBadCss(TestCase): 
>
>  def test_bad_css(self): 
>  base_css = 'static/admin/css/forms.css' 
>  exists = False 
>  stradmin = str(admin) 
>  pth = os.path.split(stradmin.split()[-1].split("'")[-2])[0] 
>  base_css = os.path.join(pth, base_css).replace("\\","/") 
>  #print("\n%s" % base_css) 
>  if os.path.isfile(base_css): 
>  lines = list() 
>  with open(base_css, "r") as base: 
>  lines = base.readlines() 
>  for line in lines: 
>  exists = expected in line 
>  if exists: 
>  break 
>  self.assertEqual(exists, False) 
>
> I installed git and tried to do the bisecting thing but that didn't work 
> for me 
>
> (xxex3) C:\Users\mike\env\xxex3\ssds>git bisect bad 
> fatal: Not a git repository (or any of the parent directories): .git 
>
> Where should I go next? 
>
> Thanks 
>
> Mike 
>
> On 7/05/2017 8:12 PM, Tim Graham wrote: 
> > You can use git bisect to find the Django commit where the behavior 
> > changed: 
> > 
> https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression
>  
> > 
> > On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote: 
> > 
> > I'm just (slowly) advancing from 1.8 to 1.11 and stopping for a 
> short 
> > while at 1.10. 
> > 
> > I notice that help-text doesn't line up under the left edge of 
> > DecimalField fields the way it does for TextFields and most others. 
> > 
> > Is this a deliberate design decision? 
> > 
> > Thanks 
> > 
> > Mike 
> > 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ff638d8d-8d37-4772-a8b2-baa671a67beb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-07 Thread Mike Dewhirst

Tim

The problem does not exist in 1.8.18 and does exist in 1.9

Here is the test I wrote to see if the css file contains the problem 
(which I established by trial and error) ...


# -*- coding: utf-8 -*-
import os
from django.test import TestCase
from django.contrib import admin


expected = "form .wide p, form .wide input + p.help {"


class TestBadCss(TestCase):

def test_bad_css(self):
base_css = 'static/admin/css/forms.css'
exists = False
stradmin = str(admin)
pth = os.path.split(stradmin.split()[-1].split("'")[-2])[0]
base_css = os.path.join(pth, base_css).replace("\\","/")
#print("\n%s" % base_css)
if os.path.isfile(base_css):
lines = list()
with open(base_css, "r") as base:
lines = base.readlines()
for line in lines:
exists = expected in line
if exists:
break
self.assertEqual(exists, False)

I installed git and tried to do the bisecting thing but that didn't work 
for me


(xxex3) C:\Users\mike\env\xxex3\ssds>git bisect bad
fatal: Not a git repository (or any of the parent directories): .git

Where should I go next?

Thanks

Mike

On 7/05/2017 8:12 PM, Tim Graham wrote:
You can use git bisect to find the Django commit where the behavior 
changed:

https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression

On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote:

I'm just (slowly) advancing from 1.8 to 1.11 and stopping for a short
while at 1.10.

I notice that help-text doesn't line up under the left edge of
DecimalField fields the way it does for TextFields and most others.

Is this a deliberate design decision?

Thanks

Mike



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c18ff28c-4dbb-7b71-68bd-48f4cc38ecd5%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-07 Thread Mike Dewhirst

On 7/05/2017 8:12 PM, Tim Graham wrote:
You can use git bisect to find the Django commit where the behavior 
changed:

https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression


Just read this and I have two problems ...

1. It is a css problem resulting in help-text which is stepped in by 
200px versus 160px and I can adjust that in the css file to make 
everything line up again. However, the real problem here is I don't know 
how to write a test for that.


2. I have (so far) no use for github and zero competence therein. I use 
svn.


The workaround for problem 2 is to start looking backwards from 1.10.7 
to see if I can visually inspect the css files. I can install different 
versions and bisect manually.


However, maybe the change is in the widgets or the forms?

Thanks for any hints if you think that is the case.

Mike



On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote:

I'm just (slowly) advancing from 1.8 to 1.11 and stopping for a short
while at 1.10.

I notice that help-text doesn't line up under the left edge of
DecimalField fields the way it does for TextFields and most others.

Is this a deliberate design decision?

Thanks

Mike


-- 
PLEASE NOTE OUR NEW LANDLINE IS +61 (0)3 9034 3977


Climate Pty Ltd
PO Box 308
Mount Eliza
Vic 3930
Australia +61

T: 03 9034 3977
M: 0411 704 143


--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/77fb23ef-184d-4887-a3cb-01014a7e0392%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/854f8225-0042-a333-e1d7-9409ce007bc6%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Admin css question for 1.10.7

2017-05-07 Thread Tim Graham
You can use git bisect to find the Django commit where the behavior changed:
https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression

On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote:
>
> I'm just (slowly) advancing from 1.8 to 1.11 and stopping for a short 
> while at 1.10. 
>
> I notice that help-text doesn't line up under the left edge of 
> DecimalField fields the way it does for TextFields and most others. 
>
> Is this a deliberate design decision? 
>
> Thanks 
>
> Mike 
>
>
> -- 
> PLEASE NOTE OUR NEW LANDLINE IS +61 (0)3 9034 3977 
>
> Climate Pty Ltd 
> PO Box 308 
> Mount Eliza 
> Vic 3930 
> Australia +61 
>
> T: 03 9034 3977 
> M: 0411 704 143 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/77fb23ef-184d-4887-a3cb-01014a7e0392%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Admin css question for 1.10.7

2017-05-06 Thread Mike Dewhirst
I'm just (slowly) advancing from 1.8 to 1.11 and stopping for a short 
while at 1.10.


I notice that help-text doesn't line up under the left edge of 
DecimalField fields the way it does for TextFields and most others.


Is this a deliberate design decision?

Thanks

Mike


--
PLEASE NOTE OUR NEW LANDLINE IS +61 (0)3 9034 3977

Climate Pty Ltd
PO Box 308
Mount Eliza
Vic 3930
Australia +61

T: 03 9034 3977
M: 0411 704 143


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/63d840ac-2a6d-dba4-00e2-aa6a984b973f%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: CSS question for the Admin

2016-06-02 Thread Luis Zárate
Include your own CSS en admin meta


class myAdmin(admin.ModelAdmin):

 class Meta:
   css ={'all': ['yourcss.css']}



El jueves, 2 de junio de 2016, Mike Dewhirst 
escribió:
> On 2/06/2016 7:31 PM, Michal Petrucha wrote:
>>
>> On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wrote:
>>>
>>> I have a varchar field of 300+ chars and I'd like to know how to provide
>>> space to wrap it on screen without resorting to a TextField
>>>
>>> Any CSS ideas?
>>>
>>> Thanks
>>>
>>> Mike
>>
>> Perhaps you could override the widget to a Textarea with the right
>> maxlength attribute? That should be fine if you don't target IE<10...
>
> I'm guessing I have to first inherit the admin form for the page involved
then tweak the widget.
>
> Haven't played there before. Back to the docs ...
>
> Thank you Michal
>
> Cheers
>
> Mike
>
>>
>> Cheers,
>>
>> Michal
>>
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/c15c5d17-075a-542c-31c3-35cc1f1d3120%40dewhirst.com.au
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyPuSvK0n2OcLOm%2BhguE44iSc32rNMq%2BCvRie%3DUQkowCYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: CSS question for the Admin

2016-06-02 Thread Mike Dewhirst

On 2/06/2016 7:31 PM, Michal Petrucha wrote:

On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wrote:

I have a varchar field of 300+ chars and I'd like to know how to provide
space to wrap it on screen without resorting to a TextField

Any CSS ideas?

Thanks

Mike


Perhaps you could override the widget to a Textarea with the right
maxlength attribute? That should be fine if you don't target IE<10...


I'm guessing I have to first inherit the admin form for the page 
involved then tweak the widget.


Haven't played there before. Back to the docs ...

Thank you Michal

Cheers

Mike



Cheers,

Michal



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c15c5d17-075a-542c-31c3-35cc1f1d3120%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: CSS question for the Admin

2016-06-02 Thread Michal Petrucha
On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wrote:
> I have a varchar field of 300+ chars and I'd like to know how to provide
> space to wrap it on screen without resorting to a TextField
> 
> Any CSS ideas?
> 
> Thanks
> 
> Mike

Perhaps you could override the widget to a Textarea with the right
maxlength attribute? That should be fine if you don't target IE<10...

Cheers,

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20160602093101.GN29054%40konk.org.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


CSS question for the Admin

2016-06-02 Thread Mike Dewhirst
I have a varchar field of 300+ chars and I'd like to know how to provide 
space to wrap it on screen without resorting to a TextField


Any CSS ideas?

Thanks

Mike

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b771dd58-8fdd-377d-a9ef-dda948359456%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: CSS question

2011-08-22 Thread Cal Leeming [Simplicity Media Ltd]
Really would advice against using inline-block - for same reasons as before.

Like anything though, CSS is another one of those things you have to
sometimes learn the hard way... But the trick is, CSS/HTML shouldn't be
hard, it should be one of those things that just rolls off the finger tips.

Again, others may disagree.

On Mon, Aug 22, 2011 at 9:59 PM, Axel Bock
wrote:

> well. inline-block is around since … at least 2007ish, and according to
> this  table it _really_ should
> be no problem for a somewhat new browser.
> and I honestly think IE6&7 support is … not an option, given that ie8 is
> around since 2006!
>
> *if* you have the written requirement … bad. if not, well, I'd go for it.
>
> of course the table might be wrong. that'd be bad, too :)
>
>
> greets,
> axel.
>
>
> Am 22.08.2011 um 21:19 schrieb Cal Leeming [Simplicity Media Ltd]:
>
> Sorry to be a party pooper, but inline-block is yet again another one of
> those big no-nos when it comes to cross browser/version.
>
> http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
>
>
>
> On Mon, Aug 22, 2011 at 7:35 PM, Axel Bock  > wrote:
>
>> Hah! I can answer something on a Django-list - oh joy :) .
>> Yes, indeed I have an idea. *inline-block* may be the css thing for you.
>>
>> A very nice example for that is here:
>> http://www.brunildo.org/test/inline-block.html
>> Go to http://www.brunildo.org/ to have an overview over a lot of other
>> stuff, quite helpful.
>>
>>
>> Greetings,
>> Axel.
>>
>>
>> p.s.: does that mean I'm intelligent? ;)
>>
>>
>> Am 21.08.2011 um 23:47 schrieb Joshua Russo:
>>
>> I know this is a bit off topic but I know this place is full of very
>> helpful intelligent people. :o)
>>
>> Ok so I have an html block (div, p, doesn't matter what kind), and I fill
>> it with a label and an input text field. The input is always larger than the
>> label (rightly so), but the label is always aligned to the top of the block.
>> I want to center the label in the block but for the life of me, I can't
>> figure out how.
>>
>> Any ideas on how to fix it or where to go to get an answer?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Axel Bock
well. inline-block is around since … at least 2007ish, and according to this 
table it _really_ should be no problem for a somewhat new browser. 
and I honestly think IE6&7 support is … not an option, given that ie8 is around 
since 2006!

*if* you have the written requirement … bad. if not, well, I'd go for it. 

of course the table might be wrong. that'd be bad, too :)


greets, 
axel.


Am 22.08.2011 um 21:19 schrieb Cal Leeming [Simplicity Media Ltd]:

> Sorry to be a party pooper, but inline-block is yet again another one of 
> those big no-nos when it comes to cross browser/version.
> 
> http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
> 
> 
> 
> On Mon, Aug 22, 2011 at 7:35 PM, Axel Bock  
> wrote:
> Hah! I can answer something on a Django-list - oh joy :) .
> Yes, indeed I have an idea. *inline-block* may be the css thing for you. 
> 
> A very nice example for that is here: 
> http://www.brunildo.org/test/inline-block.html
> Go to http://www.brunildo.org/ to have an overview over a lot of other stuff, 
> quite helpful.
> 
> 
> Greetings, 
> Axel.
> 
> 
> p.s.: does that mean I'm intelligent? ;)
> 
> 
> Am 21.08.2011 um 23:47 schrieb Joshua Russo:
> 
>> I know this is a bit off topic but I know this place is full of very helpful 
>> intelligent people. :o)
>> 
>> Ok so I have an html block (div, p, doesn't matter what kind), and I fill it 
>> with a label and an input text field. The input is always larger than the 
>> label (rightly so), but the label is always aligned to the top of the block. 
>> I want to center the label in the block but for the life of me, I can't 
>> figure out how.
>> 
>> Any ideas on how to fix it or where to go to get an answer?
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Micky Hulse
Hi Cal,

On Mon, Aug 22, 2011 at 12:49 AM, Cal Leeming [Simplicity Media Ltd]
 wrote:
> OP - let me know if you resolved your issue. If not, ill show you the
> standard way of doing it.

I have always considered vertical-align pretty standard. ;)

> For the record - vertical align in some usages isnt going to work very
> nicely cross browser/versions.

I get pretty good results for the major browsers plus IE going back to
version 6.

Demo:



CSS/HTML tested via:

MAC:
Firefox 5.0.1, Safari 5.1, Opera 11.50, Chrome 13.0.x

PC:
Firefox 6.0, Firefox 5.0, Firefox 3.6.18, Safari 5.1, Opera 11.50,
Chrome 13.0.x,
IE 9.0.x, IE 8.0.x, IE 7.0.x, IE 6.0.x

Of course, that's just OS X and Vista/XP... I don't have an easy way
to quickly/directly test other platforms.

Cheers,
Micky

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Cal Leeming [Simplicity Media Ltd]
Sorry to be a party pooper, but inline-block is yet again another one of
those big no-nos when it comes to cross browser/version.

http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/



On Mon, Aug 22, 2011 at 7:35 PM, Axel Bock
wrote:

> Hah! I can answer something on a Django-list - oh joy :) .
> Yes, indeed I have an idea. *inline-block* may be the css thing for you.
>
> A very nice example for that is here:
> http://www.brunildo.org/test/inline-block.html
> Go to http://www.brunildo.org/ to have an overview over a lot of other
> stuff, quite helpful.
>
>
> Greetings,
> Axel.
>
>
> p.s.: does that mean I'm intelligent? ;)
>
>
> Am 21.08.2011 um 23:47 schrieb Joshua Russo:
>
> I know this is a bit off topic but I know this place is full of very
> helpful intelligent people. :o)
>
> Ok so I have an html block (div, p, doesn't matter what kind), and I fill
> it with a label and an input text field. The input is always larger than the
> label (rightly so), but the label is always aligned to the top of the block.
> I want to center the label in the block but for the life of me, I can't
> figure out how.
>
> Any ideas on how to fix it or where to go to get an answer?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Axel Bock
Hah! I can answer something on a Django-list - oh joy :) .
Yes, indeed I have an idea. *inline-block* may be the css thing for you. 

A very nice example for that is here: 
http://www.brunildo.org/test/inline-block.html
Go to http://www.brunildo.org/ to have an overview over a lot of other stuff, 
quite helpful.


Greetings, 
Axel.


p.s.: does that mean I'm intelligent? ;)


Am 21.08.2011 um 23:47 schrieb Joshua Russo:

> I know this is a bit off topic but I know this place is full of very helpful 
> intelligent people. :o)
> 
> Ok so I have an html block (div, p, doesn't matter what kind), and I fill it 
> with a label and an input text field. The input is always larger than the 
> label (rightly so), but the label is always aligned to the top of the block. 
> I want to center the label in the block but for the life of me, I can't 
> figure out how.
> 
> Any ideas on how to fix it or where to go to get an answer?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Cal Leeming [Simplicity Media Ltd]
-- Forwarded message --
From: "Cal Leeming" <c...@foxwhisper.co.uk>
Date: Aug 22, 2011 8:49 AM
Subject: Re: CSS question
To: <django-users@googlegroups.com>

OP - let me know if you resolved your issue. If not, ill show you the
standard way of doing it.

For the record - vertical align in some usages isnt going to work very
nicely cross browser/versions.
On Aug 21, 2011 10:47 PM, "Joshua Russo" <josh.r.ru...@gmail.com> wrote:
> I know this is a bit off topic but I know this place is full of very
> helpful intelligent people. :o)
>
> Ok so I have an html block (div, p, doesn't matter what kind), and I fill
it
> with a label and an input text field. The input is always larger than the
> label (rightly so), but the label is always aligned to the top of the
block.
> I want to center the label in the block but for the life of me, I can't
> figure out how.
>
> Any ideas on how to fix it or where to go to get an answer?
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-22 Thread Cal Leeming
OP - let me know if you resolved your issue. If not, ill show you the
standard way of doing it.

For the record - vertical align in some usages isnt going to work very
nicely cross browser/versions.
On Aug 21, 2011 10:47 PM, "Joshua Russo"  wrote:
> I know this is a bit off topic but I know this place is full of very
> helpful intelligent people. :o)
>
> Ok so I have an html block (div, p, doesn't matter what kind), and I fill
it
> with a label and an input text field. The input is always larger than the
> label (rightly so), but the label is always aligned to the top of the
block.
> I want to center the label in the block but for the life of me, I can't
> figure out how.
>
> Any ideas on how to fix it or where to go to get an answer?
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-21 Thread Joshua Russo
Thanks for the help, CSS is always my gremlin 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TmoW1R-DflQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-21 Thread Micky Hulse
P.S.

There's a great CSS listserv here:



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: CSS question

2011-08-21 Thread Micky Hulse
Hello,

[ot]

One way to do it...

You could make all of your elements (label/input) inside of your block
container display "inline" and then use something like this:

#someContainer * {
...
vertical-align: middle !important;
...
}

The "!important" (what I call "not important") is optional, depending
on your setup.

You might also play around with line-height and font-size (i.e. apply
the same sizes to labels and input fields) in order to tame things
down.

line-height: 1;

Remember that you should omit the unit for line-height property values.
Here's one reference for that:



I also use a reset/base/fonts css (I prefer YUI) in order to
reset/normalize my global styles... That might also help you.

Hope that helps.

[/ot]

Cheers,
Micky

On Sun, Aug 21, 2011 at 2:47 PM, Joshua Russo  wrote:
> I know this is a bit off topic but I know this place is full of very
> helpful intelligent people. :o)
> Ok so I have an html block (div, p, doesn't matter what kind), and I fill it
> with a label and an input text field. The input is always larger than the
> label (rightly so), but the label is always aligned to the top of the block.
> I want to center the label in the block but for the life of me, I can't
> figure out how.
> Any ideas on how to fix it or where to go to get an answer?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Micky Hulse
Web Content Editor
The Register-Guard
3500 Chad Drive
Eugene, OR 97408
Phone: (541) 338-2621
Fax: (541) 683-7631
Web: 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



CSS question

2011-08-21 Thread Joshua Russo
I know this is a bit off topic but I know this place is full of very 
helpful intelligent people. :o)

Ok so I have an html block (div, p, doesn't matter what kind), and I fill it 
with a label and an input text field. The input is always larger than the 
label (rightly so), but the label is always aligned to the top of the block. 
I want to center the label in the block but for the life of me, I can't 
figure out how.

Any ideas on how to fix it or where to go to get an answer?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/-6G_bvvoyM0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: HTML / CSS question

2009-09-23 Thread Joshua Russo
On Wed, Sep 23, 2009 at 1:00 PM, Daniel Roseman wrote:

>
> On Sep 23, 2:54 pm, Joshua Russo  wrote:
> > I want to apply style to a block of text in the middle of a sentance
> without
> > effecting the flow. I've been using what feels like a serious hack by
> using
> >  tags with a class property. My big fear is that the tags will
> > disappear from the list of supported tags. But really there has to be a
> way
> > to do this without using a class attached to a depreciated tag. Any
> > suggestions?
> > Thanks
> > Josh
>
> That is what the  tag is for.


Gotcha. Thanks.

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: HTML / CSS question

2009-09-23 Thread Daniel Roseman

On Sep 23, 2:54 pm, Joshua Russo  wrote:
> I want to apply style to a block of text in the middle of a sentance without
> effecting the flow. I've been using what feels like a serious hack by using
>  tags with a class property. My big fear is that the tags will
> disappear from the list of supported tags. But really there has to be a way
> to do this without using a class attached to a depreciated tag. Any
> suggestions?
> Thanks
> Josh

That is what the  tag is for.
--
DR.
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



HTML / CSS question

2009-09-23 Thread Joshua Russo
I want to apply style to a block of text in the middle of a sentance without
effecting the flow. I've been using what feels like a serious hack by using
 tags with a class property. My big fear is that the tags will
disappear from the list of supported tags. But really there has to be a way
to do this without using a class attached to a depreciated tag. Any
suggestions?
Thanks
Josh

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS question: django on apache/mod_python

2007-07-09 Thread [EMAIL PROTECTED]


> The results of the above telnet
> *should* (on a compliant proxy) leak a little info about the
> proxy server in the HTTP headers.

Got it!  Thanks -- I looked at the HTTP header for the CSS file, and
'Vary' was set to 'cookie'.  Cleared cookies in my browser (not a
default when clearing cache & other data), and there were the CSS
changes.

-Heather


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS question: django on apache/mod_python

2007-07-09 Thread Tim Chase

> I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1,
> and I use SSH to connect to my server.  After a few days of
> shuffling and cursing and fiddling, I've got everything
> running nicely: apps work, dbs work, templates work, css
> works.  But, I've found that when I make CSS changes, it can
> be 20 minutes or more before they "take" (eg. before I can see
> them when I open the site up in a browser), even after
> restarting the server.  But, template and code changes 'take' 
> immediately (or right after a server restart).

I'd try to narrow down where the problem is:

-if it's on the browser, using a 2nd browser on that machine 
should not pick up wrongly-cached stuff from the 1st browser.

-if it's on the server, you should be able to

   [EMAIL PROTECTED] telnet example.com 80
   GET /path/to/file.css HTTP/1.1
   Host: example.com

   [correct output?]

Another possibility might be a transparently caching proxy 
between you and the server.  The results of the above telnet 
*should* (on a compliant proxy) leak a little info about the 
proxy server in the HTTP headers.  If this is the case, things 
may be working properly, as caches should obey their headers, 
which should give them permission to cache things for a spell 
(such as 20-30 annoying minutes)

If so, you should be able to hit the server *from* the *server*:

   [EMAIL PROTECTED] telnet localhost 80
   GET /path/to/file.css HTTP/1.1
   Host: example.com

(make sure that if the proxy is listening on port 80, and 
redirecting to port X that you change the "80" to the appropriate 
"X"...this would be in your server configuration)

Once you know which of the three situations is the case (a messed 
up browser cache, a messed up server, or a messed up proxy), you 
can take appropriate action.  This may be clearing your cache 
(you've already tried), ensuring the server process really did 
restart, or changing your outbound headers to reduce caching time 
until you know it's working properly.

It would also be helpful to know who (apache or django) is 
handling these media files.

-tim





--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



CSS question: django on apache/mod_python

2007-07-09 Thread [EMAIL PROTECTED]

Hey all --

I've run into an unexpected situation, but feel it may be due more to
my inexperience than any innate weirdness.  Perhaps someone can
explain?

I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1, and I
use SSH to connect to my server.  After a few days of shuffling and
cursing and fiddling, I've got everything running nicely: apps work,
dbs work, templates work, css works.  But, I've found that when I make
CSS changes, it can be 20 minutes or more before they "take" (eg.
before I can see them when I open the site up in a browser), even
after restarting the server.  But, template and code changes 'take'
immediately (or right after a server restart).

I do see the CSS changes eventually, but during the 20-minutes-or-so
waiting period, the site seems to be pulling up the previous version
of the CSS file, according to my web browser (Firefox and Opera).  The
old version, however, is nowhere to be found on my web server.  I've
tried clearing my browser cache, which doesn't work either.

Is this normal?  I'm new to mod_python and fairly new to Apache, so
maybe it is completely expected and I just wasn't aware.  Or, maybe
I've done something wrong?  Or perhaps its a browser problem?  If it
is completely expected, how do others here deal with it?

Appreciative of any insight!

Heather Yager
Biodiversity Database Programmer @ The Academy of Natural Sciences


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---