admin

Symfony (Propel) Admin Generator Behavior - Why does it work like this?

Hi there, I've been having some 'issues' with the admin generator (Propel version). The HTML generation behavior between the list view and the form view is very different, and I'd like to know why, as the form view works better (and as expected) compared to the list view. I have the following YAML for the 'edit' action, edit: action...

Do inline model forms emmit post_save signals? (django)

So I have two models (Tables) related by a ForeignKey. In the admin, the edit page displays the first model (let's say ModelOne) along with the related instances of the second model, ModelTwo (TabularInline). What I want is perform some additional actions when the second model is being changed. I can do this with a post_save signal on M...

Apache 2 Administration Tools on Ubuntu or Windows

Hi There... I am totally new to Apache and Ubuntu, is there an admin tools where the available functions and features and settings are more accessible? I am finding it very difficult to do even the simplest things.... please help. Cheers. ...

Retrieving related data in the Symfony Admin Generator

I have a problem with the Admin Generator. The Table of Pages have the column sf_guard_user_id. The rest of the table looks as this part of the generator.yml in the line display, list: title: Pages display: [=title, sfGuardUser, views, state, privacy, created_at, updated_at] sort: [created_at, desc] fields: sfGu...

Sharepoint Server 2007 - Change Authentication to AD

I set up a test Sharepoint 2007 Server before I set up a test AD Server to add it to. Based on what I read I did this backwards and if I would have set it up the other way around Sharepoint would use AD by default. Is there a way I can change the configuration so this Sharepoint server will authenticate against the domain? I did some ...

Drupal: Create a unique selector for admin styles?

I'd like to style some components differently in the admin. How could I generate a unique id/class on the body element so I could style admin elements separately? ...

Admin routing, http://website.com/admin won't go to posts/admin_index

I have admin routing enabled. How can I set routing, to make http://website.com/admin go to posts/admin_index? I've got this: Router::connect('/', array('controller' => 'posts', 'action' => 'index')); But it doesn't seem to work. I get this error (when going to http://website.com/admin): Missing Controller Error: Controller could n...

Should I use the same url to login admins and other registred users in Django?

I am quite new to Django, so it may be a stupid question, but, nevertheless: I need Django admin part to edit contents on the site, and also I want to have authentification, that will allow registred users to leave comments. I have the following idea of implementation it: have 2 different tables(admins and other registred users) and us...

Django: using ForeignKeyRawIdWidget outside of admin forms [Solved]

I'm trying to find some documentation of how to use the ForeignKeyRawIdWidget in my own forms. Currently I keep getting the error, "init() takes at least 2 non-keyword arguments (1 given)" which tells me nothing. Any help would be most appreciated. Googling this turns up little but dev conversations and no examples that I can find of ho...

cannot import name formats

what does it mean? i ve googled but found nothing =/ ImportError at /admin/ cannot import name formats Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Exception Type: ImportError Exception Value: cannot import name formats Exception Location: /usr/lib/python2.6/site-packages/django/contrib/admin/util.py in <modul...

How to set "Run this program as an administrator" programatically.

I'm having a problem with good ol' bdeadmin.exe in Vista. First, let's get the predictable responses out of the way: "You should not require your application to be elevated." This one does. C'est la vie. "You need to embed a manifest file." It is already compiled, it is many years old, the company that created it has no intention of do...

Looking for a book that focuses/greater detail about django admin app

Hi, I been going through most of the django book at a local bookshop and everyone of them has a chapter or two about django admin and which barely touch the surface and mostly about skinning the app. I wonder if there is any django books that focuses all aspects of django admin or goes much more deeper in detail about django admin app. ...

Django admin - Restrict user view by permission

Hello, I'm starting to learn Django and I have a question. Is there any way to restric views in the administration interface? I see there are "change, "add" and "delete" permissions, but I wanted to restrict views also. For example: Two users, "User 1" is superuser and "User 2" is in the editor group. User 1 has access to everything, ...

Is it a bad idea to change the app_label assignment on existing Django models?

I have the hair-brained idea of grouping models from different existing apps into one big new shiny app. There's not a super important reason I need to do this, but it would be nice to consolidate all of the code in one subdirectory and it would improve the site to group all the models together in the admin_index under the same module he...

Jetty6 service and administrator rights

How do I determine if my Jetty6-service run with administrative rights? I need to setup Jetty on my XP dev box to run as a service. http://docs.codehaus.org/display/JETTY/Win32Wrapper It installs OK and I can see the Jetty6 Service in windows services manager. But when I try to start it I get this error in the log file: STATUS | wr...

Set up a login form in php and the first admin login

Hi everybody, I would like to setp up a login form that will included in certain pages. I found many tutorials that talk about it but, how can I add the "admin" account for the first time ?! In phpmyadmin directly? I can do it but, want it to be encoded with the md5 algorithm. Does anybody know where can I find a ready login system wit...

django admin.site.name in template

Hallo, is there any chance to access the "name" value of the current admin.site object in a admin template? I have 3 different admin.site-objects and want a template tag to generate generic content,depending on the current admin.site.name. thanks in advance ...

how to use ForeignKeyRawIdWidget

Hi I want to extend ForeignKeyRawIdWidget so I want to be able to use it without setting raw_id_fields. With the follwoing I don't get an error but I see no effect: # models.py class Product(models.Model): ... class GroupProduct(Product): ... products = models.ManyToManyField(Product, related_name="%(class)s_related") # ...

Django Admin popup functionality

This topic is fairly common (most explicitly detailed here: http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/), but I'm still having trouble with it. I'm trying to use the "plus" button functionality used in the admin site where one can add an additional foreign key to a linked entry. In the admin site, a popup displays allo...

define the queryset of ModelMultipleChoiceField in the widget

Hi I'm using ModelMultipleChoiceField with a large number of objects. I want to show only the selected objects and let the user remove a choice with js. To add choices the user will open a popup similar to ManyToManyRawIdWidget. I can limit the queryset to the selected choices in the init of the form with: def __init__(self, *args, **...