Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Aldian Fazrihady
admin, the Django admin templates > are always being used. > > My application structure is as follows: > > ├── bug > │ ├── __init__.py > │ ├── __pycache__ > │ ├── settings.py > │ ├── urls.py > │ └── wsgi.py > ├── db.sqlite3 > ├── manage.py > └─

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Alexander Beach
PM UTC-5, Alexander Beach wrote: > > I am trying to create registration forms using Django's built in auth > forms. However, when using the Django admin, the Django admin templates > are always being used. > > My application structure is as follows: > > ├── bug > │ ├

Re: Django Admin templates not being overwritten by app templates

2019-11-10 Thread Mike Dewhirst
On 11/11/2019 7:02 am, Alexander Beach wrote: I am trying to create registration forms using Django's built in auth forms.  However, when using the Django admin, the Django admin templates are always being used. My application structure is as follows: | ├──bug │├──__init__.py │├──__pycache__

Django Admin templates not being overwritten by app templates

2019-11-10 Thread Alexander Beach
I am trying to create registration forms using Django's built in auth forms. However, when using the Django admin, the Django admin templates are always being used. My application structure is as follows: ├── bug │ ├── __init__.py │ ├── __pycache__ │ ├── settings.py │ ├── urls.py

admin templates not overriding after upgrade to 1.8

2015-04-03 Thread Ezequiel
Hi! In my_templates_dir/admin/ I override some admin templates files: base.html, base_site.html, change_form.html and index.html. But none of them are working after migrate to 1.8. I read https://docs.djangoproject.com/en/1.8/releases/1.8/ but I don't find any reference to changes related

"original" not set in admin template django/contrib/admin/templates/admin/submit_line.html after upgrade

2013-09-25 Thread Gloria W
Hi all, I recently upgraded a site from 1.4 to 1.5.4, and it seems like in the submit_line template, "original" is not set. This line fails for that reason: {% if show_delete_link %}{% trans "Delete" %}{% endif %} The template chain at this point is so nested that it's hard to figure out

django admin templates: filter hides table contents

2012-02-13 Thread Gelonida N
Hi, I wanted to know whether anybody modified the django admin templates such, that the filter div could be hidden. At the moment the containing the filters may hide the contents of the table. As I can imagine, that I'm not the only one who might have large tables and doesn't like, that part

Re: Using {% url somenamedview %} in a custom page extending admin templates

2011-08-16 Thread Tom Evans
t says: > > TemplateSyntaxError at /admin/locationbase/location/ > Caught NoReverseMatch while rendering: Reverse for '' with arguments > '()' and keyword arguments '{}' not found. > > So the question is; how can I use the url template tag in templates > extending the standard admin

Using {% url somenamedview %} in a custom page extending admin templates

2011-08-15 Thread Thomas Weholt
. So the question is; how can I use the url template tag in templates extending the standard admin templates and refer to a view defined in my app by name? What am I now seeing here? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed

Re: Can Admin Widgets be used in non-admin templates?

2010-11-12 Thread mathphreak
If you want them to access everything on certain admin pages, then you can change user permissions around to give them access to only a few pages. If what you want can be picked out of (add, change, view), then the permissions model works for that too. If you need something more fine-grained, or

Can Admin Widgets be used in non-admin templates?

2010-11-11 Thread codingJoe
Hi all, Django newbie question here. I am building some pages to let my users manage lists of data. I really like the look, feel, and behavior, of the admin pages. But I can't give my users that much control. Is there a way to reuse the admin widgets in non-admin pages? I want to give them

Problem when copy django-admin templates directory

2010-02-22 Thread konatufe
I'm trying to change django templates to my own directory templates copying the django-admin templates directory. cp -R /usr/local/lib/python2.6/dist-packages/django/contrib/admin/ templates/admin /home/konatufe/djproyect/djapp/templates/ When do that, I can't see the change_list page of admin

Re: admin templates issue

