Re: Django v3.2 broken admin interface due to malicious JSON value

2023-03-09 Thread 'Johannes Filter' via Django users
n 8/03/2023 7:49 am, hi via Django users wrote: > > Hello everybody, > > I’ve used a fuzzer on my Django v3.2 project that resulted in a broken > admin interface. I’m not sure whether this is a bug or a rough edge case. > > I’m using Python 3.9.13 with Django 3.2.18 with Post

Django v3.2 broken admin interface due to malicious JSON value

2023-03-07 Thread hi via Django users
Hello everybody, I’ve used a fuzzer on my Django v3.2 project that resulted in a broken admin interface. I’m not sure whether this is a bug or a rough edge case. I’m using Python 3.9.13 with Django 3.2.18 with Postgres. I have a Model with a JSONField and also added the model to my admin view

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
coolguy: I tried it without the quotes. Maybe that was the issue. Dana subota, 12. rujna 2020. u 20:33:52 UTC+2 korisnik coolguy napisao je: > Keep this handy as well... > > https://docs.djangoproject.com/en/3.1/ref/migration-operations/#addfield > > On Saturday, September 12, 2020 at 1:43:37

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Keep this handy as well... https://docs.djangoproject.com/en/3.1/ref/migration-operations/#addfield On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell > and if I

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Interesting... did you try the email with quotes or without it On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell > and if I input a default value - let's say

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
A question to coolguy: *What should I have done if I selected option 1?* I get the Python shell and if I input a default value - let's say "t...@test.com", what else do I need to do? I tried to just provide the default value, but it wouldn't accept it, complaining that it was invalid Python

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
yes it works after deletion because old records get deleted. but better approach is to do changes in migration.py files On Sat, Sep 12, 2020 at 8:14 PM Mislav Jurić wrote: > Hey Danish, > > I was able to resolve the error by deleting the *db.sqlite3* file from my > project root directory and

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
just FYI... You didn't have to delete the db.sqllite3 file rather would have followed on-screen direction and provided a default value to persist in the existing records in your database. Later you could have edited the info through your program and make correction. This is pretty normal

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey Danish, I was able to resolve the error by deleting the *db.sqlite3* file from my project root directory and all of the *migrations* folders from all of my apps. Thank you for responding. Best, Mislav Dana subota, 12. rujna 2020. u 14:56:13 UTC+2 korisnik mailto...@gmail.com napisao

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey Danish, I was able to resolve the error by deleting the *db.sqlite3* file from my project root directory and all of the *migration* folders from all of my apps. Thank you for responding. Best, Mislav Dana subota, 12. rujna 2020. u 14:56:13 UTC+2 korisnik mailto...@gmail.com napisao je:

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
you need to give default value in email. seems few records are already exist. else delete sqllite file and try again. On Sat, Sep 12, 2020 at 6:22 PM Mislav Jurić wrote: > Hey guys, > > I added an EmailField > to > some of

I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey guys, I added an EmailField to some of my already existing models. When I tried to run: *python manage.py makemigrations* I got the following prompt: *You are trying to add a non-nullable field 'email' to employee

Re: Using Django Admin as definitive admin interface

2019-09-26 Thread Deep Sukhwani
I have read about places where Django Admin interface is used as primary admin interface by tech and non-tech departments to manage a project. On the other hand, I have also seen workplaces where admin is as much hidden from non-tech / routine project management as much possible and instead

Using Django Admin as definitive admin interface

2019-09-26 Thread Edson Kan Ishigami
Hi all, I'm a newbie in the Django world. And I have a question to ask for you: Is it a good practice to use the Django Admin as a definitive admin interface for a project in production? Or it is just used on the development stage? If it isn't a good practice, there are some tips to create

Re: Theme for django admin interface.

2019-05-28 Thread Mayank Priy
ay too outdated and python2.7 is also retiring, I want to use > the latest version of django and python. But as per the requirements of my > company, there has to be some robust theme for the admin interface. > > Can anyone suggest some good theme? > > -- > Regards, > Akshay

Theme for django admin interface.

2019-05-28 Thread Akshay Jain
the requirements of my company, there has to be some robust theme for the admin interface. Can anyone suggest some good theme? -- Regards, Akshay Jain -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Changing Admin Interface in Django

2019-04-13 Thread Derek
You can look at projects like: https://github.com/douglasmiranda/django-admin-bootstrap or https://pypi.org/project/django-fluent-dashboard/ or https://github.com/viewflow/django-material for examples of how you might go about doing this. On Thursday, 11 April 2019 18:58:30 UTC+2, Aayush

Re: Changing Admin Interface in Django

2019-04-11 Thread Stephen L
You can look at JET. It's not like that, but it does look much better than Django's out of box admin interface. https://github.com/geex-arts/django-jet On Thu, Apr 11, 2019 at 11:58 AM Aayush Bhattarai wrote: > *Hey Buddy, Can I change my Django Interface. I don't like such interface >

Re: Changing Admin Interface in Django

2019-04-11 Thread Chetan Ganji
Django CMS has a different admin site i.e. Layout and CSS is different. There are many admin site available from third party. Maybe you might like some of them. https://djangopackages.org/grids/g/admin-styling/ Other way to do is, list all the templates in the admin site app. Find out their css

Re: Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
Yes I want to change everything. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Changing Admin Interface in Django

2019-04-11 Thread Gerardo Palazuelos Guerrero
hi, You said you want to change the standard Admin screens. But you added an screenshot of a bootstrap template. So I assume you are interested on using an Admin template. If that's the case, what you can do is to implement the template: adding files as static files, etc. regards, -- Gerardo

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
If you want to alter how the admin site looks, then that link is quite relevant. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11, 2019 at 7:10

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
What do you want to do? Saying you want to "change" the admin could mean anything. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11, 2019 at

Re: Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
Yes I read but not related to my questions. On Thursday, 11 April 2019 09:58:30 UTC-7, Aayush Bhattarai wrote: > > *Hey Buddy, Can I change my Django Interface. I don't like such interface > and I want to change it. * > > [image: Capture.PNG] > *I want to change like this.* > *Thanks For Your

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
I highly recommend the (excellent) documentation. If you have done the official tutorial, then check out the link below and take it from there. https://docs.djangoproject.com/en/2.2/intro/tutorial07/ Kind regards, Sithu *Sent with Shift

Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
*Hey Buddy, Can I change my Django Interface. I don't like such interface and I want to change it. * [image: Capture.PNG] *I want to change like this.* *Thanks For Your Support* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Enterprise web application with admin interface

2018-12-19 Thread Nebojsa Hajdukovic
ond that - it is completely doable - I have created a > corresponding admin interface that is used as a order handling system. It > is incredibly expandable and you can create your own views / layouts and so > on. > > Regards, > > Andréas > > > Den ons 19 dec. 2018 kl

Re: Enterprise web application with admin interface

2018-12-19 Thread Andréas Kühne
I would second that - it is completely doable - I have created a corresponding admin interface that is used as a order handling system. It is incredibly expandable and you can create your own views / layouts and so on. Regards, Andréas Den ons 19 dec. 2018 kl 12:47 skrev Derek : > Its b

Re: Enterprise web application with admin interface

2018-12-19 Thread Derek
er 2018 21:36:31 UTC+2, Mario Daniel Carugno wrote: > > Hi everyone ! > > My question is simple: > > *Is possible (or good) to build an enterprise web application using only >> the admin interface ?* > > > I've heard that the admin interface is very customizable/ex

Re: Enterprise web application with admin interface

2018-12-18 Thread Sidnei Pereira
on is simple: > > *Is possible (or good) to build an enterprise web application using only >> the admin interface ?* > > > I've heard that the admin interface is very customizable/extensible, so it > sounds like a great idea. > > Thanks ! > > -- You received this message

Enterprise web application with admin interface

