Re: Best way to organize custom admin views?

2019-11-25 Thread Wim Olivier
Hi, I'd recommend using seperate apps for custom admin areas (1 app for each), and implementing a middleware that allows access to the relevant admin based on roles/permissions, etc. It's simple, kept seperate from other code/apps nicely, and easy to limit access to different groups

Best way to organize custom admin views?

2019-11-22 Thread Jay
What's the best way (or the standard way, or your preferred way) to organize custom admin views? Assuming we want to leave the built-in Django Admin in place and create entirely new admin views, would the optimal organization be: *A new app?* blogapp/ views.py viewsets.py mode

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
pages and 3 login pages , each signup page will >>> create a different user and each login page will login each user type to >>> his dashboard type .. >>> I advice you to make a 3 seperate apps to organize the code .. >>> >>> On Sat, 9 Nov 2019, 5:34 am

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Motaz Hejaze
es and 3 login pages , each signup page will >> create a different user and each login page will login each user type to >> his dashboard type .. >> I advice you to make a 3 seperate apps to organize the code .. >> >> On Sat, 9 Nov 2019, 5:34 am Wim Olivier, wrote: >&

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
ges , each signup page will create > a different user and each login page will login each user type to his > dashboard type .. > I advice you to make a 3 seperate apps to organize the code .. > > On Sat, 9 Nov 2019, 5:34 am Wim Olivier, > > wrote: > >> Hi everyone, >>

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-09 Thread Motaz Hejaze
login page will login each user type to his dashboard type .. I advice you to make a 3 seperate apps to organize the code .. On Sat, 9 Nov 2019, 5:34 am Wim Olivier, wrote: > Hi everyone, > > I would like to disable the Django Admin, and create my own custom admin > dashboards. >

Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-08 Thread Wim Olivier
Hi everyone, I would like to disable the Django Admin, and create my own custom admin dashboards. There must be three different types of admin dashboards: - one for Customers (normal users) where they can do CRUD on their profile and services (URI: /customer/dashboard) - one for Partners where

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
e: >>>> >>>> i'm planning to build a full ecommerce business to business website. >>>> there are several user types. >>>> *premium users need to create products and edit them. they need to >>>> communicate to each other. see statistics an

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
to build a full ecommerce business to business website. >>> there are several user types. >>> *premium users need to create products and edit them. they need to >>> communicate to each other. see statistics and access some premium content.* >>> do you suggest to u

Re: do i need a custom admin app or should i just use django admin?

2019-06-18 Thread Andréas Kühne
t;> there are several user types. >>> *premium users need to create products and edit them. they need to >>> communicate to each other. see statistics and access some premium content.* >>> do you suggest to user the default django admin? or i'm better off >>> creating

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread James Farris
ypes. >>> *premium users need to create products and edit them. they need to >>> communicate to each other. see statistics and access some premium content.* >>> do you suggest to user the default django admin? or i'm better off >>> creating a custom admi

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread Rajat Chopra
ness to business website. >> there are several user types. >> *premium users need to create products and edit them. they need to >> communicate to each other. see statistics and access some premium content.* >> do you suggest to user the default django admin? or i'm bet

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread James Farris
ce business to business website. there > are several user types. > *premium users need to create products and edit them. they need to > communicate to each other. see statistics and access some premium content.* > do you suggest to user the default django admin? or i'm better of

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread Andréas Kühne
other. see statistics and access some premium content.* > do you suggest to user the default django admin? or i'm better off > creating a custom admin app ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

do i need a custom admin app or should i just use django admin?

2019-06-17 Thread Arya
n? or i'm better off creating a custom admin app ? -- 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. T

how to update Form value from custom admin template to admin.py

2018-02-08 Thread arvind yadav
admin.py file ### i am no sure how to do i am sending object (osm_data) on html page order_final.html every thing working in render but i want update some field from order_final.html page *change_form_template = 'admin/appname/userorders/order_final.html'* def get_osm_info(self):

Custom admin form not triggering admin Action