2009-12-07 Thread gentlestone
Sorry, my stupid mystake. I've copied bat templates from old Django 1.0 version. On 7. Dec., 08:50 h., gentlestone wrote: > I did not make any changes, just copied the original template to > template/admin > > I tried to copy the tepmplate to root (templates/admin) for

Re: admin templates issue

2009-12-06 Thread gentlestone
I did not make any changes, just copied the original template to template/admin I tried to copy the tepmplate to root (templates/admin) for every app and model and also I tried copy the template to some app and model - the same result Because it didn't work, I put the line: into base.html.

Re: admin templates issue

2009-12-04 Thread Sam Lai
2009/12/4 gentlestone : > I've tried to folow the tutorial and customize the admin template and > made a copy of 'change_form.html' template into the 'templates/admin' > directory in my project. I also set the > TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), >

admin templates issue

2009-12-04 Thread gentlestone
I've tried to folow the tutorial and customize the admin template and made a copy of 'change_form.html' template into the 'templates/admin' directory in my project. I also set the TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'), After this, the result is

Changing the admin templates

2009-11-16 Thread Zeynel
to change the title "Site administration" and on the change page (www.swimswith.com/admin/ wkw1/lawyer) I want to change the title "Select lawyer to change". I went through each template in the directory /webapps/django/lib/python2.5/django/contrib/admin/templates/admin but could

Re: Django admin templates not loading

2009-09-11 Thread Simon Lee
n template is not loaded and thus I > > could not get the nice Django UI with Apache. I try copying the > > default django admin templates into my project root and add the path > > to the TEMPLATE_DIRS in settings.py but still cannot get the django UI > > in the login page and

Re: Django admin templates not loading

2009-09-09 Thread Karen Tracey
is not loaded and thus I > could not get the nice Django UI with Apache. I try copying the > default django admin templates into my project root and add the path > to the TEMPLATE_DIRS in settings.py but still cannot get the django UI > in the login page and the admin dashboard. > &g

Django admin templates not loading

2009-09-09 Thread Simon Lee
Hi All, I am following the tutorial in the Django website (writing your first django app) and get it to work on the development server. However, when I port to Apache, the admin template is not loaded and thus I could not get the nice Django UI with Apache. I try copying the default django admin

Admin templates

2009-08-21 Thread When ideas fail
Hello, i'm having some problems getting the admin templates up and running. If i have my admin templates at '/home/mysite/media/admin/' what should my ADMIN_MEDIA_PREFIX be? and is that all i need to specify where the templates are? Also do i need to set up a directive along the lines

Re: Stuck in Tutorial Part 2: can't find django/contrib/admin/templates

2009-04-15 Thread David Chambers
y the template admin/base_site.html from within the default > > > Django admin template directory (django/contrib/admin/templates) into > > > an admin subdirectory ..." > > > > I cannot figure out what they mean by directory django/contrib/admin/ > > > templates

Re: Stuck in Tutorial Part 2: can't find django/contrib/admin/templates

2009-04-07 Thread ab3...@gmail.com
uck near the end of part 2. > > It says: > > > "Now copy the template admin/base_site.html from within the default > > Django admin template directory (django/contrib/admin/templates) into > > an admin subdirectory ..." > > > I cannot figu

Re: Stuck in Tutorial Part 2: can't find django/contrib/admin/templates

2009-04-07 Thread Daniel Roseman
On Apr 7, 7:42 pm, "ab3...@gmail.com" <ab3...@gmail.com> wrote: > I'm working through the tutorial and got stuck near the end of part 2. > It says: > > "Now copy the template admin/base_site.html from within the default > Django admin template direc

Re: Stuck in Tutorial Part 2: can't find django/contrib/admin/templates

2009-04-07 Thread Alex Gaynor
rectory (django/contrib/admin/templates) into > an admin subdirectory ..." > > I cannot figure out what they mean by directory django/contrib/admin/ > templates > > This looks like a relative path, but relative to what? When I created > my project there were no subdirectories calle

