Questions tagged [django-admin]

Django's built-in, automatic admin interface (django.contrib.admin) which is part of the Django Web framework for the Python programming language.

One of the most powerful parts of Django is the automatic admin interface. It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin’s recommended use is limited to an organization’s internal management tool. It’s not intended for building your entire front end around.

-- Django Admin Documentation

Resources:

10185 questions
5
votes
1 answer

Django admin: Edit model field with 'editable=False'

I would like admin to be able to edit a field that normal users would be unable to edit. Examples would be author or subscribers etc. I tried this: Django admin: How to display a field that is marked as editable=False' in the model? (the editable…
powlo
  • 2,538
  • 3
  • 28
  • 38
5
votes
13 answers

Nothing happens when I do: python manage.py command

I'm new to django and currently going through the main tutorial. Even though it was working earlier, when I do python manage.py runserver OR python manage.py -h OR with any other command, the shell doesn't output anything. Wondering what I'm doing…
David Haddad
  • 3,796
  • 8
  • 32
  • 40
5
votes
4 answers

Is it worth it using the built-in Django admin for a decent sized project?

I haven't been using Django too long, but I'm about to start a pretty hefty-sized project. I'm always nervous using fairly new frameworks (new to me) on large projects because I've been burned before. However, I'm pretty confident in Django...this…
Dan Breen
  • 12,626
  • 4
  • 38
  • 49
5
votes
1 answer

Django admin template: Accessing request object in template

I need the request object in all admin templates. In frontend templates, I can achieve this by rendering the template with RequestContext: return render_to_response('my_template.html', my_data_dictionary, …
Martin
  • 4,170
  • 6
  • 30
  • 47
5
votes
2 answers

Customising the Django Admin change password page

I would like to have my own custom change_password page and I am already using the admin login from Django(using from django.contrib.auth.decorators import login_required). Got the admin login working but would like to change the change_password…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
5
votes
2 answers

Django admin - giving users access to specific objects/fields?

I need to make an "owners" login for the admin. Say we have this model structure: class Product(models.Model): owner = models.ManyToManyField(User) name = models.CharField(max_length=255) description = models.CharField(max_length=255) …
antihero
  • 423
  • 5
  • 10
5
votes
2 answers

Django and Celery: admin task list does not display values

My problem ought to be fairly simple and is more a question of interest than something that needs to be desperately fixed. Google could not give me the answer I was looking for so I hope your expertise can help me out. I am using: Django 1.4 Celery…
Allard Stijnman
  • 1,284
  • 11
  • 22
5
votes
1 answer

using django-allauth

i am having trouble using django-allauth. I am getting this error. NoReverseMatch at /accounts/login/ Reverse for 'facebook_channel' with arguments '()' and keyword arguments '{}' not found. So far I have followed everything to the letter. here is…
Yousuf Jawwad
  • 3,037
  • 7
  • 33
  • 60
5
votes
1 answer

how can I create a custom clean method for admin site?

I want to populate a field before validation in admin. models.py class Ad(models.Model): ..... manual_code = models.BooleanField("Manual Code", default=False) code = models.TextField("Code") admin.py class…
dado_eyad
  • 601
  • 1
  • 8
  • 28
5
votes
2 answers

Django admin add form ajax call

So I've had success with Django/Ajax/Jquery before but I was wondering if I can do it within the admin console. When the user goes to the "Add New" form, I want them to fill out the ZIP code and based on that zip code, filter the available choices…
Austin
  • 4,296
  • 6
  • 40
  • 52
5
votes
3 answers

Django admin -- restricting access by user

I was wondering if the django admin page can be used for external users. Let's say that I have these models: class Publisher(models.Model): admin_user = models.ForeignKey(Admin.User) .. class Publication(models.Model): publisher =…
Chris
  • 1,475
  • 1
  • 20
  • 35
5
votes
1 answer

Django 1.4 and NoReverseMatch at /admin/ error

I am getting this error when trying to access my admin panel after updating to Django 1.4 - the error is: NoReverseMatch at /admin/ Reverse for 'logout' with arguments '()' and keyword arguments '{}' not found. My best guess is that I'm defining a…
Adam Morris
  • 8,265
  • 12
  • 45
  • 68
4
votes
1 answer

django admin static files stopped working after upgrade to 1.4

Setting up static files in django has always been a nightmare to me. When it comes to dealing with django static content I get depressed and feel dumb and stupid. I never really cared about getting admin media files served as static ones since I…
abolotnov
  • 4,282
  • 9
  • 56
  • 88
4
votes
2 answers

Django Admin: want to prepopulate some fields when I click the add button (+) next to a foreign key

In the Django Admin I want to use data from the current record to populate fields for a foreign key record when I click the add (+) button next to the drop-down list. For example, I am viewing an instance of X which has fields for a, b, and c and a…
jenniwren
  • 341
  • 2
  • 10
4
votes
5 answers

Location of Django Admin media files on Google App Engine

I am running GoogleAppEngine (GAE) 1.6.3 with Python 2.7 and Django 1.3 by having: libraries: - name: django version: "1.3" in my app.yaml. The following should serve the admin media files at url /static/admin: - url: /static/admin static_dir:…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102