admin

How can I convince my manager to grant me access to our web host admin functions?

I was hired by my current employer to develop an e-commerce solution. My manager doesn't want to give me access to the hosting interface, so I can't create or administer the required databases or do anything else requiring that kind of access. The host only provides one level of access to their tools. My manager apparently just doesn't...

Django: reverse function fails with an exception

I'm following the Django tutorial and got stuck with an error at part 4 of the tutorial. I got to the part where I'm writing the vote view, which uses reverse to redirect to another view. For some reason, reverse fails with the following exception: import() argument 1 must be string, not instancemethod Currently my project's urls.p...

Best way to create an Admin section in Grails

Hy, I'm wondering what's the best way to create an Admin (backend) section in a Grails app ? I want to create an Admin folder in the Controllers folder of Grail to put all my admin controllers. But Then will I have to create manually the URL mapping for each Admin controllers ? I have already generate all my frontend gsp with the ge...

Make Django admin use translated field names

I'm doing a localization of a Django app. The front-end website works fine and the Django admin site picks up the selected language as well. But it only applies the language settings in some places and uses the default English versions of field and column names, even though these have been translated. Why? How can I make it use the tra...

Django admin doesn't show translated enumerations in list view under Python 2.3

When using localized list of "choices" for a model field, the admin doesn't show the translated values in the list view. Short example: from django.utils.translation import ugettext_lazy as _ class OrderStates: STATES = ( (STATE_NEW, _("New")), (STATE_CANCELLED, _("Cancelled")), ) class Order(models.Model): st...

How to view the deleted object in active directory

Can you just tell me, how to view the deleted objects in active directory without administrator login. Otherwise please tell me which ACEs can I use to view those deleted objects. ...

Djang-admin : How to display link to object info page instead of edit form , in records change list ?

I am customizing Django-admin for an application am working on . so far the customization is working file , added some views . but I am wondering how to change the records link in change_list display to display an info page instead of change form ?! in this blog post :http://www.theotherblog.com/Articles/2009/06/02/ extending-the-django...

How do I require an inline in the Django Admin?

I have the following admin setup so that I can add/edit a user and their profile at the same time. class ProfileInline(admin.StackedInline): """ Allows profile to be added when creating user """ model = Profile class UserProfileAdmin(admin.ModelAdmin): """ Options for the admin interface """ inlines = ...

How to find number of users, number of users with a profile object, and monthly logins in Django

Is there an easy way in Django to find the number of Users, Number of Users with profile objects, and ideally number of logins per month (but could do this with Google Analytics). I can see all the data is there in the admin interface, but I'm unsure of how to get to it in Python land. Has anyone seen any examples of counting number of ...

Remove the "Add" functionality in Django admin

Is there a way to remove the "Add" functionality on the Django admin site? For certain entities, I only want the Django admin to be able to view them or change existing ones, but not add new ones. ...

WMD in Django Admin?

I know how to use WMD and other such javascript editors in regular django forms using widget=. However, how do I use WMD for text fields in the Django admin? On top of that, how do I use it for the content field on contrib.flatpages in the admin? Also, I think I might like to use the StackOverflow fork of WMD, so I would like any speci...

Getting Django Admin class variables from a view

I'd like to get the values in class variables like list_display and list_filter from a view. Something like: def some_view(): print Order.list_display ... ...

How to avoid calling get_query_set()

How can I make Django avoid calling ChangeList's get_query_set() method in file django.contrib.admin.views.main.py? I don't want to append any data, I want it to not call that method at all. Thanks. ...

Filter content in Symfony 1.2.x admin generator?

I have a Symfony 1.2.7 application where 3 different sites coexist in the same database. All content has a foreign key, 'site_id', that says which site it belongs to. In my generated admin interface I want to be able to show content from the currently selected site (actually set using a filter class, based on the domain used to access t...

Implementing Admin Module on Tomcat 6

Hello All, We recently upgraded to Tomcat 6 and I have discovered the admin module does not come with the installation. Has anyone attempted to integrate the admin download from tomcat 5.5 into tomcat 6 and could tell me the steps they took. This is installation serves users exclusively behind our filewall. Thanks ...

Per-Site User Permissions in Django Admin

In the same way that Articles can have a relationship with Sites (OneToOne/ManyToMany), I'd like to be able to assign a User permission to work on a certain Site (or Sites). ...

Wordpress MU admin plugin, how to apply to new blogs?

I am trying to create a Wordpress MU admin plugin, that will insert some JavaScript code into every admin page that my users see. I created my own plugin, and activated using the "Activate Plugin Site wide" link. I have been testing with the following code, which works on existing blogs. add_action("admin_footer", 'testAdminFooterHook...

Java: run as administrator

Is there a way in Java to ask the system get control over the system. Without doing: Right click on an exe-> run as admin. What I want is that there comes a frame from uac like in windows vista or windows 7. Or have I to do some settings while making an exe from the jar? ...

Django Admin: Making mandatory fields non-mandatory dynamically

How can I make mandatory fields non-mandatory when another [associated] field has a certain value? Let's assume I have the following models: class foo(models.Model): bar = models.CharField(max_length=200) foo_date = models.DateTimeField() When I save, and bar contains a certain value, i'd like foo_date to become non-mandatory...

Elevating to admin rights in Mac application

I am making a simple application that lets you quickly enter a shell command to be run. It works perfectly, however there is the problem of sudo commands. Currently, it detects a sudo command, and then I try and get it to bring up an authorization window for the user's password, exactly like you would see in Installer. Here's the code o...