Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread m1chael
You really shouldn't be learning with the dev version as Babatunde
Akinyanmi pointed out, but, i'm curious enough to respond have you
tried to install Django toolbar to figure out what template is
actually being loaded? Maybe that will give you a good idea on where
to troubleshoot

Mike


On Sun, Apr 27, 2014 at 7:16 PM, Babatunde Akinyanmi
 wrote:
> This does not answer the question but you really shouldn't be learning with
> the dev version
>
> On 27 Apr 2014 15:38, "rob25"  wrote:
>>
>> Hello,
>>
>> I was following the instructions to create a basic poll application with
>> django 1.8 (dev), but now I'm stuck to this paragraph.
>> My template doesn't override the original.
>>
>> This is the instruction added at the end of 'settings.py':
>> TEMPLATES_DIRS = [os.path.join(BASE_DIR, 'templates')]
>>
>> This is my directory structure:
>> mysite/
>> mysite/
>> __init__.py
>> settings.py
>> urls.py
>> wsgi.py
>> polls/
>> templates/
>> admin/
>> base_site.html
>> db.sqlite3
>> manage.py
>>
>> In my 'base_site.html' I replaced '{{ site_header }}' with 'MySite', but I
>> don't see any change opening the admin panel ( ).
>> Am I doing something in the wrong way?
>>
>> Thanks for your help.
>>
>> --
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d7acce7f-b457-4f6a-99f3-33017d6c9f92%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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BWjgXPA4wPZU79UaGGO719-Bfazg%2BgMAMwH9kCnyCV%2BpPh5Kw%40mail.gmail.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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAuoY6NBhK4k9o1hjg5ixofvTEnKHH3BvSS7PQYc9HrjHtJNUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread Babatunde Akinyanmi
This does not answer the question but you really shouldn't be learning with
the dev version
On 27 Apr 2014 15:38, "rob25"  wrote:

> Hello,
>
> I was following the instructions to create a basic poll application with
> django 1.8 (dev), but now I'm stuck to this 
> paragraph
> .
> My template doesn't override the original.
>
> This is the instruction added at the end of 'settings.py':
> TEMPLATES_DIRS = [os.path.join(BASE_DIR, 'templates')]
>
> This is my directory structure:
> mysite/
> mysite/
> __init__.py
> settings.py
> urls.py
> wsgi.py
> polls/
> templates/
> admin/
> base_site.html
> db.sqlite3
> manage.py
>
> In my 'base_site.html' I replaced '{{ site_header }}' with 'MySite', but
> I don't see any change opening the admin panel ( ).
> Am I doing something in the wrong way?
>
> Thanks for your help.
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d7acce7f-b457-4f6a-99f3-33017d6c9f92%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BWjgXPA4wPZU79UaGGO719-Bfazg%2BgMAMwH9kCnyCV%2BpPh5Kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Tutorial - Customize the admin look and feel

2014-04-27 Thread rob25
Hello,

I was following the instructions to create a basic poll application with 
django 1.8 (dev), but now I'm stuck to this 
paragraph
.
My template doesn't override the original.

This is the instruction added at the end of 'settings.py':
TEMPLATES_DIRS = [os.path.join(BASE_DIR, 'templates')]

This is my directory structure:
mysite/
mysite/
__init__.py
settings.py
urls.py
wsgi.py
polls/
templates/
admin/
base_site.html
db.sqlite3
manage.py

In my 'base_site.html' I replaced '{{ site_header }}' with 'MySite', but I 
don't see any change opening the admin panel ( ).
Am I doing something in the wrong way?

Thanks for your help.

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d7acce7f-b457-4f6a-99f3-33017d6c9f92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tutorial: "Customize the admin look and feel"

2011-05-11 Thread BobG
Ramiro Morales:

Yep! Wowza! That did it. Thank you very much! Moving forward again!

Pax!

BobG

On May 11, 8:24 pm, Ramiro Morales  wrote:
> On Wed, May 11, 2011 at 8:39 PM, BobG  wrote:
> > I'm stuck on something that seems pretty
> > simple: "Customize the admin look and feel." I am unable to change
> > "Django administration" at the top of the page.
>
> > Here is the questionable line of code in settings.py:
> > TEMPLATE_DIRS = ("/home/bob/DjangoProjects/mysite/mytemplates/admin/
> > base_site.html",)
>
> It should be
>
> TEMPLATE_DIRS = ("/home/bob/DjangoProjects/mysite/mytemplates",)
>
> Quoting from the relevant paragraph in that tutorial document:
>
> [...] copy the template `admin/base_site.html` from within the default
> Django admin template
> directory in the source code of Django itself into an `admin`
> subdirectory of whichever
> directory you're using in TEMPLATE_DIRS.
>
> --
> Ramiro Morales

-- 
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: Tutorial: "Customize the admin look and feel"

2011-05-11 Thread Ramiro Morales
On Wed, May 11, 2011 at 8:39 PM, BobG  wrote:
> I'm stuck on something that seems pretty
> simple: "Customize the admin look and feel." I am unable to change
> "Django administration" at the top of the page.
>
> Here is the questionable line of code in settings.py:
> TEMPLATE_DIRS = ("/home/bob/DjangoProjects/mysite/mytemplates/admin/
> base_site.html",)

It should be

TEMPLATE_DIRS = ("/home/bob/DjangoProjects/mysite/mytemplates",)

Quoting from the relevant paragraph in that tutorial document:

[...] copy the template `admin/base_site.html` from within the default
Django admin template
directory in the source code of Django itself into an `admin`
subdirectory of whichever
directory you're using in TEMPLATE_DIRS.

-- 
Ramiro Morales

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



Tutorial: "Customize the admin look and feel"

2011-05-11 Thread BobG
Django users:

It is time to ask for help. I'm a newbie working the tutorial. I'm
using Linux Mint, Python 2.6, and Django 1.3. So far, everything has
been working smoothly, but I'm stuck on something that seems pretty
simple: "Customize the admin look and feel." I am unable to change
"Django administration" at the top of the page.

Here is the questionable line of code in settings.py:
TEMPLATE_DIRS = ("/home/bob/DjangoProjects/mysite/mytemplates/admin/
base_site.html",)

I have modified base_site.html as directed.

If the code is right, what should be in the admin directory?

Pax!

BobG

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