Re: Django TCP Socket Communication

2016-06-16 Thread Anil reddy reddy M
How i can store gps output in django model, how django will communicate with micro controllar On Thursday, June 16, 2016 at 5:08:12 PM UTC+5:30, Jani Tiainen wrote: > > Oops, apparently you hijacked over year old thread... > > On 16.06.2016 13:45, Anil reddy reddy M wrote: > > Hi, > > I

Re: Absolute beginner step by step

2016-06-16 Thread M. Kholid
How about the quick way to make a dashboard and example of populating and showing a select query result from a table to a form, may ne it will make me more understand and quickly keep the basic prinsip off database application with django. Thanks Kholid On Wednesday, 15 June 2016, Mc. Holid

Re: geodjango error

2016-06-16 Thread Xristos Xristoou
Τη Πέμπτη, 16 Ιουνίου 2016 - 11:52:55 μ.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: > > hello i want to use geos for one project. > i have install successful gdal and leaflet and djgeojson. > i try to open manage.py and show me that error : > > point import sqlite3_create_function_v2 not >

geodjango error

2016-06-16 Thread Xristos Xristoou
hello i want to use geos for one project. i have install successful gdal and leaflet and djgeojson. i try to open manage.py and show me that error : point import sqlite3_create_function_v2 not find in library dynamic connection c:programs files (x86)\GDAL\spatialite.dll any idea ? -- You

Re: Django TCP Socket Communication

2016-06-16 Thread CLIFFORD ILKAY
On 16/06/16 07:34 AM, Jani Tiainen wrote: But there is no easy way to push arbitrary data through TCP socket to Django server directly - Django is mainly build around HTTP request - response cycle. That is no longer true. Django Channels makes this

Stripe Not Returning Token (test mode)

2016-06-16 Thread Chris Kavanagh
*Stripe Not Returning Token (test mode)* I'm trying out Stripe in test mode on a site I'm building, and for some reason Stripe won't return a token as it's supposed to. I can tell it's not returning a token, because I get a MultiValueDictKeyError when submitting the form. Plus, it won't print

Re: Why in Django the field IntegerRangeField not worked with None?

2016-06-16 Thread Sergiy Khohlov
Look like it is expected behaviour. filter builds sql, any sql should have sence. What is sence with broken sql ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Jun 15, 2016 at 1:09 PM, Seti Volkylany wrote: > The model next: > > class

Re: LoginRequiredMixin ignored

2016-06-16 Thread Sergiy Khohlov
please send your http header. Look like auth header is present by browser default Вірусів немає. www.avast.com

Re: Absolute beginner step by step

2016-06-16 Thread Gary Roach
I missed the use of Django 1.5.4, but Django is supposed to be completely backward compatible. So using 1.9 shouldn't cause any problems. The switch from python 2.7 to 3.5, on the other hand, can be a mess. Gary R. On 06/15/2016 05:24 PM, M. Kholid wrote: I tried to downloan the tutorial

Re: LoginRequiredMixin ignored

2016-06-16 Thread Lee Hinde
I always assume it's me. That was some errant copy and paste. Thanks! On Wed, Jun 15, 2016 at 11:51 PM, Babatunde Akinyanmi wrote: > Actually it's you. Please see inline: > > On Jun 15, 2016 11:56 PM, "Lee Hinde" wrote: > > > > Using Django 1.9.7. > >

Re: Making queries with custom SQL

2016-06-16 Thread Javier Guerra Giraldez
On 16 June 2016 at 16:21, TheBeardedTemplar wrote: > I'm using postgreSQL and have found that recursive queries are exactly what > I need In most cases it's much better to use a more efficient form of tree. A common one is called MPTT, for which there are Django

Making queries with custom SQL

2016-06-16 Thread TheBeardedTemplar
Hey everyone, The bulk of my database consists of a tree of models (called Node), more than 200,000 of them, and I very regularly need to make large queries to get subtrees which I'm finding is causing a significant slowdown. I'm using postgreSQL and have found that recursive queries

Re: Breaking internal app out into reusable app, migration question

2016-06-16 Thread Doug Donaldson
Further, my reading of the source seems to indicate that the migrations are loaded all at once for all INSTALLED_APPS as part of the MigrationLoader init and the decision about whether or not to run them made at this time as well in the migration_plan which leads me to believe that the change

Breaking out internal app into reusable app, migration question

2016-06-16 Thread Doug Donaldson
I have a website with a number of smaller internal apps. I want to break some of them out into reusable apps and I'm starting with a simple one. It has a single model and a single initial migration representing it. Very simple, no foreign keys etc. I did this:

Re: Absolute beginner step by step

2016-06-16 Thread Marlysson Silva
It's missing to map the url to "/" in file "untitled.urls" . I think , too I am beginner Em quinta-feira, 16 de junho de 2016 08:06:25 UTC-3, Tushar Shukla escreveu: > > iam doing this tutorial and i cant get the final result no matter what i > do > > iam using pycharm. please help i have