2018-12-17 Thread Mario Daniel Carugno
Hi everyone ! My question is simple: *Is possible (or good) to build an enterprise web application using only > the admin interface ?* I've heard that the admin interface is very customizable/extensible, so it sounds like a great idea. Thanks ! -- You received this message because

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-09 Thread carlos
dget code that will persist between builds? > > On Monday, October 8, 2018 at 7:25:43 PM UTC-7, Aileen wrote: >> >> Hello, >> >> After upgrading Django from 2.0.8 to 2.1.2, the admin interface no longer >> seems to work due to some problems with our widgets.

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread Aileen
Hello, > > After upgrading Django from 2.0.8 to 2.1.2, the admin interface no longer > seems to work due to some problems with our widgets. This is the error that > I get: > > [image: image.png] > > And here is the full call stack: > > Environment: > > > Reques

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread carlos
yes verison 2.1 remove see this link https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-2-1 you need update you code in widget part. On Mon, Oct 8, 2018 at 8:25 PM Aileen wrote: > Hello, > > After upgrading Django from 2.0.8 to 2.1.2, the admin

Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread Aileen
Hello, After upgrading Django from 2.0.8 to 2.1.2, the admin interface no longer seems to work due to some problems with our widgets. This is the error that I get: [image: image.png] And here is the full call stack: Environment: Request Method: GET Request URL: http://localhost:8000/admin

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-10 Thread germano carella
hese are simple models, I need them only for educational purpose. class Book(models.Model):     title=models.CharField(max_length=250)     chapters = models.ManyToManyField('Chapters') class Chapters(models.Model):     title_of_chapter = models.CharField(max_length=250)     text=m

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread germano carella
Hi Julio, Thanks, now is clear. Ok, I created models correctly and createa book in admin interface. Now I can create chapters to add this book. Now I want to learn how to create an interface that allows an user to add a new book, click on next button and add chapters to this book

Re: New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread Julio Biason
title_of_chapter = models.CharField(max_length=250) > text=models.TextField() > > Now, in admin interface I can add chapters on a new book and it works fine. > So, whdn I try to add a second book I can see chapters of book I added > previously. > > When I add a new book I want

New member: Germano Carella. I need help with django, limit_choices_to and admin interface

2018-08-09 Thread Germano Carella
=250) chapters = models.ManyToManyField('Chapters') class Chapters(models.Model): title_of_chapter = models.CharField(max_length=250) text=models.TextField() Now, in admin interface I can add chapters on a new book and it works fine. So, whdn I try to add a second book I can see

Re: CSRF token missing or incorrect when uploading large file through admin interface

2017-04-28 Thread ludovic coues
Related to your problem, I wonder if it's the same instance of django handling serving the form and handling saving the file. Different instance of django might expect different token. Less related to your issue, I suggest that you have a look at butler, an open source project from itch.io. For

CSRF token missing or incorrect when uploading large file through admin interface

2017-04-27 Thread Duncan Mortimer
Hi, I've developed a software download site using Django 1.11 running on mod_wsgi. We are using the admin site to upload new software releases that are then indexed for download at a later date via Apache (not involving Django). Files are uploaded via the TemporaryFileHandler and then a post

Re: Can't log in to admin interface:

2017-03-15 Thread Melvyn Sopacua
On Wednesday 15 March 2017 14:27:55 C.J.S. Hayward wrote: > Django has claimed incorrect login details for every > administrative set of credentials I've offered. (I've also used > python manage.py shell to confirm that the username for the superuser > is what I thought it was: admin. Any chance

Can't log in to admin interface:

2017-03-15 Thread C.J.S. Hayward
owever, after that was addressed, there was another other issue that was uncovered, issues that also related to the admin interface but don't seem to be immediately connected to the initially reported issue. Specifically: While I can submit the login form, I don't seem to really seem to be able

Add new record in filtered list in the admin interface

2017-02-26 Thread Roberto Russi
In the Admin interface when I add a new record to a filtered list and submits it, I come back in a no longer filtered list unlike when I edit a record. How can I fix this problem? -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: django admin interface

2016-11-18 Thread Derek
Not a direct answer, but its much easier to use the in-built options to extend admin actions: https://docs.djangoproject.com/en/1.10/ref/contrib/admin/actions/ Otherwise you will probably need to extend/override the admin template to add the code for your button; e.g. see:

django admin interface

2016-11-16 Thread Sandeep Jalagam
how can i add custom action button beside add button? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to

Finally stable release of Django JET - responsive and fresh admin interface

2016-08-30 Thread Denis Kildishev
Finally stable release of Django JET - responsive and fresh admin interface http://jet.geex-arts.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Enabling admin interface

2016-06-01 Thread C.J.S. Hayward
tures or conceivably initialize a database setting rather than be dynamically queried per page load). I tried to log in to the admin interface, hoping to find something I could configure there, but got a 404 with or without a trailing slash. I went to make necessary uncommenting in the base urls.

Enabling admin interface

2016-06-01 Thread C.J.S. Hayward
the value there did not cause new pages to display with a custom title (as it probably shouldn't; the filename suggest it is to initially populate text fixtures or conceivably initialize a database setting rather than be dynamically queried per page load). I tried to log in to the admin inter

Display image instead of text in related-widget-wrapper of FK picker in admin interface.

2016-04-29 Thread Patrik Mjartan
How would one go about changing this: into something where instead of 1, 2 there are pictures that correspond to those objects. The class itself is very simple: Note that I

Re: Fixed column width in admin interface?

2015-11-22 Thread Jorge Fernandez-de-Cossio-Diaz
Adding the `list_display` method worked. With Polonkai's solution, just for curiosity, where do I have to "apply the CSS"? I am a newbie, please give the details. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Fixed column width in admin interface?

2015-11-14 Thread Gergely Polonkai
) > max_length: > return "%s..." % obj.text_field[:max_length] > return obj.text_field > > Cheers, > Simon > > Le samedi 14 novembre 2015 10:49:09 UTC-5, Jorge Fernandez-de-Cossio-Diaz > a écrit : >> >> A column of my Django admin

Re: Fixed column width in admin interface?

2015-11-14 Thread Simon Charette
crit : > > A column of my Django admin interface sometimes has too much text. When > this happens, I would like to replace the last part of the text with "...", > so that the column width doesn't gets past a maximum character count. How > can I do this? > -- You r

Fixed column width in admin interface?

2015-11-14 Thread Jorge Fernandez-de-Cossio-Diaz
A column of my Django admin interface sometimes has too much text. When this happens, I would like to replace the last part of the text with "...", so that the column width doesn't gets past a maximum character count. How can I do this? -- You received this message because you are

Trouble with Intermediate Page for admin Interface

2015-11-06 Thread Jonny Mcgow
So I’ve been working for a couple days now on setting up a pretty basic bulk edit action for my server that consists of selecting all of the objects you want to change a designated field on, being redirected to an intermediate page, entering a new integer value for the designated field, and

Re: Django JET - new fresh looking Django Admin interface with improved functionality

2015-10-26 Thread Ezequiel Bertti
Is pretty and modern. Is not working well in smartphone. But I still prefer django-suit because have more functionality and tools to make a great admin. Mainly for the possibility of adding includes html and row colors. Take a look: http://djangosuit.com/ On Sat, Oct 24, 2015 at 9:01 AM, Денис

Django JET - new fresh looking Django Admin interface with improved functionality

2015-10-24 Thread Денис Кильдишев
What do you think of it? http://jet.geex-arts.com/ https://github.com/geex-arts/django-jet -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: design decision tree survey using django admin interface

2015-07-17 Thread ananya choudhury
ngo-mptt/ >>> >>> I know that because I did a survey app years ago, but unfortunately it >>> is not free and it is in spanish too. >>> >>> >>> >>> 2015-07-14 17:32 GMT-06:00 anc <ana...@vt.edu>: >>> >>>>

Re: design decision tree survey using django admin interface

2015-07-17 Thread Derek
na...@vt.edu>: >> >>> I need to build a survey tool which provides an interface to the survey >>> administrator to add/edit/delete questions. I understand we can do it >>> through the admin interface. But can we modify the admin interface to >>> provide branch

Re: design decision tree survey using django admin interface

