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
22
votes
1 answer

Django admin list_display short_description

In django admin, If we define an element for list_display we can assign short_description for that field as class PersonAdmin(admin.ModelAdmin): list_display = ('upper_case_name','age') def upper_case_name(self, obj): return ("%s…
brsbilgic
  • 11,613
  • 16
  • 64
  • 94
22
votes
3 answers

Django AdminSite/ModelAdmin for end users?

Not all software has the need for an admin interface for "content producers" on the left and a site for "visitors/members" on the right. It is often said that "the Admin is not your app" (See for example the accepted answer (March 2009)). I couldn't…
Danny W. Adair
  • 12,498
  • 4
  • 43
  • 49
21
votes
8 answers

Detect if Java application was run as a Windows admin

I have a Java application. Is there anyway I can tell if the process was run with admin privileges, on Windows 7.
user489041
  • 27,916
  • 55
  • 135
  • 204
21
votes
12 answers

Error in admin: __str__ returned non-string (type NoneType)

The admin returns this error when trying to add an instance to one of my models. The model itself has a correct str() method and contains no instances yet. Also tried replacing the str() method with a static method or removing it altogether. No…
Roy Prins
  • 2,790
  • 2
  • 28
  • 47
21
votes
2 answers

Test if a systemd unit is active in a bash script

I'm writing a script to automatically install a bind server on a CentOs 7 distribution. I'm stuck with systemctl status, because it does not produce an error code (it's right, since a status is not an error) I can use. What I want is to check…
math
  • 311
  • 1
  • 2
  • 3
21
votes
2 answers

You do not have sufficient permissions to access this page without any change

I am working on Wordpress and I completed my project locally. I then moved it to my live server and did not change anything, I just made changes in the config file (database name, username and password). Now my site is working fine on the front-end…
Kashif Waheed
  • 597
  • 4
  • 9
  • 18
20
votes
1 answer

How can an administrator add a developer to an app

I am an administrator for a page which was created for our company by a third party. Now, that third party is no longer with us and we are trying to add a developer account to the page. How can we achieve it?
A. Bharath Kishore
  • 225
  • 1
  • 2
  • 3
20
votes
9 answers

kubectl : Unable to connect to the server : dial tcp 192.168.214.136:6443: connect: no route to host

I recently installed kubernetes on VMware and also configured few pods , while configuring those pods , it automatically used IP of the VMware and configured. I was able to access the application during that time but then recently i rebooted VM and…
Vicky
  • 319
  • 3
  • 6
  • 16
20
votes
12 answers

WordPress theme editor is missing

I am trying to access the theme editor in WordPress. The problem is that I cannot find the option under Admin-Appearances - Editor and when I try to access the page using the link http://www.nameofsite.com/wp-admin/theme-editor.php I get the…
user3192304
  • 337
  • 1
  • 3
  • 10
20
votes
2 answers

C++: Run program as administrator

Some programs are automatically asking for administrator rights when you run them. These programs are marked with a little shield in the bottom right corner: Now I'm wondering how I could accomplish this in C++. Is there a function for this or do…
Forivin
  • 14,780
  • 27
  • 106
  • 199
20
votes
3 answers

How to kill this immortal nginx worker?

I have started nginx and when I stop like root /etc/init.d/nginx stop after that I type ps aux | grep nginx and get response like tcp LISTEN 2124 nginx WORKER kill -9 2124 # tried with kill -QUIT 2124, kill -KILL 2124 and after I type again …
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
20
votes
2 answers

How to proper design a restful API to invalidate a cache?

I have an Application which requires data from Service2, which will return the same answer for a given request, forever, unless its backing database is updated. The database is updated very rarely, let's say twice per year. I would like to design a…
Edmondo
  • 19,559
  • 13
  • 62
  • 115
19
votes
5 answers

What is the difference between. annotations and labels in in Kubernetes?

I'm trying to wrap my head around the difference between annotations and labels. My understanding of annotations is that it is metadata that adds key-value pairs that cannot be used by Kubernetes for identifying/filtering the resource. Labels on the…
Vipin Menon
  • 2,892
  • 4
  • 20
  • 35
19
votes
6 answers

How to add attributes to option tags?

I have to add title attribute to options of the ModelChoiceField. Here is my admin code for that: class LocModelForm(forms.ModelForm): def __init__(self,*args,**kwargs): super(LocModelForm,self).__init__(*args,**kwargs) …
iva123
  • 3,395
  • 10
  • 47
  • 68
19
votes
4 answers

Django admin TabularInline - is there a good way of adding a custom html column?

I've got a model (Entry) which contains a simple property: @property def image(self): return str(self.id)+"_"+self.round.season.name+"_"+self.round.theme+"_"+self.person.name I use this to build the name of a particular image file on disk.…
growse
  • 3,554
  • 9
  • 43
  • 66