Cache a ModelChoiceField queryset in a FormSet

2018-03-27 Thread jxrossel
Hi, I am using a ModelChoiceField in a simple FormSet (not a ModelFormSet). When rendering the FormSet, Django duplicates the ModelChoiceField queryset for each row of the FormSet and repeats the same query multiple times to fill the select boxes. Is there a standard solution to cache the

Re: Setting Django

2018-03-27 Thread Larry Martell
On Tue, Mar 27, 2018 at 9:37 PM, Benoit EVRARD wrote: > Hello, I'm new to this Django Framework. By the way, is it a Framework? I > have no time to read all of the posts and tutos. Django seems to interpret > python's coding am I right? You have no time to read the

Setting Django

2018-03-27 Thread Benoit EVRARD
Hello, I'm new to this Django Framework. By the way, is it a Framework? I have no time to read all of the posts and tutos. Django seems to interpret python's coding am I right? I need to adapt a Zend Framework. Am I in the wrong path here? Best, Be -- You received this message because you are

Re: A problem about database structure and displacement on django admin

2018-03-27 Thread Mike Dewhirst
On 28/03/2018 3:42 AM, shawn...@gmail.com wrote: Hi everyone, I am currently working on django and get confused about how to design the model. Right now, I have a table named 'Reactionmeta' which structure like below:      1             2              3                     4                  

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread Andrew Godwin
Not getting past HANDSHAKING with the in-memory layer is a bit weird, and scope is just a normal Python dictionary. Is it possible to put your code up somewhere in a simple form so I can look over it? Andrew On Tue, Mar 27, 2018 at 4:11 AM, 'James Foley' via Django users <

A problem about database structure and displacement on django admin

2018-03-27 Thread shawnmhy
Hi everyone, I am currently working on django and get confused about how to design the model. Right now, I have a table named 'Reactionmeta' which structure like below: 1 2 3 4 5 6

Re: Contributing to django.

2018-03-27 Thread quentin . agren
Hi Utpal, This is because using SSH protocol (implicit in specifying the address as g...@github.com:YourGitHubName/django.git) require you to setup a key pair for your account. You could clone the repo using HTTPS protocol by using https://github.com/YourGitHubName/django.git and providing

Re: writing to my django website via a separate application

2018-03-27 Thread Damon Branch
Hi Andreas, I'm going to look into the rest framework today - thanks for the tip, much appreciated! Damon On Monday, March 26, 2018 at 5:50:49 PM UTC-4, Damon Branch wrote: > > Hi, > I'm developing a website which contains a database. I then need to be able > to update that database from a

Re: No module named django help please

2018-03-27 Thread Utpal Brahma
try : pip install django (if pip is installed) try : pip3 install django (if pip3 is installed) -- 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: How to undisplay the field with empty value in django admin?

