Re: Django Produces Python?

2017-03-25 Thread James Bennett
Python is a programming language. You can use it to write many types of programs. For example, you can use it to write web applications (which run on a web server, respond to HTTP requests, store their data in a database, render HTML templates for output, etc.). But doing this from scratch would

Re: Django Produces Python?

2017-03-25 Thread François Schiettecatte
The purpose of a framework is so that you don’t have to write it yourself. François > On Mar 25, 2017, at 9:46 PM, Ed Sutherland wrote: > > Wow. I had thought Django as an assistant to build python projects. If I need > the framework along with whatever language, it seems

Re: Django Produces Python?

2017-03-25 Thread Ed Sutherland
Wow. I had thought Django as an assistant to build python projects. If I need the framework along with whatever language, it seems like immense code-bloat. What, then, is the purpose of using frameworks? On Sat, 25 Mar 2017 23:30:45 -0400 Lachlan Musicman data...@gmail.com wrote

Re: Django Produces Python?

2017-03-25 Thread Lachlan Musicman
It will needs the Django as well. Think of them as layers - at the bottom is the OS, then there is python. Django sits on Python. Your project sits on Django. Can't remove a layer. cheers L. -- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On

Django Produces Python?

2017-03-25 Thread Ed Sutherland
Forgive me if this question is too basic, but I'm a relative newbie to programming frameworks. As I understand it, a framework is built to abstract common tasks within the native language (Python, PHP, Ruby, etc.) When development using a framework is complete, will the production version of

Re: Channels - get online users

2017-03-25 Thread Andrew Godwin
Well, your problem is that you have to first define "online" and "users". If you want "the number of open WebSockets connected to the system", then you can do it using logic tied to the connect and disconnect methods, with extra logic for expiry in case you miss a disconnect (otherwise the number

Re: problrm with django contact form

2017-03-25 Thread Bassam Ramadan
im getting "POST /email/ HTTP/1.1" 302 0 On Saturday, March 25, 2017 at 7:28:59 PM UTC+2, Melvyn Sopacua wrote: > > Hello, > > > > On Saturday 25 March 2017 09:13:19 Bassam Ramadan wrote: > > > > > but i do not receive any mail on my email account > > > > You didn't setup your EMAIL_

Re: Let's Encrypt installation fails with WSGI on Ubuntu 14 LTS

2017-03-25 Thread Michal Petrucha
On Fri, Mar 24, 2017 at 03:22:40PM -0700, Moreplavec wrote: > I'm trying to install SSL certificate with Let's encrypt on my VPS running > Apache + WSGI. > > I'm following guide: > https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04 > > It

TransactionManagementError from inside atomic block

2017-03-25 Thread Ketan Bhatt
I have a method that updates a row in the table. To avoid race condition, I locked the row using `select_for_update` inside an `atomic` block and doing the update. This method is called from a celery task. This works well on my local machine. But when this gets called on my production server (two

Channels - get online users

2017-03-25 Thread Volodymyr Spodaryk
Hi, is there any simple way to count online users that connected to Django Channels ? -- 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: problrm with django contact form

2017-03-25 Thread Melvyn Sopacua
Hello, On Saturday 25 March 2017 09:13:19 Bassam Ramadan wrote: > but i do not receive any mail on my email account You didn't setup your EMAIL_ settings[1]. -- Melvyn Sopacua [1] https://docs.djangoproject.com/en/1.10/ref/settings/#email-host -- You received this message because

problrm with django contact form

2017-03-25 Thread Bassam Ramadan
hello everybody, i created a django project on my local machine ( laptop ) and i setup django form for getting email from my website visitors but when i try it it working fine and do not give me any errors but i do not receive any mail on my email account -- You received this message because

unable to create a new project in django got error. Fatal error in launcher: Unable to create process using '"'

2017-03-25 Thread girish Sharma
hey, i am using django 1.10.6 python 27 whindows 10 when i try to create a new project is shows error >> django-admin startproject someproject >> Fatal error in launcher: Unable to create process using '"' -- You received this message because you are subscribed to the Google Groups "Django

Re: GeoDjango

2017-03-25 Thread Derek
GeoServer allows you to serve multiple formats for a WFS (not just GeoJSON) - see http://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html You also can't generalise about a WFS vs a WMS in terms of time - there are many instances where its much more efficient to serve vector

Re: Let's Encrypt installation fails with WSGI on Ubuntu 14 LTS

2017-03-25 Thread Melvyn Sopacua
On Friday 24 March 2017 15:22:40 Moreplavec wrote: > I'm trying to install SSL certificate with Let's encrypt on my VPS > running Apache + WSGI. > > I'm following guide: > https://www.digitalocean.com/community/tutorials/how-to-secure-apache > -with-let-s-encrypt-on-ubuntu-14-04 > > It works

Re: GeoDjango

2017-03-25 Thread Suresh Nimbalkar
In this example, the author is simply using GeoServer to serve WFS layer (i.e. GeoJSON layer) to Leaflet. You can serve GeoJSON layers without the need of GeoServer. Any map based on GeoJSON data takes considerable time to load as against map based on WMS (i.e. image). Hence, this example is of