admin

Dynamically customize django admin columns ?

Is it possible to let the users choose / change dynamically the columns displayed in a object list in Django administration ? Things can surely be implemented "from scratch" by modifying the 'change_list.html' template but I was wondering if somebody has already had the same problem and/or if any django-pluggin can do that. Thanks in a...

Changing the admin edit window display values

I have a database table with e.g. a weight value e.g. CREATE TABLE product ( id SERIAL NOT NULL, product_name item_name NOT NULL, . . weight NUMERIC(7,3), -- the weight in kg . . CONSTRAINT PK_product PRIMARY KEY (id) ); This results is the model: class Product(models.Model): . weight = mode...

drupal - using variable_set, hook block and hook menu to save config values then print out in custom template

I am trying to 1) implement the hook menu and variable_set in the block hook and to solicit and store configuration values from user, 2) then use retrieve configuration values and 3) pass them out into a template using theme hook when page is shown. However I need a bit of a push on step two and three! // ===================== file:...

Django admins disappearing from the admin index

We're running a Django website with rough 45 install Django admin classes. The handler is mod_fastcgi. Every once in a while about half the admins disappear from /admin/ screen. Touching the production.fcgi file restores everything to normal, but we have yet to determine the underling cause. Any thoughts on what the underlying issue mi...

input_formats in django admin has no effect

I'm trying to use input_foramts in the admin but it has no effect. What am I doing wrong? # model class Feedback(models.Model): created_at = models.DateTimeField(auto_now_add=True) # admin form class FeedbackAdminForm(forms.ModelForm): created_at = forms.DateTimeField(input_formats=('%d/%m/%Y',)) class Meta: model = Feedback...

Hide fields in Django admin

I'm tying to hide my slug fields in the admin by setting editable=False but every time I do that I get the following error: KeyError at /admin/website/program/6/ Key 'slug' not found in Form Request Method: GET Request URL: http://localhost:8000/admin/website/program/6/ Exception Type: KeyError Exception Value: Key 'slug' not fou...

Symfony 1.4 change admin generator actions or templates

Hi, how can I modify admin generated modules (acions and templates)? They are stored in cache but I need to modify them (templates!). Is it possible at all? Greetings ...

Symfony admin generator datetime picker

How can I use a jQuery datetime picker in the symfony admin generator? ...

django admin - selecting a single model to publish to site

Hey, I'm making a popup radio player with an attached shoutbox with django and i'm having trouble getting the admin functionality I want. I have two models: 1) A Stream (which represents a certain radio stream that the admin can publish to play on the frontpage - i.e. there are multiple saved streams, but only one is playing on the fr...

Any recommendations for open-source cross-platform virtual machine monitor/managers?

I'm looking for virtual machine managers, the more functions the better, that will centrally manage Xen and VMWare virtual machines and hosts. I've come across BixData and LxCenter, but haven't tried them. Has anyone any experience of them, or recommendations for other such tools? Ignore this, it should be on Server Fault. I've made an...

How to "defragment" MongoDB index effectively in production?

I've been looking at MongoDB. Feels good. I added some indexes to a collection, uploaded a bunch of data, then removed all the data, and I noticed the indexes did not change size, similar to the behavior reported here. If I call db.repairDatabase() the indexes are then squashed to near-zero. Similarly if I don't remove all the d...

Authlogic admin subsite

Following this tutorial getting the following errors: NameError in Admin/dashboardsController#show uninitialized constant Admin::DashboardsController NameError in Admin sessionController#new uninitialized constant Admin::AdminHelper not sure how to correct this! ...

create admin front-end for web application?

does one create an admin front-end from scratch for every web application (not CMS sites)? are there any tools for aiding this process? some tutorials? share your thoughts and experiences! ...

codeigniter admin login hacked although I have used all security matters

hi friends, how come have the code before hacked with SQL Injection :( $query = $this->db->query("SELECT * FROM users WHERE username = ? AND password = ?", array(mysql_real_escape_string($this->input->post('username')), mysql_real_escape_string(MD5($this->input->post('password'))))); appreciate helps!! ...

Visual Studio 2005 C++ Application Wants To Run As Admin

I wrote a simple c++ application in Visual Studio 2005 but when I compile it, the executable wants to run as admin. I tried deleting the manifest but it still wants to run as admin. I am running Windows Vista Home premium. Any help would be appreciated! ...

Building a JMX client in a servlet installed on the Deployment Manager

Hi guys, I'm building a monitoring application as a servlet running on my websphere 7 ND deployment manager. The tool uses JMX to query the deployment manager for various data. Global Security is enabled on the dmgr. I'm having problems getting this to work however. My first attempt was to use the websphere client code: String sslP...

Magento: I want to search customer by phone number regardless of spaces

Hi there, I want to search customer in admin panel by customer billing phone but i need to search it regardless of spaces like it should search with spaces like 123 456 789 and if admin enters 123456789 then it also have to search so spaces don't matter Regards ...

Django admin page dropdowns

I am building a high school team application using Django. Here is my working models file: class Directory(models.Model): school = models.CharField(max_length=60) website = models.URLField() district = models.SmallIntegerField() conference = models.ForeignKey(Conference) class Conference(models.Model): conference_na...

The best way to separate admin functionality from a public site?

I'm working on a site that's grown both in terms of user-base and functionality to the point where it's becoming evident that some of the admin tasks should be separate from the public website. I was wondering what the best way to do this would be. For example, the site has a large social component to it, and a public sales interface. ...

Django: UserProfile with Unique Foreign Key in Django Admin

Hi, I have extended Django's User Model using a custom user profile called UserExtension. It is related to User through a unique ForeignKey Relationship, which enables me to edit it in the admin in an inline form! I'm using a signal to create a new profile for every new user: def create_user_profile(sender, instance, created, **kwargs):...