2015-07-16 Thread dc
interface to the survey >> administrator to add/edit/delete questions. I understand we can do it >> through the admin interface. But can we modify the admin interface to >> provide branched/skip logic feature so that the administrator can design a >> survey where the next ques

Re: design decision tree survey using django admin interface

2015-07-14 Thread Luis Zárate
and it is in spanish too. 2015-07-14 17:32 GMT-06:00 anc <ana...@vt.edu>: > I need to build a survey tool which provides an interface to the survey > administrator to add/edit/delete questions. I understand we can do it > through the admin interface. But can we modify the admin interfa

design decision tree survey using django admin interface

2015-07-14 Thread anc
I need to build a survey tool which provides an interface to the survey administrator to add/edit/delete questions. I understand we can do it through the admin interface. But can we modify the admin interface to provide branched/skip logic feature so that the administrator can design a survey

Re: Using proxy kind of Table in Admin Interface

2015-03-04 Thread luis zarate
hat I can assign > each user account/group a different Model Manager using the same table in > the Django admin interface? > > After doing some reading the closest that comes to this is the Proxy Model > but I tried adding the proxy model manually into the django admin and got > a

Re: Using proxy kind of Table in Admin Interface

2015-03-03 Thread Rootz
oach > won't work until this is fixed. > > Simon > > Le lundi 2 mars 2015 11:16:36 UTC-5, Rootz a écrit : >> >> Question. >> How would one go about designing the django table(s) so that I can assign >> each user account/group a different Model Manager using the same t

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Simon Charette
stion. > How would one go about designing the django table(s) so that I can assign > each user account/group a different Model Manager using the same table in > the Django admin interface? > > After doing some reading the closest that comes to this is the Proxy Model > but

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
odelAdmin) > admin.site.register(MainModelProxy, MainModelProxyAdmin) > > > On Monday, 2 March 2015 18:16:36 UTC+2, Rootz wrote: >> >> Question. >> How would one go about designing the django table(s) so that I can assign >> each user account/group a dif

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Derek
min) admin.site.register(MainModelProxy, MainModelProxyAdmin) On Monday, 2 March 2015 18:16:36 UTC+2, Rootz wrote: > > Question. > How would one go about designing the django table(s) so that I can assign > each user account/group a different Model Manager using the same table in

Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy

Using proxy kind of Table in Admin Interface

2015-03-01 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy

Re: Dictionary in admin interface

2015-01-27 Thread Collin Anderson
nary inline over the admin interface. These are > my models. What I got working is of course a separated management of > request and dictionary. But I want to add key value pairs in the request > admin interface with a TabularInline. Do I have to skip the dictionary in > some way or wha

Dictionary in admin interface

2015-01-23 Thread Sven Mäurer
I want to manage a dictionary inline over the admin interface. These are my models. What I got working is of course a separated management of request and dictionary. But I want to add key value pairs in the request admin interface with a TabularInline. Do I have to skip the dictionary in some

Re: Stopping request when exception occurs (admin interface)

2014-11-26 Thread Collin Anderson
Hi, Peaking at the code... https://github.com/django/django/blob/cc870b8ef5e3464c6f051e3ef0a25dfc4b597452/django/contrib/admin/options.py#L1430 It looks like it would also log a successful change in the history. Is it possible to detect the change during the validation? Looks like you could

Stopping request when exception occurs (admin interface)

2014-11-26 Thread ian . k
Hi there, Hopefully an easy question. I've overridden save_model() in my admin page, and I'm wrapping my obj.save() call in a try/catch so that I can catch a RecordModifiedError. def save_model(self, request, obj, form, change): from concurrency.exceptions import

Re: Starting a procedure when opening a model in the admin interface

2014-10-23 Thread Collin Anderson
Hi Vittorio, I've done something like this before in the get_queryset() method of ModelAdmin. Thanks, Collin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Starting a procedure when opening a model in the admin interface

2014-10-23 Thread Victor
I use Django 1.7, admin interface, and PostgreSQL. I have, among other things, the following model: ### models.py class Patients(models.Model): surname = models.CharField(max_length=60, db_index=True) name = models.CharField(max_length=60, db_index=True) address = models.CharField

