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
346
votes
26 answers

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs or use external programs. Well, actually I don't care…
flacs
  • 3,913
  • 4
  • 19
  • 20
320
votes
17 answers

MongoDB - admin user not authorized

I am trying to add authorization to my MongoDB. I am doing all this on Linux with MongoDB 2.6.1. My mongod.conf file is in the old compatibility format (this is how it came with the installation). 1) I created admin user as described here in…
peter.petrov
  • 38,363
  • 16
  • 94
  • 159
170
votes
18 answers

WordPress asking for my FTP credentials to install plugins

I installed a WordPress blog in my local system. But when I try to add plugins from admin it asks for FTP access. What do I need to configure for WordPress to be able to upload without FTP?
sasi kanth
  • 2,637
  • 4
  • 17
  • 29
133
votes
23 answers

Why does my Django admin site not have styles / CSS loading?

I made a Django admin site using Django development version but it isn't being styled:
zjm1126
  • 34,604
  • 53
  • 121
  • 166
117
votes
10 answers

DateTimeField doesn't show in admin system

How come my "date" field doesn't come up in the admin system? In my admin.py file i have from django.contrib import admin from glasses.players.models import * admin.site.register(Rating) and the Rating model has a field called "date" which looks…
dotty
  • 40,405
  • 66
  • 150
  • 195
94
votes
14 answers

Django Admin Show Image from Imagefield

While I can show an uploaded image in list_display is it possible to do this on the per model page (as in the page you get for changing a model)? A quick sample model would be: Class Model1(models.Model): image =…
Jeff_Hd
  • 2,174
  • 3
  • 19
  • 29
87
votes
14 answers

How to run script with elevated privilege on windows

I am writing a pyqt application which require to execute admin task. I would prefer to start my script with elevate privilege. I am aware that this question is asked many times in SO or in other forum. But the solution people are suggesting is to…
sundar_ima
  • 3,604
  • 8
  • 33
  • 52
87
votes
10 answers

Limit foreign key choices in select in an inline form in admin

The logic is of the model is: A Building has many Rooms A Room may be inside another Room (a closet, for instance--ForeignKey on 'self') A Room can only be inside another Room in the same building (this is the tricky part) Here's the code I…
mightyhal
  • 1,667
  • 1
  • 14
  • 8
78
votes
26 answers

Unable log in to the django admin page with a valid username and password

I can’t log in to the django admin page. When I enter a valid username and password, it just brings up the login page again, with no error messages This question is in the django FAQ, but I've gone over the answers there and still can't get past the…
monkut
  • 42,176
  • 24
  • 124
  • 155
76
votes
2 answers

ActiveAdmin with has_many problem; undefined method 'new_record?'

I'm trying to customise a ActiveAdmin form for a Recipe model that has a has_many relationship with Step. class Recipe < ActiveRecord::Base has_many :steps end class Step < ActiveRecord::Base acts_as_list :scope => :recipe belongs_to…
nickpellant
  • 1,046
  • 1
  • 7
  • 9
75
votes
7 answers

'WSGIRequest' object has no attribute 'user' Django admin

When I trying to access the admin page it gives me the following error: System check identified no issues (0 silenced). June 21, 2016 - 15:26:14 Django version 1.9.7, using settings 'librato_chart_sender_web.settings' Starting development server at…
Gonçalo Correia
  • 1,595
  • 1
  • 10
  • 14
62
votes
4 answers

How to add readonly inline on django admin

I am using django 1.4 and I have a many2many field, so when creating the admin site I wanted to add this field as an inline, here is some code: class SummaryInline(admin.TabularInline): model = ParserError.summaries.through class…
Hassek
  • 8,715
  • 6
  • 47
  • 59
58
votes
6 answers

How to force a WPF application to run in Administrator mode

I have an WPF application which access windows services, task schedulers on the local machine. When I deploy this WPF application and run it without "Run as Administrator" , it fails as it is not able to access the windows services and task…
SVI
  • 1,631
  • 3
  • 22
  • 30
56
votes
1 answer

Django how to pass custom variables to context to use in custom admin template?

I am extending change_list.html and I need to output a variable defined in settings.py. How do I pass that particular variable into the custom admin template context?
James Lin
  • 25,028
  • 36
  • 133
  • 233
56
votes
4 answers

Django is_staff permission decorator

I am trying to limit access to pages using 2 user levels. Superuser and admin. Super user is a regular Django user with 'is_superuser' assigned. Admin user is also a regular user with only the 'is_staff' permission assigned. The problem is that when…
Dim
  • 815
  • 2
  • 7
  • 12
1
2 3
99 100