Stuck in Tutorial Part 2: can't find django/contrib/admin/templates

2009-04-07 Thread ab3...@gmail.com
I'm working through the tutorial and got stuck near the end of part 2. It says: "Now copy the template admin/base_site.html from within the default Django admin template directory (django/contrib/admin/templates) into an admin subdirectory ..." I cannot figure out what they mean by

Re: Untouched admin templates throwing TemplateSyntaxError

2009-04-06 Thread Karen Tracey
On Mon, Apr 6, 2009 at 5:22 PM, Jacolyte wrote: > > Right after logging into the admin interface, I receive the following > traceback: > > http://dpaste.com/25126/ > So, it's running into trouble on: {% get_admin_log 10 as admin_log for_user user %} and the extent of

Untouched admin templates throwing TemplateSyntaxError

2009-04-06 Thread Jacolyte
settings.MEDIA_URL. This is also working beautifully Other than that, there isn't much that has changed. I haven't laid a hand on the built-in admin templates. Any help, or suggestions on how I could further troubleshoot would be greatly appreciated. Thanks

Re: admin templates problem

2009-03-01 Thread alexarsh
I can't see the blue admin template. I can't see it only on the page I overrided - (contrib/admin/templates/admin/index.html) Regards, Alex A. On Mar 2, 7:39 am, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sun, 2009-03-01 at 21:06 -0800, knight wrote: > > Hi, > &

Re: admin templates problem

2009-03-01 Thread Alex Gaynor
> I use apache, I have a link to admin media folder and I have a > > following problem: > > > > In my admin pages I see the admin templates on all the pages except > > the one I overrided (index.html). > > What do you mean when you say you don't see the admin t

Re: admin templates problem

2009-03-01 Thread Malcolm Tredinnick
On Sun, 2009-03-01 at 21:06 -0800, knight wrote: > Hi, > > I have a django application where I override the main admin page > (index.html in template/admin) > I use apache, I have a link to admin media folder and I have a > following problem: > > In my admin pages I

admin templates problem

2009-03-01 Thread knight
Hi, I have a django application where I override the main admin page (index.html in template/admin) I use apache, I have a link to admin media folder and I have a following problem: In my admin pages I see the admin templates on all the pages except the one I overrided (index.html). Is anyone

Re: Overriding admin templates