Re: django admin interface - how to enable adding new entries to foreign key-linked dropdown menu?

2014-10-09 Thread Russell Keith-Magee
to have to drop out and go to the Exercise table > view to add a new exercise to the list. Thanks in advance! > > Elli > > > *Note: This was cross-posted to StackOverflow > <http://stackoverflow.com/questions/26227062/insert-to-foreign-key-linked-table-in-django-admin-interface&g

django admin interface - how to enable adding new entries to foreign key-linked dropdown menu?

2014-10-07 Thread Eliezer Kanal
the list. Thanks in advance! Elli *Note: This was cross-posted to StackOverflow <http://stackoverflow.com/questions/26227062/insert-to-foreign-key-linked-table-in-django-admin-interface>, with very few views there. I thought I'd try here as well.* -- You received this message beca

Re: unicode problems in admin interface

2014-09-22 Thread Jaap van Wingerde
Op 2014-09-18T13:41:53 UTC schreef Jaap van Wingerde <mailingli...@vanwingerde.nl> in het bericht , ID: <20140918134153.390fc...@jaap.custard.shrl.nl> het interface>volgende. > I have suddenly unicode problems with de admin interface: > > "DjangoUnicodeDecodeError

Re: unicode problems in admin interface

2014-09-20 Thread Jaap van Wingerde
Op 2014-09-19T15:58:59 UTC schreef Collin Anderson in het bericht , ID: interface> het volgende. > Are you uploading a file using apache? It could be > the /etc/apache2/envvars issue. No, it is an issue with

Re: unicode problems in admin interface

2014-09-19 Thread Collin Anderson
Are you uploading a file using apache? It could be the /etc/apache2/envvars issue. Are you ever using string formatting like "something %s something" % something ? If so, use unicode_literals or change that to a unicode string: u"something %s something" % something -- You received this

unicode problems in admin interface

2014-09-18 Thread Jaap van Wingerde
I have suddenly unicode problems with de admin interface: "DjangoUnicodeDecodeError at /admin/art/photographextra/ 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128). You passed in () ... Unicode error hint The string that could not be encoded/decoded was: l&g

Re: Install Django Apps via Admin Interface

2014-09-17 Thread Thomas Güttler
Am 12.09.2014 um 18:23 schrieb Collin Anderson: And you would expect that to happen just through admin? Would you trust your users really to do all that - basically giving full control what users installs to your system without discretion? Installing apps via the admin would be

Re: Install Django Apps via Admin Interface

2014-09-12 Thread Andreas Kuhne
I really can't see a usecase for something like this. The only time I want to install new packages to my django system is on my dev server while developing something. I would also want the change to be permanent, therefore writing it in my settings.py file. I often forget to add the package to

Re: Install Django Apps via Admin Interface

2014-09-12 Thread Collin Anderson
> > And you would expect that to happen just through admin? Would you trust > your users really to do all > that - basically giving full control what users installs to your system > without discretion? Installing apps via the admin would be useful when the user is the same person as the

Re: Install Django Apps via Admin Interface

2014-09-12 Thread Jani Tiainen
Hi, It seems that you're confusing Django to to be something that it isn't. Django is a web application framework. In short meaning that it is set of (Python) libraries that are used to build web applications. Django app is usually reusable piece of code that brings some (usually common)

Re: Install Django Apps via Admin Interface

2014-09-12 Thread Thomas Güttler
Am 10.09.2014 um 11:07 schrieb Avraham Serour: you can't, you would need to write something yourself capable of doing this. that's sad. in any case why would you want to do that? Convenience. It would be great if some admin plugin could do this: Connect to pypi and list all available

Re: How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-11 Thread Daniel Oźminkowski
Thanks. I saw it, but thought that there would be a better way to do this. because this was asked 2 years ago. I'll give it a tree. What do you think about splitting models that depend on each another into separate apps? Is that the right thing to do? W dniu środa, 10 września 2014 15:37:15

