django-admin-tools

How to Change the Django 3.1.3 Admin View

房东的猫 提交于 2021-01-07 06:37:50
问题 I am currently working on the Django==3.1.3 version but would like to change the interface like that of the django==3.1 Admin view. The current view looks something like this: I would like to remove the red part and keep the remaining part of the page. 来源: https://stackoverflow.com/questions/65020639/how-to-change-the-django-3-1-3-admin-view

How to Change the Django 3.1.3 Admin View

三世轮回 提交于 2021-01-07 06:36:08
问题 I am currently working on the Django==3.1.3 version but would like to change the interface like that of the django==3.1 Admin view. The current view looks something like this: I would like to remove the red part and keep the remaining part of the page. 来源: https://stackoverflow.com/questions/65020639/how-to-change-the-django-3-1-3-admin-view

Run django application without django.contrib.admin

拟墨画扇 提交于 2020-12-05 04:54:32
问题 I am trying to run my Django Application without Django admin panel because I don't need it right now but getting an exception value: Put 'django.contrib.admin' in your INSTALLED_APPS setting in order to use the admin application. Could I ran my application without django.contrib.admin ? Even if go my localhost:8000 it is showing you need to add django.contrib.admin in your installed_apps? 回答1: django.contrib.admin is simply a Django app. Remove or comment django.contrib.admin from INSTALLED

Change locale for django-admin-tools

我们两清 提交于 2019-12-21 04:51:33
问题 In my settings.py file I have: LANGUAGE_CODE = 'ru-RU' also, I have installed and working django-admin-tools. But admin language still english. What I'm doing wrong? PS. $ cat settings.py | grep USE | grep -v USER USE_I18N = True USE_L10N = True USE_TZ = True 回答1: You need to set the language specifically for the admin app. Since django does not provide a language drop down as part of the default login, you have a few options: Login to your normal (non admin view), with superuser/staff

Change locale for django-admin-tools

送分小仙女□ 提交于 2019-12-21 04:51:10
问题 In my settings.py file I have: LANGUAGE_CODE = 'ru-RU' also, I have installed and working django-admin-tools. But admin language still english. What I'm doing wrong? PS. $ cat settings.py | grep USE | grep -v USER USE_I18N = True USE_L10N = True USE_TZ = True 回答1: You need to set the language specifically for the admin app. Since django does not provide a language drop down as part of the default login, you have a few options: Login to your normal (non admin view), with superuser/staff

Auto increament the invoice number in django backend for new invoice

主宰稳场 提交于 2019-12-21 04:39:29
问题 I want to auto increament the invoice number which is 3 digits char and 4 digits number. class Invoice: invoice_no = models.CharField(max_length=500, null=True, blank=True, validators=[RegexValidator(regex='^[a-zA-Z0-9]*$',message='Invoice must be Alphanumeric',code='invalid_invoice number'),]) I register this model in backend. But now when i click on create invoice in admin the invoice should be auto filled. When i again click on create new invoice in admin, the invoice_number should be

'django.template.context_processors.request' issue with django-tables2 and django-admin-tools

你离开我真会死。 提交于 2019-12-12 17:17:23
问题 I'm having an issue when trying to render a PDF through xhtml2pdf in Django(1.10.4) when using django-admin-tools(0.8.0) & django-tables2(1.5) together. I've done enough reading to understand the basis of what's going on but have not idea how to fix it. I think it's got something to do with the django-admin-tools custom loaders. Link to the exception I'm getting from django-tables. This SO question led me to asking a question. The gist of what I'm trying to do is create a custom Admin 'action

Change locale for django-admin-tools

℡╲_俬逩灬. 提交于 2019-12-03 15:08:44
In my settings.py file I have: LANGUAGE_CODE = 'ru-RU' also, I have installed and working django-admin-tools. But admin language still english. What I'm doing wrong? PS. $ cat settings.py | grep USE | grep -v USER USE_I18N = True USE_L10N = True USE_TZ = True You need to set the language specifically for the admin app. Since django does not provide a language drop down as part of the default login, you have a few options: Login to your normal (non admin view), with superuser/staff credentials and the correct language, then shift over to the admin URL. Update the admin templates and add a

JsonEditor integration with Django Admin

女生的网名这么多〃 提交于 2019-11-30 07:29:17
I am working on integrating JSONEditor into the Django admin. There is one field in my model that uses the Postgres JSON and the Tree editor in this library is perfect. models.py class Executable(models.Model): """ Simplified model for sake of the question.""" recipe = JSONField(null=True, blank=True) I've made decent progress (I think) integrating the JSONEditor library within the appropriate create/edit screen in the Django Admin. The data is displayed correctly upon loading but for some reason when I make edits within the JSONEditorWidget the changes are not saved. I'm sure there is some

JsonEditor integration with Django Admin

◇◆丶佛笑我妖孽 提交于 2019-11-29 10:31:52
问题 I am working on integrating JSONEditor into the Django admin. There is one field in my model that uses the Postgres JSON and the Tree editor in this library is perfect. models.py class Executable(models.Model): """ Simplified model for sake of the question.""" recipe = JSONField(null=True, blank=True) I've made decent progress (I think) integrating the JSONEditor library within the appropriate create/edit screen in the Django Admin. The data is displayed correctly upon loading but for some