2008-11-27 Thread Lars Stavholm
>>>> >>>> i.e. the extrahead block. It contains: >>>> >>>> {% extends "admin/change_list.html" %} >>>> >>>> {% block extrahead %} >>>> >>>> >>>> >>>> {% en

Re: Overriding admin templates

2008-11-26 Thread bfrederi
gt; >>     override, > >>     >>>> i.e. the extrahead block. It contains: > > >>     >>>> {% extends "admin/change_list.html" %} > >>     >>>> {% block extrahead %} > >>     >>>>   > >&

change in admin template django/contrib/admin/templates/widget

2008-11-21 Thread [EMAIL PROTECTED]
ver during saving the model, and updated the value in db, it would be nice to have chance to check if the image is loaded on the new server via admin for this model. So i was thinking about changing django/contrib/admin/templates/widget/file.html just to change some values. But i did not succeed.

Re: Overriding admin templates

2008-11-03 Thread Lars Stavholm
>> i.e. the extrahead block. It contains: >> >>>> >> >>>> {% extends "admin/change_list.html" %} >> >>>> {% block extrahead %} >> >>>> >> >>>> {% endblock %} >> &g

Re: Overriding admin templates

2008-11-03 Thread Lars Stavholm
uot;admin/change_list.html" %} > >>>> {% block extrahead %} > >>>> > >>>> {% endblock %} > >>>> > >>>> However, this does not work for me, so I'm expecting it to be some > >>>> mistake on

Re: Overriding admin templates

2008-11-01 Thread Karen Tracey
;>>> > >>>> {% endblock %} > >>>> > >>>> However, this does not work for me, so I'm expecting it to be some > >>>> mistake on my part, I just can't figure out what the mistake is. > >>>> > >>>&g

Re: Overriding admin templates

2008-11-01 Thread Lars Stavholm
t;>> {% extends "admin/change_list.html" %} >>>> {% block extrahead %} >>>> >>>> {% endblock %} >>>> >>>> However, this does not work for me, so I'm expecting it to be some >>>> mistake on my part, I just can't figu

Re: Overriding admin templates

2008-11-01 Thread Low Kian Seong
> Now, if I put the file in ./templates/admin/build/change_list.html >>> it still wont work. On the other hand, this would be overriding all >>> "build" application change lists, which is not what I was looking for. >>> >>> Only way I've found is to copy the

Re: Overriding admin templates

2008-11-01 Thread Lars Stavholm
what the mistake is. >> >> Now, if I put the file in ./templates/admin/build/change_list.html >> it still wont work. On the other hand, this would be overriding all >> "build" application change lists, which is not what I was looking for. >> >> Only way I

Re: Overriding admin templates

2008-11-01 Thread Low Kian Seong
is would be overriding all > "build" application change lists, which is not what I was looking for. > > Only way I've found is to copy the change_list.html from the django > installation in contrib/admin/templates/admin, and then modify it to > my needs, using "if&q

Overriding admin templates

2008-11-01 Thread Lars Stavholm
t what I was looking for. Only way I've found is to copy the change_list.html from the django installation in contrib/admin/templates/admin, and then modify it to my needs, using "if" statements to figure out which application model class is being rendered, and the put the change_list.html in

Re: running django from apache2 or from runserver behaves different when using custom admin templates and css

2008-10-29 Thread anonymous
in django directory source code. Thanks. On Oct 29, 11:55 am, anonymous <[EMAIL PROTECTED]> wrote: > The custom admin templates I've put into my application templates/ > admin folder are ignored when I'm using apache2 (http:// > myapp.mydomain.org) but are running when I'm using

running django from apache2 or from runserver behaves different when using custom admin templates and css

2008-10-29 Thread anonymous
The custom admin templates I've put into my application templates/ admin folder are ignored when I'm using apache2 (http:// myapp.mydomain.org) but are running when I'm using runserver (http:// localhost:8000). On the contrary, custom admin css and js are running when using apache2 but aren't

contributing admin templates

2008-06-23 Thread José Moreira
Hi, as soon as i understood django admin funcionalities, i started searching the web for pre-made templates and couldn't find anything. It doesn't seem a bad idea, what do you think? -- José Moreira Vila Nova de Gaia Portugal --~--~-~--~~~---~--~~ You

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
Thanks Karen for your feedback again. I found that very useful. The NewForms-Admin branch is really something I absolutely use now and would probably be keen myself to help get the urgent issues ironed out, if possible of course. regards, -al On Apr 30, 11:02 pm, "Karen Tracey" <[EMAIL

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 4:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks Karen. Thats exactly what I was looking for. The patch attached > to the ticket is perfect. > > Quick question: how does the process of patches work in a case like > this? Does a patch for a small issue as such

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
racey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > The non_field_errors don't get displayed on newforms-admin templates > > such as chnage_form.html > > > I did a debug on adminf

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The non_field_errors don't get displayed on newforms-admin templates > such as chnage_form.html > > I did a debug on adminform.form.errors.items in chnage_form.html and > my error is t

The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
The non_field_errors don't get displayed on newforms-admin templates such as chnage_form.html I did a debug on adminform.form.errors.items in chnage_form.html and my error is there under __all__ field. Is there a reason the __all__ field messages don't get displayed on top of form templates

Best practice for storing custom admin templates?

2008-01-25 Thread Julien
Hi all! I'm making an app which has some custom views to extend the admin back end. So I've also made some templates which are stored in "admin/ myapp/" in my project template folder. I've made that app generic, so now I'd like to take everything out of my project, including the admin

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Jeremy Dunck
On Dec 27, 2007 2:15 AM, Webchemist <[EMAIL PROTECTED]> wrote: > > Jeremy, thanks to reply! > > > What you really want here is to have > > 'django.template.loaders.app_directories.load_template_source' in your > > TEMPLATE_LOADERS. That's really what you want, no

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Webchemist
On Dec 27, 11:34 am, Julien <[EMAIL PROTECTED]> wrote: > In urls.py, have you set it up properly: > > from django.conf.urls.defaults import * > from django.contrib import admin > > urlpatterns = patterns('', > ('^admin/(.*)', admin.site.root), > ) Naturally, yes! Otherwise admin

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Julien
at you really want here is to have > > 'django.template.loaders.app_directories.load_template_source' in your > > TEMPLATE_LOADERS. That's really what you want, not add add the admin > > templates to TEMPLATE_DIRS. > > This template loader was enabled of cause

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Webchemist
Jeremy, thanks to reply! > What you really want here is to have > 'django.template.loaders.app_directories.load_template_source' in your > TEMPLATE_LOADERS. That's really what you want, not add add the admin > templates to TEMPLATE_DIRS. This template loader was enabled o

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-26 Thread Jeremy Dunck
t 127.0.0.1:8000/admin I got an error What rev were you at before switching to newforms? > TemplateDoesNotExist at /admin/ > admin/login.html > > Ok, I add the path to the settings.TEMPLATE_DIRS: > "C:/Python25/Lib/site-packages/django/contrib/admin/templates/" ...See, t

Newform-admin: problem with loading admin templates and templatetags

2007-12-26 Thread Webchemist
the path to the settings.TEMPLATE_DIRS: "C:/Python25/Lib/site-packages/django/contrib/admin/templates/" After that, error message changed: TemplateSyntaxError at /admin/ 'adminmedia' is not a valid tag library: Could not load template library from django.templatetags.adminmedia, No mo

Re: Overriding Admin templates on a per-app and per-model basis

2007-09-11 Thread AndyB
I just tried this against trunk and got the same results. >From a quick perusal of the admin code I can't see any special code for template loading. Where is this functionality supposed to reside? --~--~-~--~~~---~--~~ You received this message because you are

Overriding Admin templates on a per-app and per-model basis

2007-09-10 Thread AndyB
I was rather pleased to read that the above was possible according to the Django book: http://www.djangobook.com/en/beta/chapter18/ (scroll down to the section called 'Customizing admin templates') I've already been overriding the admin templates globally by putting custom templates in a folder

Re: Object variable name in admin templates?

2007-07-31 Thread James Bennett
On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote: > Yes! It worked! Thanks so much! For future reference, you can see the variables passed into the intial context for a change page here: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/views/main.py#L397 Note that other

Re: Object variable name in admin templates?

2007-07-31 Thread biancaneve
Yes! It worked! Thanks so much! James Bennett wrote: > On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote: > > I can do it if I write a whole new view and define my own variables, > > but then I lose a lot of the Admin functionality. I'd prefer to just > > change the title line of the admin

Re: Object variable name in admin templates?

2007-07-31 Thread James Bennett
On 7/31/07, biancaneve <[EMAIL PROTECTED]> wrote: > I can do it if I write a whole new view and define my own variables, > but then I lose a lot of the Admin functionality. I'd prefer to just > change the title line of the admin template. Try 'original'. -- "Bureaucrat Conrad, you are

Object variable name in admin templates?

2007-07-31 Thread biancaneve
Can anyone tell me what variable the admin template (change_form.html) uses to describe the object being edited? I'm trying to alter the change form for a particular model (Employee) to display a field from that model (Surname) as a title, rather than "Change Employee". I can do it if I write a

NOOB - How to extend Admin templates

2007-05-08 Thread Bruno Tikami
Hello guys! I'm quite new to Django and I'd like some help with it's templates. How can I use the admin templates to show my own data? I mean, If I have a FK field, the admin view won't show the "select_related" fields from the foreign class. How can I create my own view and displays

_certain_ replacement admin templates not being rendered

2007-02-12 Thread [EMAIL PROTECTED]
hey all i was wondering if anyone has encountered this issue. i am trying to create some replacement admin templates, so that the list views show small thumbnail images for models that have images. i am using nesh.thumbnail, which provides templatetags and filters for generating thumbnails

Re: Need help with extending admin templates

2006-12-20 Thread Nicolas E. Lara G.
I'm having the exact same problem. Don't know what might be going wrong. If anyone have any idea On Dec 2, 9:52 am, "Jim Fritchman" <[EMAIL PROTECTED]> wrote: I made the suggested change by adding the html extension to the extends but no luck. Does anyone else possible see what the problem

Re: Need help with extending admin templates

2006-12-02 Thread Jim Fritchman
I made the suggested change by adding the html extension to the extends but no luck. Does anyone else possible see what the problem is? Is there a way to step into this code as it executes? Thanks, Jim --~--~-~--~~~---~--~~ You received this message because

Re: Need help with extending admin templates

2006-12-01 Thread Xian
did it in one of my projects. I am new to Django, but IIRC the both overridable admin templates, and the necessity to specify the full filename in extends are both new post Magic Removal. Ver. 0.95 or trunk. Hope that helps --~--~-~--~~~---~--~~ You received this messa

Need help with extending admin templates

2006-12-01 Thread Jim Fritchman
I have read the following page http://code.djangoproject.com/wiki/NewAdminChanges and it states ... Admin converted to separate templates ¶ The admin is now rendered using separate templates. These can be overloaded, meaning the admin is a bit more easily customizable. An example is change

Admin templates: Fields of the Related object

2006-10-05 Thread Aidas Bendoraitis
Hello, advanced Djangoers! I would like to make sure, whether it is possible to override [URL #1] an admin template and to write such a template code that would show the fields of the related object in the editing form of the currently edited object (not in edit_inline mode). Let's say, if I

Re: customizing admin templates

2006-08-01 Thread Wilson Miner
orry to keep bothering the list about this, but I just can't get > custom admin templates to work properly. > > Here's what I have right now: > 2 apps, one called Blog and one called Events2 > > I would like it if the branding at the top of the admin page changed > depending o

Re: customizing admin templates

2006-08-01 Thread Joe
I'm not sure Django supports this 'out of the box'. You could try adding a template tag to the base_site.html folder. I'm pretty sure Django passes in the model name into the context of the template. You should be able to find this in the Django source (I'm not sure where off the top of my

customizing admin templates

2006-08-01 Thread Tamara D. Snyder
I'm sorry to keep bothering the list about this, but I just can't get custom admin templates to work properly. Here's what I have right now: 2 apps, one called Blog and one called Events2 I would like it if the branding at the top of the admin page changed depending on the app that I am

admin templates

2006-06-26 Thread [EMAIL PROTECTED]
Hello all, I copied the templates of the admin app base.html and base_site.html to create my own views. The admin app and my app worked very well, but if I broose the template I copied, the admin app does not work anymore, giving a GET 200 return code with no content. To recover a fonctionnal

Re: generic views + new admin templates

2005-11-27 Thread Robert Wittams
stava wrote: > I'm trying to use generic views together with the newly separated admin > templates, but it's failing miserably. > > I specify the generic view I want to use in url.py: > countries = { > 'app_label': 'ttime', > 'module_name': 'countries', > }

generic views + new admin templates

2005-11-27 Thread stava
I'm trying to use generic views together with the newly separated admin templates, but it's failing miserably. I specify the generic view I want to use in url.py: countries = { 'app_label': 'ttime', 'module_name': 'countries', } urlpatterns = patterns('', (r'^countries