Questions tagged [django-grappelli]

django-grappelli is a grid-based alternative/extension to the Django administration interface

django-grappelli is a grid-based alternative/extension to the Django administration interface.

154 questions
1
vote
1 answer

Django FileBrowser 400 Error

I'm getting a 400 error when trying to access the /admin/filebrowser/browse/ page. I followed the instructions as per https://django-filebrowser.readthedocs.org/en/3.5.2/quickstart.html and have my URLs and installed apps configured correctly. What…
1
vote
2 answers

Custom admin dashboard displaying specific model instances

I'm creating a website with Django (+ django-grappelli + mezzanine) and I would like to customize my Admin panel to add a new dashboard displaying specific model instances. Let's say that I have a model : class Thing(models.Model): published =…
Jerome
  • 1,225
  • 2
  • 12
  • 23
1
vote
1 answer

Grappelli autocomplete fields only work for staff?

I'm building a site using Django and Grappelli. Due to the nature of the site I've found myself building two "admin" sites - one for true administrators and another cut down site for content creators. After some investigation, I was hoping to use…
user764357
1
vote
1 answer

ImproperlyConfigured at admin

I've seen this question here and I was trying the differents solutions. I mean the one's that is refers to GRAPPELLI because I think the error is around there. I'm getting this error: Module "django.contrib.staticfiles.storage" does not define a…
napstercake
  • 1,815
  • 6
  • 32
  • 57
1
vote
1 answer

Show image thumbnail in django admin

I'm trying to display image thumbnail in my admin but I get but not the image. My model: class RentPhoto(models.Model): ''' Photos for RentItem Only one photo…
oleg.foreigner
  • 993
  • 2
  • 13
  • 28
1
vote
2 answers

Django Grappelli Rearrange Inlines id override

According to the docs: http://django-grappelli.readthedocs.org/en/latest/customization.html#rearrange-inlines The two classes for the placeholder are important. First, you need a class placeholder. The second class has to match the id of the…
1
vote
1 answer

Django one-to-many, add fields dynamically in Admin

I have the following code: class Item(models.Model): name = models.CharField(max_length=100) keywords = models.CharField(max_length=255) type = models.ForeignKey(Type) class Meta: abstract = True class…
JOSEFtw
  • 9,781
  • 9
  • 49
  • 67
1
vote
0 answers

django admin foreign key default value inline

I'm converting an ancient Client/Server app (Delphi) into a Django app for a small brick and morter bookstore (wife's). Since most functions are admin, I'm using the Django admin interface with grappelli for some easier lookups. I have 3 models:…
1
vote
1 answer

Error with django-grappelli 2.4.8

I have added grappelli to my project and I get the following javascript error in the console when opening list view in the admin interface I work with django 1.5.5 and grappelli 2.4.8 TypeError: 'undefined' is not a function (evaluating '$("tr…
Yoav Schwartz
  • 2,017
  • 2
  • 23
  • 43
1
vote
1 answer

Page not found grappelli-django install

I'm trying to install djanjo-grappeli package. My setting : INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', …
rayashi
  • 1,721
  • 3
  • 20
  • 28
1
vote
0 answers

Django-Grappelli import error "No module named urls"

I'm trying to give Grappelli a spin but I can't seem to get past the very basic "Getting started" tutorial on their site. Note: I'm using Django 1.6.0. I've added 'grappelli' on my settings.py and correclty set-up the static files stuff. On my urls…
alemangui
  • 3,571
  • 22
  • 33
1
vote
0 answers

TinyMCE installation gives warning

I did pip install django-tinymce and it gives this warning Downloading django-tinymce-1.5.1.tar.gz (2.4MB): 2.4MB downloaded Running setup.py egg_info for package django-tinymce warning: no previously-included files found matching…
user2539745
  • 995
  • 2
  • 15
  • 24
1
vote
1 answer

Are Sortable inlines on Grappelli applicable for M2M fields?

I can't seem to get the sortable inlines feature (in grappelli) work for me. I'm starting to wonder if the feature is not supported for ManyToManyFields or if I am not getting it right. Also, is there a sample code out there so I can see and…
vkb001
  • 75
  • 1
  • 9
1
vote
2 answers

Django-grappelli add button visible in inline when add permissions are False

I'm not sure if its something I'm doing or if its a bug, but I have some strange behaviour with the add button in a TabularInline (django admin using grappelli). My inline class is: class FieldInline(admin.TabularInline): model = models.Field …
aquavitae
  • 17,414
  • 11
  • 63
  • 106
1
vote
1 answer

Grappelli - how to change text field size

What is the best way to change text field size in Grappelli? Standard text field with vTextField class is 758px width. I looks strange when used for phone number field. I have figured out that one possibility is inject style attribute into form…
mrok
  • 2,680
  • 3
  • 27
  • 46