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
> └─
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
> │ ├
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__
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
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
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
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
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
.
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
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
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
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
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
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.
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__),
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
>
&
> 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
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
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
>>>> >>>> i.e. the extrahead block. It contains:
>>>> >>>> {% extends "admin/change_list.html" %}
>>>> >>>> {% block extrahead %}
>>>> >>>>
>>>> >>>> {% en
gt; >> override,
> >> >>>> i.e. the extrahead block. It contains:
>
> >> >>>> {% extends "admin/change_list.html" %}
> >> >>>> {% block extrahead %}
> >> >>>>
> >&
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.
>> i.e. the extrahead block. It contains:
>> >>>>
>> >>>> {% extends "admin/change_list.html" %}
>> >>>> {% block extrahead %}
>> >>>>
>> >>>> {% endblock %}
>> &g
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
;>>>
> >>>> {% 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
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
> 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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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',
> }
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
77 matches
Mail list logo