Channels: can ApplicationCommunicator get events from my channel layer?

2019-06-08 Thread Chris
I am writing an integration test that loads a page, which somewhere internally calls get_channel_layer().send() to my ChannelNameRouter. I want the event to be consumed and then make various assertions. I think that I need to instantiate an ApplicationCommunicator with my application instance

pass a variable from another site to your django site

2019-06-08 Thread Danny Blaker
Scenario: You have built a chat bot (RASA-NLU for chat page + django for the rest of the site) that helps people with advice on gardening products. A major gardening retailer has approached you and asked if you could put a button on their product detail view pages, so that when a user clicks

Re: How to print a value on page obtained from a user in Django form?

2019-06-08 Thread Anirudh Jain
First save the form after the user has input values using - `userform.save()` Then get that value using - val = userform.CharField Now send the `val` in the context and show it to user wherever you want PS- `CharField` would be whatever varuable name you have used in form/ModelForm On Sun, 9 Jun

How to print a value on page obtained from a user in Django form?

2019-06-08 Thread Majid Rafiee
I am trying to create a form which asks user to input a value, do some calculations on it and show the results back to the user. Here is what I've done: I have created an app called QMarcum. Inside this app I have this views.py, forms.py and urls.py: views.py from django.shortcuts import

Django question.

2019-06-08 Thread Bhashkar Bisht
HI there is there any best way to create django helper class -- 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

--fake-initial does not follow PostgreSQL search_path schema list

2019-06-08 Thread Axel Rau
The database user sets a search_path to a,b In schema b exists a set of tables corresponding to models and inital_migration. Running migrate --fake-initial app inital_migration recreates all table in schema a. Documentation says "--fake-initial does nothing if tables already exist. Is

Login page is still visible for already logged in user

2019-06-08 Thread Gaurav Sahu
Hy everyone, When a person is already logged in he/she can still be able to access login form in my login Django functionality by typing the login URL. I am using Django's default LoginView as my login view. This is the URL of my login page. re_path(r'login/$',

Re: my file uploads missing/deleted

2019-06-08 Thread Joe Reitman
Follow the django-storages documentation. https://django-storages.readthedocs.io/en/latest/backends/dropbox.html It's easy to setup. On Saturday, June 8, 2019 at 8:23:17 AM UTC-5, omar ahmed wrote: > > ok joe how can i use Dropbox for this issue .. > > On Saturday, June 8, 2019 at 2:59:20

Re: my file uploads missing/deleted

2019-06-08 Thread omar ahmed
ok joe how can i use Dropbox for this issue .. On Saturday, June 8, 2019 at 2:59:20 AM UTC+2, Joe Reitman wrote: > > Omar, > > I use Dropbox which is free up to 2GB. I installed django-storages library > to make setting up Dropbox easy. > > On Friday, June 7, 2019 at 6:32:21 PM UTC-5,

Re: Disable count admin

2019-06-08 Thread Derek
Can you use: https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.show_full_result_count On Monday, 3 June 2019 14:48:23 UTC+2, Michele Gatti wrote: > > Hi i need to disable paginato on django admin with not managed model. > Is possible? > -- You received

Re: list_filter no longer does Boolean?

2019-06-08 Thread Derek
The Django docs describe how to create custom list_filter options via your own classes: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter On Thursday, 6 June 2019 08:40:23 UTC+2, Lachlan Musicman wrote: > > > On Thu, 6 Jun 2019 at 16:36,