[ANNOUNCE] Django 1.11 alpha 1 released

2017-01-17 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 1.11! With two and a half months until the scheduled final release, we'll need timely testing from the community to ensure an on-time and stable release. Check out the blog post:

Re: Django search

2017-01-17 Thread Branko Zivanovic
Yes that is true, and I have succeeded in making select menu and checkbox by using Django's forms and their widgets. Thanks anyway! уторак, 17. јануар 2017. 21.04.51 UTC+1, Fred Stluka је написао/ла: > > Branko, > > You may need to explain a little more. > > It sounds like you have search

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
Mike, Good info.  Yeah, keep experimenting and report what you find here.  Hopefully someone will jump in with a definitive answer for you. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-17 Thread Vijay Khemlani
The only "custom include" in Django is for loading other url files The rest of the imports are typical Python module / packages On 1/17/17, 'Peter Müller' via Django users wrote: > Ah I now see the problem. However I tried to remove the entry in the > __init__.py

Re: What is the fate of closed database connections?

2017-01-17 Thread Michael Grundler
CONN_MAX_AGE = 1 behaves similarly to 2 and None. I will try and do some testing with additional spatialite DB drivers. Perhaps its worth noting that I have not seen any of these problems when using postgresql as the DB backend. Many thanks, Mike On Tuesday, January 17, 2017 at 4:18:01 PM

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-17 Thread 'Peter Müller' via Django users
Ah I now see the problem. However I tried to remove the entry in the __init__.py file Python is then unable to find *any *module in that directory. Don't ask me why that is. Also I noticed that django has its completely own import ecosystem. So I used django.conf.urls.include to include a new

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
Mike, I agree.  It seems that 0 and 2 should have similar effects in your case.  Have you tried 1? So, 2 behaves like None, eh?  Perhaps that's because they are both allowing connections to be reused.  0 explicitly prevents connection pooling, so that

Re: What is the fate of closed database connections?

2017-01-17 Thread Michael Grundler
Fred, I observe this behavior using uwsgi + nginx. Per your suggesting I tried a CONN_MAX_AGE = 2, which seems to have the same qualitative behavior as CONN_MAX_AGE = None (i.e. the error message does not appear in the log after repeatedly refreshing the browser on the admin page). I don't

Re: how to do ces monitoring on django application

2017-01-17 Thread Fred Stluka
Anjali, What do you mean by "ces monitoring"?  I've never heard of it. When I searched: - http://google.com/search?q=ces+monitoring I found some references to IBM products. --Fred Fred Stluka -- mailto:f...@bristle.com --

Re: Django search

2017-01-17 Thread Fred Stluka
Branko, You may need to explain a little more. It sounds like you have search working when you type the search string into a HTML text box.  True? What do you want to do with the menu and checkbox?  Are you trying to arrange for the text of the menu

Re: What is the fate of closed database connections?

2017-01-17 Thread Fred Stluka
Mike, As of version 1.6, Django supports persistent DB connections (connection pooling).  CONN_MAX_AGE specifies the number of seconds that a connection will remain open and be reused. You can set it to 0 to cause each DB interaction to open, use, and close its

Re: How to make a queryset into a database, starting from a template html

2017-01-17 Thread Fred Stluka
Carlobo, If you want the nation field to be given a value as soon as a a dialing prefix is entered, without posting the page to the web server and retrieving a new page, you're going to have to use _javascript_ and the perhaps the technique called Ajax.

What is the fate of closed database connections?

2017-01-17 Thread Michael Grundler
When Django closes a database connection at the end of a request/response cycle does that connection still maintain its hold on the database? I ask because I am running an app on a spatialite (v4.3.0a) database, which, due to a limitation in the GEOS library (v3.6.1-CAPI-1.10.1 r0), can

How to make a queryset into a database, starting from a template html

2017-01-17 Thread carlobo
in a html template I receive some input to create a new record in a database . One of these inputs is the international dialing prefix (such as +39 for Italy). In another field of the same template there is another input to enter the country. To facilitate the user would like, after entering the

Re: Creating a sample poll app 2

2017-01-17 Thread jorrit787
Because you need to import the Question model from the models.py file before you can register it in the admin. "from .models import X" means "import X from the file models which is in the same directory as the current file". On Tuesday, January 17, 2017 at 3:18:47 PM UTC+1, Rachit Tibrewal

Re: Django admin raises CSRF verification failed when changing from DEBUG True - > False

2017-01-17 Thread Juan Pedro Lipari
I have the same problem El miércoles, 20 de julio de 2016, 9:14:17 (UTC-3), Muhammed Riyas escribió: > > Hi All, > > I am having a difficulty with my Django site. In which I was running > smoothly in dubug mode(DEBUG = True). While changing it to DEBUG = False > (Also set ALLOWED_HOSTS = ['*'])

Re: Django search

2017-01-17 Thread Branko Zivanovic
Thank you for reply! I'm fine with text input but I also want select menu and checkbox. I want to use it to somehow filter my search. I'm not sure how it fits anyway in bigger picture. How do people make search with select menu and checkbox? Best, Branko понедељак, 16. јануар 2017. 07.13.44

Creating a sample poll app 2

2017-01-17 Thread Rachit Tibrewal
Why is '.models' in the documentation? ##polls/admin.py from django.contrib import admin from .models import Question admin.site.register(Question) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

how to do ces monitoring on django application

2017-01-17 Thread anjalimk68
I want to do ces monitoring for my application. I got one module as statsd but that wasn't helpful. Can anyone provide me suggestions how I can do that. Thanks in advance, Anjali -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Projects vs. apps

2017-01-17 Thread Antonis Christofides
django.contrib.admin is an example of an app. You can use it in multiple projects by specifying it in INSTALLED_APPS. apps that can be used in multiple projects are typically pip-installable. Regards, Antonis Antonis Christofides http://djangodeployment.com On 01/17/2017 12:44 AM, Thufir