Re: Unit testing for apis

2015-11-24 Thread David Palao
Hi, I was browsing the EuroPython 2015 videos and found a talk titled "TDD for APIs". I have not watched it, but you might be interested in it: https://www.youtube.com/watch?v=Okz6agNgaTA&index=51&list=PL8uoeex94UhGGUH0mFb-StlZ1WYGWiJfP Best 2015-11-24 11:27 GMT+01:00 Kishan Mehta : > Hi All, > >

Re: Version

2015-04-21 Thread David Palao
Hello, Your question is too vague. Also some context would be helpful. What system you are working on? What Python version? How did you install django? What are you trying to do? What database you are interested in? For example. Best 2015-04-21 12:47 GMT+02:00 Parikshit Mishra : > hello everyone

Re: django

2015-04-21 Thread David Palao
Hello, I suggest you to go to https://www.djangoproject.com/ and have a look at the docs in there. Best 2015-04-21 7:23 GMT+02:00 Parikshit Mishra : > hello I want to learn django from scratch please help me > > -- > You received this message because you are subscribed to the Google Groups > "Dja

Re: Create models table from exists database?

2015-04-21 Thread David Palao
Hi, Yes, in principle you can.The keywords are "legacy database": https://docs.djangoproject.com/en/1.8/howto/legacy-databases/ Best 2015-04-21 9:15 GMT+02:00 Dario Concilio : > Hi to all! > I'm new of django, I've a question for you: Can I create a new project using > an exists database? > > I'v

Re: Putting Limits on Memory and CPU Usage in python ?

2015-04-21 Thread David Palao
Hi, Have you had a look at "psutil"? It is a python module to manage processes. Best 2015-04-21 9:20 GMT+02:00 SHINTO PETER : > Hi > François Schiettecatte , limit memory and CPU usage for python socket client > service > > On Mon, Apr 20, 2015 at 11:24 PM, François Schiettecatte > wrote: >> >>

Re: Models not appearing in db. Am I missing something?

2014-12-15 Thread David Palao
Hello, >From your post I understand you did not write unittests for your models? I would recommend to write some sensible tests for them and start tracing your problem from the failures you should get. Best, David 2014-12-15 8:15 GMT+01:00 Shazwi Suwandi : > I've added 'core' to settings.py file

Re: how to test an application that's using a legacy database

2014-11-12 Thread David Palao
2014-11-12 0:25 GMT+01:00 Carl Meyer : > Hi David, > > On 11/11/2014 08:37 AM, dpalao.pyt...@gmail.com wrote: >> Dear Carl, >> >> Thank you for the answer. >> >> On Tuesday, November 11, 2014 3:13:18 PM UTC+1, Carl Meyer wrote: >> >> Hi David, >> >> On 11/11/2014 07:01 AM, dpalao...@gmail.c

Re: running unit tests with legacy database: Error 1050, Table already exists

2014-11-06 Thread David Palao
Hi Collin, Thanks a lot for the answer. I think you are right, and that was what I was doing. Still, apparently the models could not be created properly, or whatever. However I think I managed to convert this problem to a different one (not sure if I should start a new thread). What I did was: rem