Questions tagged [admin]

admin may refer to both physical persons or software accounts that are dedicated and privileged to change the system they operate. Also used on WordPress to designate backend.

admin may refer to both physical persons or software accounts that are dedicated and privileged to change the system they operate. Also used on WordPress CMS to designate backend processes (see is_admin() conditional function).

4554 questions
50
votes
4 answers

Django Admin - Specific user (admin) content

I'm starting to organize a new project and let's say i'll have a few models like products and catalogs. I will allow my clients (not visitors, only specific clients) to login on Django Admin site to create, edit and delete their own catalogs. Lets…
Thiago Belem
  • 7,732
  • 5
  • 43
  • 64
48
votes
8 answers

Replace textarea with rich text editor in Django Admin?

I would like to know the best way to replace a standard textarea field with a rich text editor in Django Admin?
user41736
  • 481
  • 1
  • 4
  • 4
48
votes
3 answers

access denied for user debian-sys-maint

I have had problem with mysql. I tried to execute this: echo "show databases" | mysql -B -N But I got: ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES) But when I exec: /etc/init.d/mysql restart I…
Bartosz Kowalczyk
  • 1,479
  • 2
  • 18
  • 34
43
votes
5 answers

How to check if currently in Wordpress Admin?

I am creating my first plugin and have a single function that controls the output. This function has different output based on whether or not it is being viewed from within the WordPress admin vs. the frontend. Is there any way to easily test…
Matt
  • 1,539
  • 1
  • 11
  • 16
42
votes
2 answers

Prevent django admin from escaping html

I'm trying to display image thumbnails in django admin's list_display and I am doing it like this: from django.utils.safestring import mark_safe class PhotoAdmin(admin.ModelAdmin): fields = ('title', 'image',) list_display = ('title',…
Andy
  • 423
  • 1
  • 4
  • 4
42
votes
7 answers

Java: run as administrator

Is there a way in Java to ask the system to get control over administrator functionality. Of course without doing: Right click on the 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…
Martijn Courteaux
  • 67,591
  • 47
  • 198
  • 287
39
votes
1 answer

Adding a jQuery script to the Django admin interface

I'm gonna slightly simplify the situation. Let's say I've got a model called Lab. from django.db import models class Lab(models.Model): acronym = models.CharField(max_length=20) query = models.TextField() The field query is nearly always…
user2282405
  • 873
  • 2
  • 9
  • 10
37
votes
5 answers

Adding values to a magento dropdown or multi-select product attribute while adding a new product

I'm wondering if anyone has found or written an extension that would allow a magento website administrator the ability to add values to their products attribute while adding the product. For example, if I sell books and want the book author to be…
Jeremy
  • 1,908
  • 3
  • 25
  • 38
34
votes
3 answers

is it possible to create a custom admin view without a model behind it

I have an object which I want to use under admin instead of a model which inherits models.Model. If I make it inherit models.Model, this object will create a table in the database which i don't want. I only want this object to stay in memory. One…
sysasa
  • 913
  • 1
  • 9
  • 16
32
votes
7 answers

How to set "Run this program as an administrator" programmatically

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…
Patrick
  • 1,766
  • 1
  • 15
  • 27
32
votes
4 answers

How to set initial data for Django admin model add instance form?

How can I set an initial value of a field in the automatically generated form for adding a Django model instance, before the form is displayed? I am using Django 1.3.1. My model is the following: class Foo(models.Model): title =…
Martijn de Milliano
  • 3,908
  • 3
  • 36
  • 45
31
votes
1 answer

Check if a role in PostgreSQL has a password set

I wonder how I can verify whether or not a role (users are just a specific kind of role) has a password set in PostgreSQL 9.1. I tried the command \dg+ and \du+ but they don't show you anything password related. I also used the following query, but…
aef
  • 4,498
  • 7
  • 26
  • 44
30
votes
4 answers

Testing custom admin actions in django

I'm new to django and I'm having trouble testing custom actions(e.g actions=['mark_as_read']) that are in the drop down on the app_model_changelist, it's the same dropdown with the standard "delete selected". The custom actions work in the admin…
user2106729
  • 323
  • 1
  • 3
  • 4
28
votes
8 answers

PyCharm "Can't get remote credentials for deployment server"

After config remote interpreter and deployment I got the following error when PyCharm trying to install libs from requirements.txt Can't get remote credentials for deployment server
Ryabchenko Alexander
  • 10,057
  • 7
  • 56
  • 88
28
votes
3 answers

Elevate Java application while running

A nasty problem popped out with my software. I am making a program that interacts with another existing software (a game). User has reported that he runs the game with administrator privileges and under that circumstances, my program stops working…
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778