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
2 answers

unable to create superuser after syncdb

I am quite new to django and web development. Learning from the "Definitive guide to Django" when creating superuser I get the following error (OS mac10.8.2 & django1.4.3) Would you like to create one now? (yes/no): yes Traceback (most recent call…
Shh
  • 986
  • 9
  • 18
5
votes
1 answer

Django - how to have models for registered site users and non-site users?

I have a Trip model which can have many participants subscribed for a given trip and one owner. The participans are users registered on the site, but I also want to be able to add 'offline' users to the trip, users who do not have accounts on the…
AnarioN
  • 81
  • 4
5
votes
1 answer

Design Issue: To what extent should the Django Admin site be used?

I'm relatively new to Django and especially new to the admin functionality. I've read many articles expounding the benefits of the built-in admin site but I'm not sure to what extent they should be used. Some general questions: What sort of…
WillMartin
  • 53
  • 3
5
votes
3 answers

Django Admin - Bulk editing data?

Are there any admin extensions to let bulk editing data in Django Admin? (ie. Changing the picture fields of all product models at once. Note that this is needed for a users POV so scripting doesn't count.) Any thoughts on subject welcome.
utku_karatas
  • 6,163
  • 4
  • 40
  • 52
5
votes
1 answer

How can i do pagination for M2M Django

class Movie(models.Model): title= models.CharField(max_length=100,) votes=models.IntegerField(null=True) year=models.IntegerField(null=True) aspect_ration=models.CharField(max_length=50,) mpaa=models.CharField(max_length=200,) …
Abhilash Joseph
  • 1,196
  • 1
  • 14
  • 28
5
votes
1 answer

How to add a custom menu item on django-admin-tools dashboard

I want to add a custom link to a ModelList group on django-admin-tools. I tried that but it didn't show the link. What am I missing ? class CustomIndexDashboard(Dashboard): columns = 2 def __init__(self, **kwargs): …
Josir
  • 1,282
  • 22
  • 35
5
votes
2 answers

How to Reset The Admin Password in Django

Possible Duplicate: how to reset django admin password? I have worked for Django project in local server. The current updates need to fix on web server . But couldnt match the admin credentials . So how can reset the admin password...
Abin Abraham
  • 497
  • 2
  • 11
  • 26
5
votes
2 answers

Django admin field validation to return error not raise exception in application

I have a Django model where it has an upload field for images, am trying to validate the image field to check image size before storing and return elegant error message for the user to correct. I tried to use the following code but it did not…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143
5
votes
2 answers

multiple django apps with nginx proxy_pass and rewrite

I have a single django-admin app named myapp that I would like to deploy multiple instances of on different physical boxes, one per customer. However, I'd like them all to be accessed from a similar domain, mydomain.com/customer1/myapp. I've…
Justin
  • 42,475
  • 9
  • 93
  • 111
5
votes
2 answers

adding a `next` url to django admin change link

In my django project I create a link to the admin interface so that users can edit the object: modify object this works fine, but after the user finished editing the object in the admin interface,…
memyself
  • 11,907
  • 14
  • 61
  • 102
5
votes
1 answer

What's the straightforward way to implement one to many editing in list_editable in django admin?

Given the following models: class Store(models.Model): name = models.CharField(max_length=150) class ItemGroup(models.Model): group = models.CharField(max_length=100) code = models.CharField(max_length=20) class…
Nate Pinchot
  • 3,288
  • 24
  • 35
5
votes
2 answers

How to manage many to one relationship in Django

I am trying to make a many to one relationship and want to be able to control it (add -remove etc) via the admin panel. So this is my model.py: from django.db import models class Office(models.Model): name =…
Jason
5
votes
1 answer

Django auth - Adding user fields - displaying in admin

I'm a complete n00b to django & python. I come from a PHP background so you'll have to accept my apologies for that :p. I'm trying to use the admin panel functionality in django to show different options to different people. The system should allow…
5
votes
1 answer

Nginx/Django Admin POST https only

I've got an Nginx/Gunicorn/Django server deployed on a Centos 6 machine with only the SSL port (443) visible to the outside world. So unless the server is called with the https://, you won't get any response. If you call it with an…
brewerja
  • 83
  • 5
5
votes
1 answer

Django ModelAdmin response_change method

I've found that the response_change method on admin.ModelAdmin to be very useful -- yet I don't believe it is documented in the Django docs at https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#modeladmin-methods. Is the source code the only…
Erik
  • 7,479
  • 8
  • 62
  • 99