2018-03-27 Thread shawnmhy
Dear Cictani: Thank you for your detailed information. Just to be clarified, I need to mention that in one reaction, one stoichiometry belongs to only one metabolites. But one metabolite might involves in multiple reactions. For example: a + 2b +c -> c + 3d(the number before each letter is

Re: Abridged summary of django-users@googlegroups.com - 37 updates in 18 topics

2018-03-27 Thread Samuel Muiruri
Built i Django Color Editor Live Demo https://youtu.be/44cKS3q_fpw quick preview of using the color editor. Link to site: https://bit.ly/2Geignd On Tue, Mar 27, 2018 at 4:10 PM, wrote: > django-users@googlegroups.com >

Daphne server on Heroku will not allow app to start

2018-03-27 Thread lakeshow
The dockerized app successfully uploads and the code is hosted on Heroku's docker container registry. I can shell inside, run `python manage.py migrate` or `./manage.py runserver`, etc. So the chokepoint likely seems to be the daphne command I'm running. `web: daphne

Re: Contributing to django.

2018-03-27 Thread Kasper Laudrup
Hi Utpal, On 2018-03-27 14:36, Utpal Brahma wrote: > > when i performed this below command in terminal. > i have got an error. > > git clone g...@github.com:YourGitHubName/django.git > Replace "YourGitHubName" with the name of your GitHub account and "django" with the name of your project on

Contributing to django.

2018-03-27 Thread Utpal Brahma
I have got this error in section //Writing your first patch for Django// when i performed this below command in terminal. i have got an error. git clone g...@github.com:YourGitHubName/django.git error part : Cloning into 'django'... Warning: Permanently added the RSA host key for IP address

Django-hotsauce 0.9.2 roadmap

2018-03-27 Thread Etienne Robillard
Hi, I'm planning to release a new version of Django-hotsauce (0.9.2) but i'm short in ideas about extending the toolkit in new ways. Here's what I got so far: 1. PyPy 5.10.0 support 2. uWSGI 0.2.16 support I would like to know if supporting Django 2.0 is really a must. I was considering

Re: No module named django help please

2018-03-27 Thread Marsel Tzatzo
Try pip install django Marsel Tzatzo, Mobile Software Engineer I welcome VSRE emails. Learn more at http://vsre.info/ > On 27 Mar 2018, at 12:48, MFM ™ wrote: > > No module named django someone help me > > -- >

Re: How to understand below html code?

2018-03-27 Thread Utpal Brahma
Thanks a lot --- Lachlan Musicman Daniel Hepper and Daniel Hepper Your answer meant a lot to me.Thank you very much guys. On Tue, Mar 27, 2018 at 1:15 PM, Daniel Hepper wrote: > Hi, > > I just want to chime in and clarify that while Django does indeed support >

Re: How to understand below html code?

2018-03-27 Thread Daniel Hepper
Hi, I just want to chime in and clarify that while Django does indeed support Jinja2, it is not the default template language. Django comes with its own template language, which is used in the tutorial, the documentation and probably most articles related to Django. The documentation gives a

No module named django help please

2018-03-27 Thread MFM ™
No module named django someone help me -- 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

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
It looks like accessing scope for url kwargs is a big hit on performance. In fact hitting scope for anything seems to introduce some form of delay. I'm getting very mixed results so I'm unsure if this is now an issue with redis. It is definitely the python process using 100% of the CPU though.

Re: Making django.contrib.admin compatible with Bootstrap4?

2018-03-27 Thread Derek
The dev branch of Django Suit (custome admin style) is using Bootstrap 4: http://django-suit.readthedocs.io/en/develop/getting_started.html#v2-dev-branch On Sunday, 25 March 2018 19:49:21 UTC+2, Tundebabzy wrote: > > Hi Vincent, > I'm not sure what you mean by "compatible". > > If you are

Re: How to understand below html code?

2018-03-27 Thread Jani Tiainen
Hi. That's actually Django template which uses Django templating language. It's not Jinja2 as suggested in other post. What it does is well explained in that other post though. ti 27. maaliskuuta 2018 klo 7.12 Utpal Brahma kirjoitti: > I am in tutorial 3 of

Re: writing to my django website via a separate application

2018-03-27 Thread Andréas Kühne
Hi Damon, I think you should consider creating an app that can communicate with the django backend via an API - for example using the django rest framework: http://www.django-rest-framework.org/ That way you control everything via the django application itself and you don't need to update your

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
Apologies for the double post, I've removed the other one. PYTHONASYNCIODEBUG doesn't appear to give me any warnings. This test I am running is only between two users, each user belonging to the same group. All messages received are pushed back out to all users and filtered clientside.

widget rendering custom html

2018-03-27 Thread Stefano Tranquillini
Hi all, I would like to personlize a widget adding an extra link. In particular I want to change the forms.widgets.CheckboxSelectMultiple . I've read this: https://docs.djangoproject.com/en/2.0/ref/forms/renderers/ but I can't still make it working, I did this piece of code class

Question regarding making urls aliases

2018-03-27 Thread Sadaf Noor
I am using django rest framework filters in my app. For a viewset that looks like following: |classProductViewSet(viewsets.ModelViewSet):queryset =Product.objects.all()serializer_class =ProductSerializerlookup_field ='slug'filter_backends =(SearchFilter,DjangoFilterBackend,)filter_fields

Re: Adding seperate static css file for other extended templates.

2018-03-27 Thread Mike Dewhirst
On 27/03/2018 5:08 PM, prince gosavi wrote: Thanks for the reply but it is not working for me. When i check the page source of the loaded page the 'query.css' is not loaded. Is it because of the urls? or path? or something else. here is my static settings: | settings.py STATIC_URL ='/static/'

Re: Adding seperate static css file for other extended templates.

2018-03-27 Thread prince gosavi
Thanks for the reply but it is not working for me. When i check the page source of the loaded page the 'query.css' is not loaded. Is it because of the urls? or path? or something else. here is my static settings: settings.py STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR,