Re: admin home page

2011-02-27 Thread Vladimir
To Lee Hinde:
Thank You. You answered me:
Your browser's not finding the admin media location to load the css.
Look at the docs for ADMIN_MEDIA_PREFIX. (I think that's the one...)

I have looked:
ADMIN_MEDIA_PREFIX
Default: '/media/'
The URL prefix for admin media -- CSS, JavaScript and images used by
the Django administrative interface. Make sure to use a trailing
slash, and to have this be different from the MEDIA_URL setting (since
the same URL cannot be mapped onto two different sets of files).

I haven't edit ADMIN_MEDIA_PREFIX = '/media/' in settings.py

-- 
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: mistake in admin home page

2011-02-27 Thread Lee Hinde
On Sun, Feb 27, 2011 at 5:46 AM, vladimir  wrote:
> Please help me, why do I get such a form of admin home page (after
> autentification):
>
> http://www.google.com/url?sa=D&q=https://docs.google.com/leaf%3Fid%3D0B5W4njXO9ND_YmY0ZGQ4NTktZWZiZC00MzU3LWI5ZWEtYTFmM2JkODY5YmEy%26hl%3Den%26authkey%3DCMCK6uQG


Your browser's not finding the admin media location to load the css.
Look at the docs for ADMIN_MEDIA_PREFIX. (I think that's the one...)

-- 
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: admin home page

2011-02-27 Thread Vladimir
I have installed Django-1.2.5. No effect.

-- 
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: admin home page

2011-02-27 Thread Stefano
I use virtualenv  so can test my app with multiple django version easy.

http://pypi.python.org/pypi/virtualenv

S.

2011/2/27 Vladimir :
> is it a good idea to delete Django from Python27/Lib/site-packages and
> install Django-1.2.5 ?
>
> --
> 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: admin home page

2011-02-27 Thread Vladimir
is it a good idea to delete Django from Python27/Lib/site-packages and
install Django-1.2.5 ?

-- 
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: admin home page

2011-02-27 Thread Vladimir
/*
DJANGO Admin styles
*/

body {
margin: 0;
padding: 0;
font-size: 12px;
font-family: "Lucida Grande","DejaVu Sans","Bitstream Vera
Sans",Verdana,Arial,sans-serif;
color: #333;
background: #fff;
}

/* LINKS */

a:link, a:visited {
color: #5b80b2;
text-decoration: none;
}

a:hover {
color: #036;
}

a img {
border: none;
}

a.section:link, a.section:visited {
color: white;
text-decoration: none;
}

/* GLOBAL DEFAULTS */

p, ol, ul, dl {
margin: .2em 0 .8em 0;
}

p {
padding: 0;
line-height: 140%;
}

h1,h2,h3,h4,h5 {
font-weight: bold;
}

h1 {
font-size: 18px;
color: #666;
padding: 0 6px 0 0;
margin: 0 0 .2em 0;
}

h2 {
font-size: 16px;
margin: 1em 0 .5em 0;
}

h2.subhead {
font-weight: normal;
margin-top: 0;
}

h3 {
font-size: 14px;
margin: .8em 0 .3em 0;
color: #666;
font-weight: bold;
}

h4 {
font-size: 12px;
margin: 1em 0 .8em 0;
padding-bottom: 3px;
}

h5 {
font-size: 10px;
margin: 1.5em 0 .5em 0;
color: #666;
text-transform: uppercase;
letter-spacing: 1px;
}

ul li {
list-style-type: square;
padding: 1px 0;
}

ul.plainlist {
margin-left: 0 !important;
}

ul.plainlist li {
list-style-type: none;
}

li ul {
margin-bottom: 0;
}

li, dt, dd {
font-size: 11px;
line-height: 14px;
}

dt {
font-weight: bold;
margin-top: 4px;
}

dd {
margin-left: 0;
}

form {
margin: 0;
padding: 0;
}

fieldset {
margin: 0;
padding: 0;
}

blockquote {
font-size: 11px;
color: #777;
margin-left: 2px;
padding-left: 10px;
border-left: 5px solid #ddd;
}

code, pre {
font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New",
Courier, monospace;
background: inherit;
color: #666;
font-size: 11px;
}

pre.literal-block {
margin: 10px;
background: #eee;
padding: 6px 8px;
}

code strong {
color: #930;
}

hr {
clear: both;
color: #eee;
background-color: #eee;
height: 1px;
border: none;
margin: 0;
padding: 0;
font-size: 1px;
line-height: 1px;
}

/* TEXT STYLES & MODIFIERS */

.small {
font-size: 11px;
}

.tiny {
font-size: 10px;
}

p.tiny {
margin-top: -2px;
}

.mini {
font-size: 9px;
}

p.mini {
margin-top: -3px;
}

.help, p.help {
font-size: 10px !important;
color: #999;
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
vertical-align: middle;
}

.quiet, a.quiet:link, a.quiet:visited {
color: #999 !important;
font-weight: normal !important;
}

.quiet strong {
font-weight: bold !important;
}

.float-right {
float: right;
}

.float-left {
float: left;
}

.clear {
clear: both;
}

.align-left {
text-align: left;
}

.align-right {
text-align: right;
}

.example {
margin: 10px 0;
padding: 5px 10px;
background: #efefef;
}

.nowrap {
white-space: nowrap;
}

/* TABLES */

table {
border-collapse: collapse;
border-color: #ccc;
}

td, th {
font-size: 11px;
line-height: 13px;
border-bottom: 1px solid #eee;
vertical-align: top;
padding: 5px;
font-family: "Lucida Grande", Verdana, Arial, sans-serif;
}

th {
text-align: left;
font-size: 12px;
font-weight: bold;
}

thead th,
tfoot td {
color: #666;
padding: 2px 5px;
font-size: 11px;
background: #e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-
x;
border-left: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}

tfoot td {
border-bottom: none;
border-top: 1px solid #ddd;
}

thead th:first-child,
tfoot td:first-child {
border-left: none !important;
}

thead th.optional {
font-weight: normal !important;
}

fieldset table {
border-right: 1px solid #eee;
}

tr.row-label td {
font-size: 9px;
padding-top: 2px;
padding-bottom: 0;
border-bottom: none;
color: #666;
margin-top: -1px;
}

tr.alt {
background: #f6f6f6;
}

.row1 {
background: #EDF3FE;
}

.row2 {
background: white;
}

/* SORTABLE TABLES */

thead th a:link, thead th a:visited {
color: #666;
display: block;
}

table thead th.sorted {
background-position: bottom left !important;
}

table thead th.sorted a {
padding-right: 13px;
}

table thead th.ascending a {
background: url(../img/admin/arrow-down.gif) right .4em no-repeat;
}

table thead th.descending a {
background: url(../img/admin/arrow-up.gif) right .4em no-repeat;
}

/* ORDERABLE TABLES */

table.orderable tbody tr td:hover {
cursor: move;
}

table.orderable tbody tr td:first-child {
padding-left: 14px;
background-image: url(../img/admin/nav-bg-grabber.gif);
background-repeat: repeat-y;
}

table.orderable-initalized .order-cell, body>tr>td.order-cell {
display: none;
}

/* FORM DEFAULTS */

input, textarea, select, .form-row p {
margin: 2px 0;
padding: 2px 3px;
vertical-align: middle;
font-family: "Lucida Grande", Verdana, Arial, sans-serif;
fo

Re: admin home page

2011-02-27 Thread Stefano
seems that django is not able to decode the .css files

try to open /contrib/admin/media/css/base.css with
notepad and check it's content

S.

2011/2/27 Vladimir :
> Django 1.2.3,
>
> in settings.py I have not edit this values:
> MEDIA_ROOT = ''
> MEDIA_URL = ''
> ADMIN_MEDIA_PREFIX = '/media/'
>
> urls.py:
> from django.conf.urls.defaults import *
>
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>    # Example:
>    # (r'^mysite/', include('mysite.foo.urls')),
>
>    # Uncomment the admin/doc line below to enable admin
> documentation:
>    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
>    # Uncomment the next line to enable the admin:
>    (r'^admin/', include(admin.site.urls)),
> )
>
> firebug "net->all" shows errors in GET base.css and GET
> dashboard.css:
> Traceback (most recent call last):
>
>  File "C:\Python27\lib\site-packages\django\core\servers
> \basehttp.py", line 280, in run
>    self.result = application(self.environ, self.start_response)
>
>  File "C:\Python27\lib\site-packages\django\core\servers
> \basehttp.py", line 709, in __call__
>    mime_type = mimetypes.guess_type(file_path)[0]
>
>  File "C:\Python27\lib\mimetypes.py", line 294, in guess_type
>    init()
>
>  File "C:\Python27\lib\mimetypes.py", line 355, in init
>    db.read_windows_registry()
>
>  File "C:\Python27\lib\mimetypes.py", line 259, in
> read_windows_registry
>    for ctype in enum_types(mimedb):
>
>  File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
>    ctype = ctype.encode(default_encoding) # omit in 3.x!
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position
> 0: ordinal not in range(128)
>
> What does it mean?
>
> --
> 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: admin home page

2011-02-27 Thread Vladimir
Django 1.2.3,

in settings.py I have not edit this values:
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'

urls.py:
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),

# Uncomment the admin/doc line below to enable admin
documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

firebug "net->all" shows errors in GET base.css and GET
dashboard.css:
Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\django\core\servers
\basehttp.py", line 280, in run
self.result = application(self.environ, self.start_response)

  File "C:\Python27\lib\site-packages\django\core\servers
\basehttp.py", line 709, in __call__
mime_type = mimetypes.guess_type(file_path)[0]

  File "C:\Python27\lib\mimetypes.py", line 294, in guess_type
init()

  File "C:\Python27\lib\mimetypes.py", line 355, in init
db.read_windows_registry()

  File "C:\Python27\lib\mimetypes.py", line 259, in
read_windows_registry
for ctype in enum_types(mimedb):

  File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position
0: ordinal not in range(128)

What does it mean?

-- 
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: admin home page

2011-02-27 Thread s . apostolico
nothing ? is it enabled  ?
Please indicate:
- django version
- the value of MEDIA_ROOT, MEDIA_URL, ADMIN_MEDIA_PREFIX
- urls.py



2011/2/27 Vladimir :
> 1) firebug shows nothing in "net->all" panel, 2) the same result is in
> Firefox 3.6.13, Internet Explorer 8, Google Chrome
>
> --
> 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: admin home page