Re: How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-10 Thread Collin Anderson
There's an ancient ticket about this: https://code.djangoproject.com/ticket/897 and a workaround on stackoverflow: http://stackoverflow.com/questions/9879687/adding-a-manytomanywidget-to-the-reverse-of-a-manytomanyfield-in-the-django-admi -- You received this message because you are subscribed

How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-10 Thread Daniel Oźminkowski
com/en/dev/topics/db/models/#many-to-many-relationships ). Is it correct to split my apps like this? I would like to be able to go to admin interface and: 1. Select Application from Robot page 2. Go to Application page and select which Robots have this application whichever way feels more comfo

Re: Install Django Apps via Admin Interface

2014-09-10 Thread Avraham Serour
/migrate and reloading the instance. On Wed, Sep 10, 2014 at 8:09 AM, guettli <guettli.goo...@thomas-guettler.de> wrote: > How can I install Django apps via admin interface? > > > -- > You received this message because you are subscribed to the Google Groups &

Install Django Apps via Admin Interface

2014-09-10 Thread guettli
How can I install Django apps via admin interface? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.co

Admin interface is calling a custom method on my model?

2014-03-04 Thread Greg Barker
ave() return True else: return False The only place this method is called is in one of my templates. I was using the Django Admin interface to facilitate testing this, so I could easily reset some_counter_field back to 0. However, I noticed that just by viewing an insta

Re: Bulk add foreign keys in admin interface

2013-10-27 Thread Kristofer Pettijohn
I found that previously, but it doesn't seem to be quite what I need. Let me try to rephrase. I want to add two multi-selection boxes within the admin view page for the Product model. One of the multi-selections will be for Colors, and one will be for Sizes. I then want a button that the

Re: Bulk add foreign keys in admin interface

2013-10-26 Thread Timothy W. Cook
Yes it is possible and quite easy to do. Take a look at https://docs.djangoproject.com/en/1.6/ref/contrib/admin/actions/ Cheers, Tim On Sat, Oct 26, 2013 at 12:17 AM, Kristofer Pettijohn < kristo...@cybernetik.net> wrote: > I am using the following type of model setup: > > class

Bulk add foreign keys in admin interface

2013-10-25 Thread Kristofer Pettijohn
I am using the following type of model setup: class Product(models.Model): name = models.CharField(max_length=40) description = models.TextField(blank=True) active = models.BooleanField(default=True) priority = models.IntegerField(default=100) size_chart = models.ForeignKey(SizeChart)

Edited objects in admin interface aren't saved

2013-10-10 Thread Nubrigol
I'm having this weird problem in my admin interface where deleting and creating objects works fine, but if I try to edit an object, the changes aren't saved. There are no errors and the save button appears to work, until you look back at the object you saved and it doesn't reflect the changes

Re: Django throws an exception when I add data from admin interface

2013-07-29 Thread Yu Yang
gt; data to Article table from Admin interface, the data is stored to > database, > > but if I click the link to change the entry, it throws an exception > "string > > indices must be integers, not str", the traceback is as follows: > > Environment: > > >

Re: Django throws an exception when I add data from admin interface

2013-07-26 Thread Tom Evans
On Fri, Jul 26, 2013 at 4:22 PM, Yu Yang <yy201...@gmail.com> wrote: > It is a blog app, I have created a Article model and Tag model. when I add > data to Article table from Admin interface, the data is stored to database, > but if I click the link to change the entry, it thro

Django throws an exception when I add data from admin interface

2013-07-26 Thread Yu Yang
It is a blog app, I have created a Article model and Tag model. when I add data to Article table from Admin interface, the data is stored to database, but if I click the link to change the entry, it throws an exception "string indices must be integers, not str", the traceback is

Re: Add an icon "not displayed on website" to certain fields on Admin interface.

2013-07-11 Thread Jérémie Ferry
émie Ferry a écrit : > > Add an icon "not displayed on website" to certain fields on Admin > interface. > > The best idea would be to override Fields properties without touching the > code of it. (for example : on an external app) > > How to do that properly?

  1   2   3   4   5   6   7   8   9   10   >