Re: Absolute beginner step by step

2016-06-16 Thread ludovic coues
that's the expected result at this point. 2016-06-16 7:43 GMT+02:00 Tushar Shukla : > iam doing this tutorial and i cant get the final result no matter what i do > > iam using pycharm. please help i have attached the error page > > On Saturday, 11 June 2016 23:57:33

Re: Django TCP Socket Communication

2016-06-16 Thread Sergiy Khohlov
Have ready this kind of application using django + postgis. At this moment protocols Cabon and teltronika are supported. Are you interested ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jun 16, 2016 at 2:37 PM, Jani Tiainen wrote: > Oops, apparently you

Re: Django TCP Socket Communication

2016-06-16 Thread Jani Tiainen
Oops, apparently you hijacked over year old thread... On 16.06.2016 13:45, Anil reddy reddy M wrote: Hi, I made a TCP Server Socket programming in python, it's nicely communicating with micro controller, and also i can store latitude ,longitude values in MySqldb from GPS output. Now I want

Re: Django TCP Socket Communication

2016-06-16 Thread Jani Tiainen
Hi, So if I understood correctly you want to use microcontroller to connect Django web-app periodically. One "easy" option would be using HTTP protocol to talk to Django and then use simple RESTful calls to push your data. Of course that all depends what kind of libraries your

Re: Dynamic code analyzer for Django

2016-06-16 Thread Avraham Serour
you can run the code with coverage usually tests are run with coverage, not sure how this will impact on performance, other than that you can just check your logs and see what requests are being made and which aren't On Wed, Jun 15, 2016 at 11:41 PM, Raúl Quesada Pegalajar

Re: how to use view function in another function of view in django

2016-06-16 Thread 'Abraham Varricatt' via Django users
I'm going to go out and make a random guess that when you say "use a view inside another view" with respect to the code you posted, you want all calls to index() or list() to render the base view. In that case just use return. i.e. def index(request): return base(request) Yours, Abraham V.

Create admin/superuser for each tenant/schema, while using Django-Tenant-Schema

2016-06-16 Thread Sayantan Ganguly
I am using Django-Tenant-Schemas for my multi tenant app. Now, I have come to face a huge problem. I need to use @login-required for views. But how to have an admin (the creator & owner of the schema) to only create/register user. If a "register yourself" page is available to all, then anyone

Re: Absolute beginner step by step

2016-06-16 Thread Tushar Shukla
iam doing this tutorial and i cant get the final result no matter what i do iam using pycharm. please help i have attached the error page On Saturday, 11 June 2016 23:57:33 UTC+5:30, Derek wrote: > > The Django tutorial - > https://docs.djangoproject.com/en/1.9/intro/tutorial01/ > > But if you

Breaking internal app out into reusable app, migration question

2016-06-16 Thread Doug Donaldson
I have a website with a number of smaller internal apps. I want to break some of them out into reusable apps and I'm starting with a simple one. It has a single model and a single initial migration representing it. Very simple, no foreign keys etc. I did this:

Re: Django TCP Socket Communication

2016-06-16 Thread Anil reddy reddy M
Hi, I made a TCP Server Socket programming in python, it's nicely communicating with micro controller, and also i can store latitude ,longitude values in MySqldb from GPS output. Now I want develop a web application for vechile tracking. How can i do this stuff in django. I would be

Re: How change returned value after annotation queryset of model?

2016-06-16 Thread Jani Tiainen
On option could be using choices on a field definition. On 16.06.2016 12:51, Seti Volkylany wrote: If I used annotation for get rating an object, I had new field 'rating' (is number). How change values field rating through SQl for return: if rating = 0 return '0' if rating = 1 return '+1' if

How change returned value after annotation queryset of model?

2016-06-16 Thread Seti Volkylany
If I used annotation for get rating an object, I had new field 'rating' (is number). How change values field rating through SQl for return: if rating = 0 return '0' if rating = 1 return '+1' if rating = -1 return '-1' -- You received this message because you are subscribed to the Google Groups

Re: how to use view function in another function of view in django

2016-06-16 Thread ludovic coues
I don't understand what you are trying to do. base(request) create a response for the browser using j and a to render base.html. If you want to have access to j and a in both index.html and list.html, try this: def base(request): j = Job.objects.all() a = Ab.objects.all() return

Re: Recommended courses/materials for Python/Django course...

2016-06-16 Thread ludovic coues
The "Python Crash Course" aim to teach python from nothing in the first half and to put that knowledge in application in the second half through 3 projects. These are a 2D game, some data visualization technique from diverse source and a django application. Some people have some difficulty with

Re: LoginRequiredMixin ignored

2016-06-16 Thread Babatunde Akinyanmi
Actually it's you. Please see inline: On Jun 15, 2016 11:56 PM, "Lee Hinde" wrote: > > Using Django 1.9.7. > > I have the following class: > > class AddView(LoginRequiredMixin, CreateView): > template_name = "entry.html" > model = Property > form_class =