2011-02-27 Thread Vladimir
1) firebug shows nothing in "net->all" panel, 2) the same result is in
Firefox 3.6.13, Internet Explorer 8, Google Chrome

-- 
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: admin home page

2011-02-27 Thread s . apostolico
error #1: seems that the browser is not able to load  static resources
( css ). If you had firebug try to check the "net->All" panel for
errors

Stefano


2011/2/27 veva...@yandex.ru :
> error # 1 I can't understand at all,
> error # 2 is because of errors in urls.py  files (project level and/or
> application level), but I cannot find them exactly. Please help
>
> On 26 фев, 21:58, vladimir  wrote:
>> 1. Studying example in "The Definite Guide to Django. 2nd ed.
>> A.Holovaty, J.Kaplan-Moss" I have got impropper form of admin home
>> page (after 
>> authorisation):https://docs.google.com/leaf?id=0B5W4njXO9ND_YmY0ZGQ4NTktZWZiZC00MzU3...
>> 2. Studying example (CMS) in "Python Web Development with Django.
>> J.Forcier, P.Bissex, W.Chun" I have got an 
>> error:https://docs.google.com/leaf?id=0B5W4njXO9ND_Mzg1M2U0ZGItYzZiMS00Y2Qx...
>
> --
> 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: admin home page

