Re: [Django] #23575: Add a code example for custom AdminSite

2014-10-30 Thread Django
#23575: Add a code example for custom AdminSite
-+-
 Reporter:  hernandocounty   |Owner:
 Type:   |  berkerpeksag
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  1.7
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  TEMPLATES_DIR| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"cb952099f4aeac263501c185441872af06927606"]:
 {{{
 #!CommitTicketReference repository=""
 revision="cb952099f4aeac263501c185441872af06927606"
 [1.7.x] Fixed #23575 -- Added a code example for custom AdminSite.

 Backport of 4a9b4a23bd from master
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

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


Re: [Django] #23575: Add a code example for custom AdminSite

2014-10-30 Thread Django
#23575: Add a code example for custom AdminSite
-+-
 Reporter:  hernandocounty   |Owner:
 Type:   |  berkerpeksag
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  1.7
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  TEMPLATES_DIR| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"4a9b4a23bdb51c9fce06facaf78c9ba0a54f1266"]:
 {{{
 #!CommitTicketReference repository=""
 revision="4a9b4a23bdb51c9fce06facaf78c9ba0a54f1266"
 Fixed #23575 -- Added a code example for custom AdminSite.
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

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


Re: [Django] #23575: Add a code example for custom AdminSite

2014-10-30 Thread Django
#23575: Add a code example for custom AdminSite
-+-
 Reporter:  hernandocounty   |Owner:
 Type:   |  berkerpeksag
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  1.7
 Severity:  Normal   |   Resolution:
 Keywords:  TEMPLATES_DIR| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by berkerpeksag):

 * owner:  nobody => berkerpeksag
 * status:  new => assigned
 * has_patch:  0 => 1


Comment:

 https://github.com/django/django/pull/3444

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

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


Re: [Django] #23575: Add a code example for custom AdminSite

2014-09-30 Thread Django
#23575: Add a code example for custom AdminSite
--+
 Reporter:  hernandocounty|Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.7
 Severity:  Normal|   Resolution:
 Keywords:  TEMPLATES_DIR | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+

Comment (by hernandocounty):

 Yes but even that method is too much. Like I said, The guy on stack
 overflow had the simplest solution of just editing urls.py

 and yes I did have the templates directory in the right place.

 I am seriously confused as to why it did not work. Everything you suggest
 I have tried.

 I think the only solution is for me to start it over in a new VM and
 document my process. Until then we wont have the same data to work with .

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

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


Re: [Django] #23575: Add a code example for custom AdminSite (was: Templates override with Admin Site TEMPLATE_DIRS better method possibly)

2014-09-30 Thread Django
#23575: Add a code example for custom AdminSite
--+
 Reporter:  hernandocounty|Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.7
 Severity:  Normal|   Resolution:
 Keywords:  TEMPLATES_DIR | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by timgraham):

 * component:  Template system => Documentation
 * type:  New feature => Cleanup/optimization
 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 I probably wouldn't include the alternative in the tutorial itself since
 `site_header` is already linked to the admin docs. The instructions are on
 that page:
   "If you’d like to set up your own administrative site with custom
 behavior, however, you’re free to subclass AdminSite and override or add
 anything you like. Then, simply create an instance of your AdminSite
 subclass (the same way you’d instantiate any other Python class), and
 register your models and ModelAdmin subclasses with it instead of using
 the default."

 but a code example would be helpful.

 I'd guess maybe you didn't setup the directory structure quite right in
 order for template overriding to work. It should be
 `mysite/templates/admin` and not `mysite/mysite/templates/admin`.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

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