Writing custom django-admin commands

2021-05-06 Thread Ilia Rk
how should i write commands that works with all apps existing in project not just apps with specific name -- 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

custom commands for django-admin

2021-05-06 Thread Ilia Rk
hi how should i write custom commnads for django-admin which work with all apps existing in project not just apps with specific defined name -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: channels 2 message type handler in different consumer

2018-06-19 Thread ILia Hopa
> can you please show what's in your routing.py? How are you routing to > command_status_all? > > On Tuesday, June 19, 2018 at 4:01:32 PM UTC-4, ILia Hopa wrote: >> >> Here, relevant code: >> Want a clients connected to Cli0Consumer to receive a message. >>

Re: channels 2 message type handler in different consumer

2018-06-19 Thread ILia Hopa
Here, relevant code: Want a clients connected to Cli0Consumer to receive a message. class Cli0Consumer(JsonWebsocketConsumer): def connect(self): try: async_to_sync(self.channel_layer.group_add)("cli0-group", "custom_channel_name") except Exception as e:

Re: channels 2 message type handler in different consumer

2018-06-19 Thread ILia Hopa
Here, relevant code: *1 consumer* (want it to receive message) class Cli0Consumer(JsonWebsocketConsumer): def connect(self): try: async_to_sync(self.channel_layer.group_add)("cli0-group", "custom_channel_name") except Exception as e: logging.error(sys.

Re: channels 2 message type handler in different consumer

2018-06-19 Thread ILia Hopa
Here, relevant code: *1 consumer* (want it to receive message) class Cli0Consumer(JsonWebsocketConsumer): def connect(self): try: async_to_sync(self.channel_layer.group_add)("cli0-group", server_name) except Exception as e: logging.error(sys.exc_info()

channels 2 message type handler in different consumer

2018-06-19 Thread ILia Hopa
hello! is it possible to set the handler of the group message in the different consumer (from the one from which message was dispatched). ex: I have 2 consumers: `cli0consumer` and `cli1consumer`. there is a method in a class called from `cli0consumer` which is sending a message to the group 'g

Django bootstrap3_datetime widget in admin site doesn't pass form data

2015-11-01 Thread Ilia
the admin site understands that the field is a DateTimeField (from models), looks for id_0 and id_1 and that's why it fails. Does that make sense? Is there anyway around it? Thanks a lot! Ilia -- You received this message because you are subscribed to the Google Groups "Django users

How to get latest db results ? (commit problem)

2007-01-06 Thread Ilia Kantor
Hello! I'm using django with Twisted + Mysql. The problem is that cursor for same SQL returns same results between requests if connection.commit() was not called. Sometimes that's a problem, because data is changed by other clients, and commit never happens. Autocommit mode is fine and it f

Re: Edit_Inline, Love, and Invoices

2006-08-30 Thread Ilia Kantor
Had hard time with it too. Check this http://code.djangoproject.com/ticket/2413 and http://code.djangoproject.com/ticket/2534 Hopefully will be merged into django.. Current behavior is bug. > My client would like to be able to upload invoices via the admin > interface. There's a customer mode

specific admin functionality

2006-08-30 Thread Ilia Kantor
Admin is great, but customazibility is.. Not quite clear.. How can I add e.g 1) single radio-field among all edit_inlined objects ? 2) hierselect ( select 1 is set, then select 2 shows fields depending on select 1) 3) self-managed search functionality in admin object list ? E.g search by fiel

edit_inline fails

2006-08-29 Thread Ilia Kantor
I have an object + edit_inline=stacked I edit inline object and press save... But nothing changes.. How can I debug what's up ? No errors, just doesn't work (trunk) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: python syntax errors

2006-08-29 Thread Ilia Kantor
> if there are syntax errors, the file will not compile and the only > error apache will give is incomplete script headers or something like > that. So before running with apache, make sure the file compiles (F5 > in idle). Even if it does compile, if some import errors are there, > again you wil

Re: Custom file handling

2006-08-28 Thread Ilia Kantor
Works great! But probably the better way would be to make a special FileBrowserField. Such fixing is kind of hack.. > btw, I´m about to rewrite that script using jquery ... > > patrick > > Am 28.08.2006 um 20:11 schrieb [EMAIL PROTECTED]: > > You note > > > >> With adding the script AddFile

Re: Custom file handling

2006-08-28 Thread Ilia Kantor
Can I integrate that with ImageField (or its inheritants) ? > btw, I´m about to rewrite that script using jquery ... > > patrick > > Am 28.08.2006 um 20:11 schrieb [EMAIL PROTECTED]: > > You note > > > >> With adding the script AddFileBrowser.js to your model, you are > >> getting a link to the

Re: python syntax errors

2006-08-28 Thread Ilia Kantor
no, I did not care about it yet. I'm under Gentoo box w/ sendmail wrapper > On 8/28/06, Ilia Kantor <[EMAIL PROTECTED]> wrote: > > my settings.py starts with > > > > DEBUG = True > > TEMPLATE_DEBUG = DEBUG > > Are you listed in ADMINS? Is you

Re: python syntax errors

2006-08-28 Thread Ilia Kantor
my settings.py starts with DEBUG = True TEMPLATE_DEBUG = DEBUG > On 8/28/06, Ilia Kantor <[EMAIL PROTECTED]> wrote: > > After all, I think such behavior ("eating" errors) is simply wrong. > > I want track errors from logs after deployment, because fixes on liv

Re: Custom file handling

2006-08-28 Thread ilia
You note > With adding the script AddFileBrowser.js to your model, you are getting a > link to the FileBrowser > as well as an Image-Preview. How can I use it in my model to have previews for image field ? I see init: function() { var helptext = document.getElementsByTagName('p');

Re: python syntax errors

2006-08-28 Thread Ilia Kantor
ssible. > On 8/28/06, Ilia Kantor <[EMAIL PROTECTED]> wrote: > > When I have syntax error in python code of an app, where it goes ? > > > > I'm working under apache, same config as production, but > > MaxRequestsPerChild 1 > > > > There are no s

python syntax errors

2006-08-28 Thread Ilia Kantor
When I have syntax error in python code of an app, where it goes ? I'm working under apache, same config as production, but MaxRequestsPerChild 1 There are no syntax errors in apache error log or site error log. What's up ? How should I setup things ? my vhost --

thumbnails in admin (Edit)

2006-08-28 Thread Ilia Kantor
How can I see thumbnails instead of links on "edit" admin page ? I see { bound_field_line } is printed there, what should I fix to have image instead of link to file ? I tried PhotoField, ImageWithThumbnailField. --~--~-~--~~~---~--~~ You received this message