2011-02-27 Thread veva...@yandex.ru
error # 1 I can't understand at all,
error # 2 is because of errors in urls.py  files (project level and/or
application level), but I cannot find them exactly. Please help

On 26 фев, 21:58, vladimir  wrote:
> 1. Studying example in "The Definite Guide to Django. 2nd ed.
> A.Holovaty, J.Kaplan-Moss" I have got impropper form of admin home
> page (after 
> authorisation):https://docs.google.com/leaf?id=0B5W4njXO9ND_YmY0ZGQ4NTktZWZiZC00MzU3...
> 2. Studying example (CMS) in "Python Web Development with Django.
> J.Forcier, P.Bissex, W.Chun" I have got an 
> error:https://docs.google.com/leaf?id=0B5W4njXO9ND_Mzg1M2U0ZGItYzZiMS00Y2Qx...

-- 
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.



mistake in admin home page

2011-02-27 Thread vladimir
Please help me, why do I get such a form of admin home page (after
autentification):

http://www.google.com/url?sa=D&q=https://docs.google.com/leaf%3Fid%3D0B5W4njXO9ND_YmY0ZGQ4NTktZWZiZC00MzU3LWI5ZWEtYTFmM2JkODY5YmEy%26hl%3Den%26authkey%3DCMCK6uQG

-- 
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.



admin home page

2011-02-26 Thread vladimir
1. Studying example in "The Definite Guide to Django. 2nd ed.
A.Holovaty, J.Kaplan-Moss" I have got impropper form of admin home
page (after authorisation):
https://docs.google.com/leaf?id=0B5W4njXO9ND_YmY0ZGQ4NTktZWZiZC00MzU3LWI5ZWEtYTFmM2JkODY5YmEy&hl=en&authkey=CMCK6uQG
2. Studying example (CMS) in "Python Web Development with Django.
J.Forcier, P.Bissex, W.Chun" I have got an error:
https://docs.google.com/leaf?id=0B5W4njXO9ND_Mzg1M2U0ZGItYzZiMS00Y2QxLWJiYjUtOGI2MjcyNTFlYWQ5&hl=en&authkey=CPqjk9UH

-- 
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: admin home page shows no permission to do anything

2008-10-30 Thread Chuck22

Never mind. I found the solution. Put admin.autodiscover() to urls.py
fix the issue.

On Oct 30, 9:40 pm, Chuck Bai2 <[EMAIL PROTECTED]> wrote:
> I got the following message when login as superuser to admin home page:
> *
> You don't have permission to edit anything.
> *
>
> Recent Actions
>
>   My Actions
>
> None available
>
> I delete all my database tables and regenerate them through syncdb, but
> it did not help. The login/logout part is working fine. I can only
> change password. No any other action I can perform. What's missing? I am
> using development trunck revision 9236.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



admin home page shows no permission to do anything

2008-10-30 Thread Chuck Bai2
I got the following message when login as superuser to admin home page:
*
You don't have permission to edit anything.
*


Recent Actions


  My Actions

None available



I delete all my database tables and regenerate them through syncdb, but 
it did not help. The login/logout part is working fine. I can only 
change password. No any other action I can perform. What's missing? I am 
using development trunck revision 9236.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---