2016-11-24 Thread Marqin Marqin
Hello, I've created custom intermediate form for my Admin panel and the problem is, when I post that form my action is not triggered (but it is triggered when I select it to show form). Do you have any idea what can be wrong? This use case is not well documented, and only SO question I've found i

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
sorio > wrote: > >> >> By the way, there are *__init__.py* files in >> both my_project/my_app/management/ and my_project/my_app/management/command >> folders ... >> >> >> On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote: >>&

Re: Custom Admin Command

2016-10-16 Thread Dylan Reinhold
mand folders ... > > > On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote: >> >> I am trying to implement a custom admin command. The class is located at >> mt_project/my_app/management/command/my_command >> and looks like this: >> >> &

Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
By the way, there are *__init__.py* files in both my_project/my_app/management/ and my_project/my_app/management/command folders ... On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote: > > I am trying to implement a custom admin command. The class is loca

Custom Admin Command

2016-10-16 Thread Mario R. Osorio
I am trying to implement a custom admin command. The class is located at mt_project/my_app/management/command/my_command and looks like this: class Command(BaseCommand): help = 'This is my command' def handle(self, *args, **options): ... My app is included in Installed_app

Re: Howto to create custom admin commands with subcommands

2016-09-21 Thread Derek
Sorry, I have not done this, but if you look at this section: https://docs.djangoproject.com/en/1.10/howto/custom-management-commands/#accepting-optional-arguments then at the end there is a link from the word "argparse" to this site: https://docs.python.org/3/library/argparse.html#module-argparse

Howto to create custom admin commands with subcommands

2016-09-19 Thread anton
Hi, is there an possibility to use https://docs.python.org/3/library/argparse.html#sub-commands in the custom admin commands so I can have subcommands like manage.py mycommand subcommand1 choice1-for-subcommand1 manage.py mycommand subcommand1 choice2-for-subcommand1 manage.py mycommand

[Django 1.8] A Custom Admin Site for non staff users

2015-04-09 Thread Rayco Abad Martín
from django.contrib.admin.sites import AdminSite from django.contrib.auth.forms import AuthenticationForm

Re: Unit-testing Custom Admin Action, requires request and querysets parameters.

2014-11-25 Thread Azam Alias
Hi Collin, I apologise for the late update. Didnt get any notifications from your reply. I have solved this issue as per your suggestion. Pasting the solution for others' reference. Thanks ! from django.test import TestCase from django.contrib.admin.sites import AdminSite from batch_apps.mod

Re: Unit-testing Custom Admin Action, requires request and querysets parameters.

2014-11-05 Thread Collin Anderson
Hello, Would it work to import AppAdmin, instantiate it, and then call the methods in a unit test? Collin -- 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 dj

Unit-testing Custom Admin Action, requires request and querysets parameters.

