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
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
> 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.
>>
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:
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.
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()
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
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
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
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
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
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
> 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
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
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
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
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
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');
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
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 --
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
21 matches
Mail list logo