Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
Hi Serge, sorry for the expert warning you gave me on performance. But I have trouble following your really techincal suggestion, my goal is to have one table with measures that is related to three models with different geometries, so I can't use a foreign key in measure table, I don't

Re: ID for users of Speedy Net

2016-02-05 Thread Uri Even-Chen
Thanks Remco, that's what I was looking for. I'll try to implement it the way you suggested. Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

Re: reading CSV file with non ASCII characters

2016-02-05 Thread Erik Cederstrand
> Den 6. feb. 2016 kl. 09.14 skrev elcaiaimar : > > Hello, > > I have a CSV File and I want read it. The problem is that it has non ASCII > characters such as 'Ñ' and accents and I need that they are recognised to > save the CSV content in a DB. > > To simplify, I've

Re: reading CSV file with non ASCII characters

2016-02-05 Thread Bill Blanchard
Try this: https://github.com/jdunck/python-unicodecsv On Fri, Feb 5, 2016 at 9:14 PM, elcaiaimar wrote: > Hello, > > I have a CSV File and I want read it. The problem is that it has non ASCII > characters such as 'Ñ' and accents and I need that they are recognised to > save

Django tutor/coach wanted

2016-02-05 Thread Django Learner
I'm a very experienced developer, but not experienced with Python/Django. I have a site that I'd like to build using these tools, and am hoping to find someone to help make climbing the learning curve an efficient process. I'm in Boston, but remote is OK. Willing to pay well for comensurate

reading CSV file with non ASCII characters

2016-02-05 Thread elcaiaimar
Hello, I have a CSV File and I want read it. The problem is that it has non ASCII characters such as 'Ñ' and accents and I need that they are recognised to save the CSV content in a DB. To simplify, I've summed up my code in django to the next: ​import csv reader =

Re: Python Windows + Web +Mobile application: Kivy or Django

2016-02-05 Thread Russell Keith-Magee
On Fri, Feb 5, 2016 at 10:42 PM, MHK wrote: > Hi All, > > I am planning to develop an application which should be mainly work with > desktop and latter may be use the same desktop app to convert into web and > mobile application using python. I wanted to know

Re: ID for users of Speedy Net

2016-02-05 Thread Remco Gerlich
The key is to start out your project with a different User model than the default model -- see https://docs.djangoproject.com/en/1.9/topics/auth/customizing/#specifying-a-custom-user-model . Create your own User model that inherits from AbstractBaseUser, and set AUTH_USER_MODEL = YourCustomUser.

Re: Python Windows + Web +Mobile application: Kivy or Django

2016-02-05 Thread Vernon D. Cole
Kivy will do desktop and mobile, but web applications are a different animal completely. Since they run on a web browser, rather than directly on the computer operating system, your ability to interact with the user's environment is very limited. Anything complex must be written in JavaScript.

Re: ID for users of Speedy Net

2016-02-05 Thread Uri Even-Chen
Hi James, Thanks for your feedback. My question was how do I change the primary key of a Django model such as User - a model I didn't write myself (it's already written by Django). Is it possible? Because I prefer the id/pk to be 15-digits randomly generated and not auto-increment. I don't see

Django and process uploading file

2016-02-05 Thread ylativ oknesyl
How do I put the mouse cursor in the standby symbol when Django downloads a large file (about 1 gig) to the folder media -- 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

You have to use a standard admin panel to the real sites, or it's no good?

2016-02-05 Thread ylativ oknesyl
You have to use a standard admin panel to the real sites, or it's no good? -- 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: Polymorphic class and geomodels?

2016-02-05 Thread Sergiy Khohlov
I’ve decided to use connection via key. and using via key directly or via related objects. Such us Car -> Point (multiline). Reason is simple : django creates not perfect database structure and I would like think about performance as soon as possible. My project contains Car and points

Where the best and many free photos for websites on Python+Django? (please links)

2016-02-05 Thread ylativ oknesyl
Where the best and many free photos for websites on Python+Django? (please links) -- 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: ID for users of Speedy Net

2016-02-05 Thread James Schneider
On Feb 4, 2016 10:59 AM, "Uri Even-Chen" wrote: > > Hi James, > > Thanks for your feedback. Actually I was thinking that this randomly generated number with 15 digits will be used in urls, for example of pages which don't have slugs etc. I saw similar urls in Facebook for pages

Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
Hi Serge, thank you for your reply. I'm working on an environmental monitoring app, where I want to store, and serve, monitoring value on different geometries, points, tracks or polygon. That's why I'm trying to use a polymorphic model in order to have one entity and multiple geometries.

Re: django unittest with post not working

2016-02-05 Thread JAMES DAMILD ETIENNE
Yes but it stillnot saving the data after posting :/ -- 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

Python Windows + Web +Mobile application: Kivy or Django

2016-02-05 Thread MHK
Hi All, I am planning to develop an application which should be mainly work with desktop and latter may be use the same desktop app to convert into web and mobile application using python. I wanted to know whether kivy will suffice for all the three platforms (desktop, web and mobile) or do I

Re: Setting up django mailbox

2016-02-05 Thread learn django
Hi All, I was able to resolve the issue yesterday night. Forgot to send an email. I had to reduce the security level of gmail so that app can access it. Thanks for all the help. On Thursday, February 4, 2016 at 11:58:03 PM UTC-8, Daniel Chimeno wrote: > > This are the settings you should put:

Re: Handling cookies that contain illegal values

2016-02-05 Thread Will Harris
Thanks Tim, fascinating. At least I can tell the big boss the problem was "caused" by the BDFL ;-) Will On Friday, February 5, 2016 at 1:52:34 PM UTC+1, Tim Graham wrote: > > This is caused by a security fix in Python (which Django uses for cookie > parsing). I think the issue can be fixed

Re: Handling cookies that contain illegal values

2016-02-05 Thread Tim Graham
This is caused by a security fix in Python (which Django uses for cookie parsing). I think the issue can be fixed without cause security problems but I'm not sure. Please follow https://code.djangoproject.com/ticket/26158 and related Python tickets. On Friday, February 5, 2016 at 3:13:14 AM

How to disable atomic() in tests

2016-02-05 Thread marcin . j . nowak
Hi, I want to disable atomic() in tests (Django 1.8 and newer). I would like to "noop" it and implement alternate BEGIN-ROLLBACK sequence for every test. Anyone did this? It comes from bad design of Django tests, where database is created, cleaned, dropped, fixtrue-loaded in every test, which

Re: Polymorphic class and geomodels?

2016-02-05 Thread Sergiy Khohlov
I would like as simple question : Are you planning to have some advantages using this abstract class ? I’m working on similar product (look like you are making energy pipeline system based on postgis and gjango). My product is GTS system which includes POINTS (datas are received via GTS

Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
Hi Collin, Sorry for the late reply, but I still don't get the google groups; Yes, I am tryng to crete a models where you can choose between the three geometry types. I'll go back to my app and test the code you suggested and post again the error. thanks On Wednesday, October 28, 2015 at

Re: Handling cookies that contain illegal values

2016-02-05 Thread Will Harris
Hey Daniel, Thanks for the reply. Unfortunately doing this in a custom middleware is not an option, as the this processing needs to take place at a very low level, at the point where the Request object is being built. By the time the request is passed in to the middleware layers for