2014-11-02 Thread Azam Alias
Hi, I would like to unit-test the activate_apps( ) and deactivate_apps( ) functions below, as low-level as possible. How could I do this without going through Selenium (FT) route? In my admin.py: from django.contrib import admin from my_app_listing.models import App class AppAdmin(admin.Mode

How to create a custom admin panel for many models

2014-07-04 Thread 9devmail
I want to create a custom ModelAdmin, but for a mix of models, not just one. I have two example models: class Article(models.Model): author = models.GenericIPAddressField() # ... class Comment(models.Model): author = models.GenericIPAddressField() # ... Now I want to be able t

Re: Custom Admin Form for listing all url

2013-11-03 Thread Vanni Brutto
solved! Here the code: class NameURLForm(forms.ModelForm): class Meta: model = NameURL def __init__(self, *args, **kwargs): super(NameURLForm, self).__init__(*args, **kwargs) listURL = [] for name, L in get_resolver(None).reverse_dict.items(): i

Custom Admin Form for listing all url

2013-11-02 Thread Vanni Brutto
hi, i want to make a custom form in admin.py for modify the form of a model that should show a combobox with all urlpattern name defined in urls.py. I tryed with this code (i'm a python/django newbie, sorry ;)): def fasullo(): pass class NameURLForm(forms.ModelForm): class Meta:

Re: Custom Admin Panel

2012-10-30 Thread Some Developer
On 30/10/2012 12:06, Bill Freeman wrote: On Mon, Oct 29, 2012 at 12:13 PM, Some Developer wrote: Hi, I'm in the process of writing a Django site and one of the requirements is that it have a custom admin panel and a custom control panel but I am having some problems coming up with the

Re: Custom Admin Panel

2012-10-30 Thread Bill Freeman
On Mon, Oct 29, 2012 at 12:13 PM, Some Developer wrote: > Hi, > > I'm in the process of writing a Django site and one of the requirements is > that it have a custom admin panel and a custom control panel but I am having > some problems coming up with the best way to org

Custom Admin Panel

2012-10-29 Thread Some Developer
Hi, I'm in the process of writing a Django site and one of the requirements is that it have a custom admin panel and a custom control panel but I am having some problems coming up with the best way to organise my application. My initial idea was to have the admin (and control) pane

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2012-08-17 Thread andrea
Registering the model worked for me. Thanks! On Tuesday, February 16, 2010 11:18:09 PM UTC+11, Matt Schinckel wrote: > > On Feb 14, 3:49 pm, john wrote: > > > > Yes, the Items model data can be accessed through another part of the > > Admin interface, but I think the purpose of the Green Plus Sig

read only datatime field with a custom admin

2012-08-15 Thread brian downing
How do I create a read only datatime field with a custom admin? Here is the psudo code from what I've done: - class myAdminForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(myAdminForm, self).__init__(*args, **k

GET parameters and custom admin query filters

2012-05-02 Thread Daniel Sokolowski
As per 'https://docs.djangoproject.com/en/1.3/releases/1.2.4/ #restricted-filters-in-admin-interface' to be able to create GET parameters on the fly one has to add it to the `ModelAdmin.list_filter` setting. That's what I have been doing however on my latest project I am using

empty media_root inside custom admin template

2012-03-17 Thread Reikje
Hi, I am trying to add a Rich Text Fields to my Django admin app following this blog post: http://www.beshrkayali.com/blog/2009/02/tinymce-django-admin/ However, I in my custom admin template "base_site.html" the {{media_root}} placeholder is always replaced with a blank. My settings

Re: Custom admin changelist queryset

2011-11-18 Thread Ivo Brodien
Both Bar and Foo obviously have a featured table and are somehow very common since you want them to be displayed in on list - which also makes only sense if they share the same attributes cause otherwise you would have empty columns depending on the model of the row your are showing. Maybe Bar

Re: Custom admin changelist queryset

2011-11-18 Thread bax...@gretschpages.com
> Can you tell us what you goal here is? The goal is to get my combined list of featured items to a changelist page. From there, I'll have additional work to do, but step one is getting it to the page at all. Another thought is to just chain the querysets together and send 'em to my own template.

Re: Custom admin changelist queryset

2011-11-17 Thread Ivo Brodien
Well the admin.ModelAdmin expects to be working, for one model only (knowing about its table structure). Can you tell us what you goal here is? Probably you want to show more information than there is in one model? You can create methods in your model and use them to show more information like

Custom admin changelist queryset

2011-11-17 Thread bax...@gretschpages.com
I'm trying to combine a subset of two models and pass them to an admin change list: class FeaturedItemsAdmin(admin.ModelAdmin): def queryset(self, request): qs1 = Foo.objects.filter(featured=True) qs2 = Bar.objects.filter(featured=True) . do stuff to combine ... re

Re: NoReverseMatch for custom admin URLs [SOLVED]

2011-07-30 Thread Martin Tiršel
Sorry, my bad :) I forgot that first argument for patterns() is a string with view name prefix. That was all. Martin On Sat, 30 Jul 2011 11:52:21 +0200, Martin Tiršel wrote: Hi all, the code: class CompanyProfileAdmin(admin.ModelAdmin): list_display = ( '__unicode__',

NoReverseMatch for custom admin URLs

2011-07-30 Thread Martin Tiršel
Hi all, the code: class CompanyProfileAdmin(admin.ModelAdmin): list_display = ( '__unicode__', 'city', 'premium_type', 'followers', 'manage_premium_account' ) ... def get_urls(self): urls = super(CompanyProfileAdmin, self).get_urls(

Custom Admin Login Page

2011-06-27 Thread Thomas Guettler
Hi, settings.LOGIN_URL get's ignored by the admin app. I don't want two login forms, but only one. But I couldn't find a way to redirect to my custom login form from the admin pages. The only solution I found was a HTML redirect like this http://redirect-url";> Anyone else who has this probl

Unable to log into custom Admin Site

2011-05-29 Thread dfoerster
Hi, in order to create a second admin site for a project, I created a new app, instantiated AdminSite in the app's admin.py and hooked it into the project's url configuration. The login page for the new admin site is displayed when accessing the configured url, however I'm unable to login. (Invali

Need help writing a custom admin widget (pasting image from clipboard rather than uploading a file)

2011-05-19 Thread Eran
I have a Model with an ImageField, and the use case I am interested in is that instead of the user uploading an image file from their computer, they will "paste" the contents of their clipboard (e.g. they took a screenshot using PrintScreen) into this field. Using the helpful information at htt

Re: Custom admin interface

2011-03-24 Thread Jacob Kaplan-Moss
Hi Tsolmon -- You can find documentation on Django's admin interface at http://docs.djangoproject.com/en/1.3/ref/contrib/admin/. It should tell you enough to get started. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Custom admin action problem

2011-03-24 Thread Jônatas Vieira
Nobody? On 23 mar, 19:20, Jônatas Vieira wrote: > Hi there. > > I'm having a weird issue with a custom admin action. It works pretty > fine locally, but on the live server what happens is: > > * it renders to the template - OK > * after submit, the function is

Re: Custom admin interface

2011-03-23 Thread Kenneth Gonsalves
On Thu, 2011-03-24 at 14:06 +0800, Tsolmon Narantsogt wrote: > I'm new in Django. > How to custom admin interface. ? http://duckduckgo.com/?q=site%3Adocs.djangoproject.com+customize+admin -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.or

Custom admin interface

2011-03-23 Thread Tsolmon Narantsogt
Hello list I'm new in Django. How to custom admin interface. ? Thank's Tsolmon -- 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

Custom admin action problem

2011-03-23 Thread Jônatas Vieira
Hi there. I'm having a weird issue with a custom admin action. It works pretty fine locally, but on the live server what happens is: * it renders to the template - OK * after submit, the function is executed (the changes and everything are applied using the post data, collected from the tem

Re: custom admin

2011-01-12 Thread Leandro Ardissone
There's a nice app called django-admin-tools, it let you create/edit a menu and a custom dashboard with draggable blocks of content. Templating/theming isn't really mature yet, but if you know how to theme django's admin, you will figure

Re: custom admin

2011-01-12 Thread Shawn Milochik
If you're comfortable creating views and modifying templates in Django already, then you can do whatever you like. The admin uses views and templates that you can freely copy and modify, then have your application use your own instead of the defaults. Shawn -- You received this message becaus

custom admin

2011-01-12 Thread Tony
Is there any way to make a custom admin for a site but use parts of the existing admin. It has a lot of good features but there are certaint hings I dont want revealed and yes i know I can limit access, but what if I want to limit lets say, a teacher to only his/her student's information,

Re: Custom admin input app

2010-07-26 Thread Nick
Completely missed that section. You are always very helpful, Daniel. Thank you. On Jul 26, 10:08 am, Daniel Roseman wrote: > On Jul 26, 3:56 pm, Nick wrote: > > > Has anyone heard of, see, or used an app that would transform the > > table view of the admin into a data entry point, basically jump

Re: Custom admin input app

2010-07-26 Thread Daniel Roseman
On Jul 26, 3:56 pm, Nick wrote: > Has anyone heard of, see, or used an app that would transform the > table view of the admin into a data entry point, basically jumping the > need to click through to individual entries in order to edit them? This is built-in, to an extent - see http://docs.django

Custom admin input app

2010-07-26 Thread Nick
Has anyone heard of, see, or used an app that would transform the table view of the admin into a data entry point, basically jumping the need to click through to individual entries in order to edit them? -- You received this message because you are subscribed to the Google Groups "Django users"

Here is a tutorial for adding a plus sign for custom dropdown box in custom admin pages

2010-04-19 Thread Asim Yuksel
If you registered your models with adminCreate a widgets.py and put the following code there from django.template.loader import render_to_string from ivl.views import * def SelectWidgetWithPopUp(url): class SelectWithPopUp(forms.Select): def render(self, name, *args, **kwargs):

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-04-12 Thread Timothy.Broder
Thanks this helped me with a similar problem On Feb 16, 8:18 am, Matt Schinckel wrote: > On Feb 14, 3:49 pm, john wrote: > > > > > Yes, the Items model data can be accessed through another part of the > > Admin interface, but I think the purpose of the Green Plus Sign was to > > alleviate this e

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-03-30 Thread Dennis Schmidt
Hi, I have got a similar or maybe the same problem. I have customized my admin form for a specific model. My model has got Inline elements that are shown on the admin form, but the template for this is completely customized. This is how I print the (product) model: {{ fieldset.form.product.erro

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-02-16 Thread Matt Schinckel
On Feb 14, 3:49 pm, john wrote: > > Yes, the Items model data can be accessed through another part of the > Admin interface, but I think the purpose of the Green Plus Sign was to > alleviate this extra step. Try registering the model of that type with the admin. The green plus will only appear

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-02-13 Thread john
Product Name. Lots of Products, too hard to find a particular one in the list. Thus I wrote up a Custom Admin Form to sort these Products in the ManyToMany field. This works great, the Products are sorted in ABC order. But, with this Custom Admin Form, the ability to Add another Product via the

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-02-13 Thread Matt Schinckel
On Feb 14, 9:30 am, john wrote: > Hi, I just had fun creating a new Custom Admin Form to sort a > ManyToMany field by ABC order (why isnt it in ABC order by default on > the "def __unicode__" item?)  It works great, but now the Green Plus > Sign to add more items to the list

Custom Admin Form for ManyToMany, missing Green Plus Sign?

2010-02-13 Thread john
Hi, I just had fun creating a new Custom Admin Form to sort a ManyToMany field by ABC order (why isnt it in ABC order by default on the "def __unicode__" item?) It works great, but now the Green Plus Sign to add more items to the list is missing, where did it go? I guess its not

Custom admin widget for custom type

2010-01-31 Thread Christophe Pettus
Hi, I've implemented a custom Python class and Django field class for Jeff Davis' custom PERIOD type for PostgreSQL: http://temporal.projects.postgresql.org/ Now, I'd like to show it in the admin as two datetimes (with pickers) rather than as the text representation of it. What's

Re: custom admin actions

2009-07-30 Thread selcukcihan
Thanks Vasil, it works as suggested On Jul 31, 2:52 am, Vasil Vangelovski wrote: > You can get the model class for the modeladmin, it's the model property. So > modeladmin.model will give you the model class. You can just do a > check of equality > modeladmin.model == OurModel. > > On Thu, Jul 3

Re: custom admin actions

2009-07-30 Thread Vasil Vangelovski
You can get the model class for the modeladmin, it's the model property. So modeladmin.model will give you the model class. You can just do a check of equality modeladmin.model == OurModel. On Thu, Jul 30, 2009 at 1:22 PM, selcukcihan wrote: > > Hi, i have django 1.1 > > I have a user profile mod

custom admin actions

2009-07-30 Thread selcukcihan
Hi, i have django 1.1 I have a user profile model, call it OurUser. I have defined a custom action, "send mail". This action is available in OurUser and django auth's User models. It is handled via a global function with this signature def send_mail_to_users(modeladmin, request, queryset): s

Re: how to custom Admin list_filter queryset? thanks ~

2009-06-11 Thread mydjango
thanks ~ On 6月11日, 下午5时40分, mydjango wrote: > I want many sites to use one admin,they only use his datas,but can't > view other user's datas. > > I use admin.ModelAdmin def queryset to custom changelistview, but when > i use list_filter with ForeignKey field , the filter will show all > user's

how to custom Admin list_filter queryset? thanks ~

2009-06-11 Thread mydjango
I want many sites to use one admin,they only use his datas,but can't view other user's datas. I use admin.ModelAdmin def queryset to custom changelistview, but when i use list_filter with ForeignKey field , the filter will show all user's date. how can custom list_filter queryset list ? thanks

Re: how to custom Admin list_filter queryset?

2009-06-11 Thread Daniel Roseman
On Jun 11, 10:06 am, mydjango wrote: > how to custom Admin list_filter queryset? http://catb.org/esr/faqs/smart-questions.html -- DR. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

how to custom Admin list_filter queryset?

2009-06-11 Thread mydjango
how to custom Admin list_filter queryset? --~--~-~--~~~---~--~~ 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 g

Re: Subclass AdminSite vs. custom admin views

2009-04-22 Thread Daniel Roseman
On Apr 22, 7:30 pm, MrJogo wrote: > Hi, > > I'm creating a website for an organization that is going to need a > complicated web admin interface. The built in one is fine for the site > administrators, but there are different staff positions that need > access to different models, and sometimes i

Subclass AdminSite vs. custom admin views

2009-04-22 Thread MrJogo
Hi, I'm creating a website for an organization that is going to need a complicated web admin interface. The built in one is fine for the site administrators, but there are different staff positions that need access to different models, and sometimes individual fields in those models should be hid

Best way to add a custom Admin form inline

2009-04-05 Thread Oni
was to create a default thumbnail and allow the user to edit it later. I have found some AJAX code written for Django that allows the user to drag around a box shape over the top of an image and create the required co-ordinates for thumbnails. Now, I have manged to create a custom admin view

Custom Admin Save redirect?

2009-02-24 Thread Alfonso
Is it possible to define a url for the admin form submit? I'd like to redirect a user to a custom list view I've created (outside admin) following the save of a record update or record addition. Is that possible through the 'admin/submit_line.html' template? For example I'd like a user to end u

Re: Custom Admin Save redirect?

2009-02-24 Thread peschler
You can write you own admin class and implement the following methods. Below is an example of an admin class which changes the redirect for the add, change and delete stage. I am not sure if this is the best way to do it, but it works: --- class YourClassAdmin(admin.ModelAdmin): def response

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

2008-10-29 Thread anonymous
thing 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

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 apa

Django custom admin form plus / add button

2008-05-23 Thread FadeOUT
In Django admin, foreign key fields are automatically accompanied by a little plus icon to add an item to the related table via a popup. Is there a convenient way to replicate this functionality in a custom form? Is there a parameter that I can add to the (newforms) form field or will I have to ma

Re: Creating Custom Admin Views

2008-04-01 Thread oliver
This I think contains the main views. http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/views/main.py line 769 def change_list(request, app_label, model_name): seems to be the view you need to copy and every thing that is attached to it. I have not gotten for in my implemen

Re: Creating Custom Admin Views

2008-04-01 Thread Bernd
no, I didn't found any answers :-( Could you send me the source code you copied from the django admin? I also looked into the django-admin source code, but I hadn't enough time to look deeper into this topic. Is there a possibility in newforms-admin to solve this problem? On Tue, 2008-04-01 at

Re: Creating Custom Admin Views

2008-04-01 Thread oliver
have you found any answers to this? as i am trying to do the same thing, I just want to change the data set that is send to the default template. I have been looking in the srouce code and am trying to copy what django admin does into my custom view, but it would be nice if there was an easier way

Re: Creating Custom Admin Views

2008-03-31 Thread Brot
does nobody have some helpful input? On 30 Mrz., 17:13, Bernd <[EMAIL PROTECTED]> wrote: > Hello, > > I followed the documentationhttp://www.djangobook.com/en/1.0/chapter17/ > in the section "Creating Custom Admin Views". I try to override the > change_list.html f

Creating Custom Admin Views

2008-03-30 Thread Bernd
Hello, I followed the documentation http://www.djangobook.com/en/1.0/chapter17/ in the section "Creating Custom Admin Views". I try to override the change_list.html for one of my models. I only would like to extend the change_list for the model with some extra context data. All of

Re: custom admin action?

2008-02-10 Thread Alex Koshelev
You can create a ImageFIeld subclass with needed functionality of image processing. And use it with some models. On 10 фев, 14:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i have an ImageField in my model (editable only by staff memebrs), i > would like to generate a thumbnail everytime a

Re: custom admin action?

2008-02-10 Thread Almir Karic
thank you very much :) On Feb 10, 2008 12:31 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-02-10 at 03:20 -0800, [EMAIL PROTECTED] wrote: > > i have an ImageField in my model (editable only by staff memebrs), i > > would like to generate a thumbnail everytime a staff memebe

Re: custom admin action?

2008-02-10 Thread Malcolm Tredinnick
On Sun, 2008-02-10 at 03:20 -0800, [EMAIL PROTECTED] wrote: > i have an ImageField in my model (editable only by staff memebrs), i > would like to generate a thumbnail everytime a staff memeber adds a > new instance of my model, any ideas where to put image thumbnail > generating code? In your m

custom admin action?

2008-02-10 Thread [EMAIL PROTECTED]
i have an ImageField in my model (editable only by staff memebrs), i would like to generate a thumbnail everytime a staff memeber adds a new instance of my model, any ideas where to put image thumbnail generating code? as a side not, is anyone aware of any snippet that takes as input image lis

Best practice for storing custom admin templates?

2008-01-25 Thread Julien
including the admin templates. Now, is there a recommended place to store custom admin templates? Thank you! Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Sure, we can do this, but this doesn't provide a nice application-level way of adding this to the admin listing. At the company I work for, we have over 100 websites we deploy for (and we are just starting to transition to Django). We deploy each application individually depending on a client's

Re: Adding a custom admin view to the admin app listing

2007-09-19 Thread olivier
Hi, > But I want it to be listed along with the rest of the admin listing > for that app. I may not have understood what you have in mind, but why don't you add something after the line 39 of contrib/admin/templates/index.html (or actually your copy of it): {% for model in app.models %} ...

Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Hello, For a project we're working on, we need a custom view that's available only to administrators. It's not the traditional add/edit/delete stuff, and the generic admin interface doesn't cut it. That's fine, I can write my own view. (They need to upload a CSV file, which adds and updates so

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif strickland <[EMAIL PROTECTED]> wrote: > After some digging around, it looks like the newforms-admin branch > does not allow widget declarations within the model class itself. Yeah. As you've discovered, one of the big points of newforms-admin is to get as much stuff as possible o

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif strickland
After some digging around, it looks like the newforms-admin branch does not allow widget declarations within the model class itself. However, adding a custom widget is quite easy. In the branch, almost all of the admin app functionality has been moved out of the inner Admin class and into a separ

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif <[EMAIL PROTECTED]> wrote: > Does anyone have information on this topic? I have a feeling I'm not > the only one who's wondering this. Thanks! Your best bet is probably to read the source right now; when the branch is complete there will undoubtedly be documentation showing the s

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif
Does anyone have information on this topic? I have a feeling I'm not the only one who's wondering this. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Custom admin field widgets in the newforms-admin branch

2007-06-26 Thread leif
By the way, I did find the hook in django/branches/newforms-admin/ django/contrib/admin/options.py for specifying the form field for a given database field. But that's different than allowing a developer to specify the widget for a given field in the model itself. --~--~-~--~~--

Custom admin field widgets in the newforms-admin branch

2007-06-26 Thread leif
One of the stated goals of the newforms-admin branch ( http://code.djangoproject.com/wiki/NewformsAdminBranch ) is to allow developers to specify custom widgets for particular fields in a model. I have not been able to find documentation regarding this new feature. Has it been implemented yet? Th

Custom admin view - sorting, filters, and search

2007-06-19 Thread Vincent Nijs
The admin change list pages you get 'for free' when you add: class Admin: list_display = ( ... ) list_filter = ( ... ) search_fields = ( ... ) to your model are really nice. I'd like to add these features to my custom admin pages as well. I am getting part of the wa

  1   2   >