django-admin

DJANGO Admin Customization

I have a webapp with a couple of models. One of these is Videos, which has a ManyToMany relationship with VidParts. Now, I need to have an Admin form for these that can accept XML, since it would be very inefficient to add these one by one. My question is, is it possible to add a AddView to the admin without a corresponding model to go w...

Using Javascript to change all textareas in an html page.

I am creating a project in Django, and I am using the Django Admin pages along with TinyMCE. But I would like to be able to toggle TinyMCE on and off like in this example: http://tinymce.moxiecode.com/examples/example_01.php but since the admin page is generated automatically I imagine I need to overide the base_site.html template whic...

Django admin editing fields in a tabular fashion

I have a model with lots of say CharField fields, that I would like to edit in the admin. The problem is that each field takes up one line. How should I make them display like this (horizontally): (they are not foreign keys) ...

Reusing Django Changelist Outside of Admin Site

The Django changelist table is really cool - searchable, filterable, multi-select actions etc. I'm building a custom backend for an app and I keep realizing: this is exactly what I need, I should re-use it. Has anyone had any experience using the change list outside of Django's admin app? What I've arrived at currently is something li...

app that customized django-admin to its "Max"

I want to modify the django-admin app to see how far it can go :) I have found some interesting projects (django grappelli) mostly focused on skinning, more interesing django-admin apps out there? Looking for students project :) ideas are welcome too :) ...

Adding a button in django !

I wanted to add buttons or a url adjacent to "ADD CUSTOMER" button as shown in the image. Please guide me regarding the same.Where should i be making the necessary changes ? please find the image here >> http://img138.imageshack.us/img138/170/query.png Thank you ...

Django admin checkbox

What I'm aiming for is a checkbox option in the list_display of the admin which will accept only selected checkbox (essentially a radiobox) and deselct the others. The model field is not a ForeignKey. Alternatively is there a way to do this in the model object list as one of the fields? The example is of an image bank from which the c...

django, admin template error Caught an exception while rendering: 'NoneType' object has no attribute 'label'

good day guys! in project, among others, have models: class Category(models.Model): name = models.CharField(max_length = 50, blank = False, null = False) def __unicode__(self): return "Category %s" % self.name class Meta: db_table = "categories" managed = False class Site(models.Model): user...

Django admin - Restrict user view by permission

Hello, I'm starting to learn Django and I have a question. Is there any way to restric views in the administration interface? I see there are "change, "add" and "delete" permissions, but I wanted to restrict views also. For example: Two users, "User 1" is superuser and "User 2" is in the editor group. User 1 has access to everything, ...

Better way to represent Many to many relationship in django admin

I have a unique problem the way it should be handled in django admin. I have following models structure... class Product(models.Model): name = models.CharField(max_length = 100) base_price = models.DecimalField(max_digits = 5, decimal_places = 2) def __unicode__(self): return self.name class Country(models.Mo...

customize the django admin panel ?

I want to change the django bydefault admin panel title bar where wirte the django administration. Actually I want to replace the django administration with the my site name. ...

Django admin App

Hi I am building a app. The app will build a Poll OR a Quiz. So my models will have a type field(Poll, Quiz) Now i would like to display the 2 "Types" in the admin App list. But i dont what to create two apps Poll and Quiz. Is there a way, to display the 2 options in the list and then when you click on lets say Poll, the type field is...

Tracking changes to Django Model instances

When you create or modify an object instance in Django's admin, a changelog entry is created. This is really nice for fairly obvious reasons. However my model's instances created by a normal user outside of the admin interface. No changelog is recorded to note its creation (not a huge issue) but I would like to track edits the user make...

Is Django's admin panel intended to just be temporary scaffolding?

I've been successfully using Django's admin panel for internal users for a while but I recently hit a brick wall while trying to customize it and I'm curious if I'm spending too much time on it. So, my question is: Is Django's admin panel intended to just be temporary scaffolding, that is, to be used only during the initial development ...

Django - Two templates inheriting same parent, but nesting one another too?

I'm having some trouble with template inheritance. What I'm trying to achieve is a threaded comment system (using Django's comment framework). This requires comments who's DOM structure virtually identical to be nested. Here's the general layout of the issue: B and C inherit A C is nested inside of B (with include) Template D includes ...

Django Admin: Path to file uploaded is wrong. Missing "static"?

Hi, I have a simple model and the default admin in django. Everything works as expected and I can upload files. I've read the django docs regarding upload paths. My MEDIA URL and MEDIA ROOT are set and the uploading works. Lets say I login into the default admin, place an order with an uploaded jpg, the I go to edit the order and I see ...

remove default apps from django-admin

good day! by default, in django-admin, there is Users, Groups, ans Sites apps. How can i remove Groups and Sites? i was tried to remove admin.autodiscover() from root urls. Then, when i added smth like admin.site.register(User, UserAdmin) somewhere in my app models i got AlreadyRegistered exception (this is fairly right - models users ...

Django default admin panel security

Hello I am curious about the security of default admin panel of Django. For a live Django website, I will be using Django admin for all management and it feels like simply asking username and password at the mysite.com/admin/ url is kinda weak against brute force attemps (or maybe dictionary based attempts. I have very little knowledge ...

Adding a link on the Django Admin frontpage

I've created a custom view to make some data entry easier and I want to add a link to it on the front page of the Django admin. Is there an easy way to do this? I suppose I could override the default admin template, but before I do that I just want to make sure there isn't something simpler I could do. ...

how to import in csv

Hi, I m having a porblem.I m exporting data to an excel in my django admin.The functionality is fine until some special characters are not there. I have a text " ACTPrinter ★ Print to iPhone " when i try to export this to an csv file , it gives an error UnicodeEncodeError at /admin/core/wappubfilter/ 'ascii' codec can't encode ...