Re: [JOB] Django Programmers

2012-04-12 Thread Mark Phillips
That's not very nice to prosecute potential employees.at least wait until you hire them and they do something wrong.;) Mark On Thu, Apr 12, 2012 at 5:52 PM, Martino wrote: > Good day, > > I am Martin Vincent, CTO for ISolutionspro, an internet business > consulting

[JOB] Django Programmers

2012-04-12 Thread Martino
Good day, I am Martin Vincent, CTO for ISolutionspro, an internet business consulting firm that specializes in custom online marketing and web software development. Right now we are searchng for five or more years experienced Python Django programmers to work with us developing a facebook app.

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-12 Thread Gerald Klein
Hi, I have over 20 years in the software business, I have worked for the big 6 back in the day of the dotcom crash. I am in the states so schedule is not a problem. I am looking for steady work, I am always available I don't do any onsite work. This spot is a perfect fit. The essentials are a slam

Re: Django ORM - query help

2012-04-12 Thread Russell Keith-Magee
On Thursday, 12 April 2012 at 10:47 PM, Andre Terra wrote: > On Thu, Apr 12, 2012 at 10:01 AM, David (mailto:cthl...@gmail.com)> wrote: > > Log.objects.distinct('thing__id').order_by('thing__id', > > '-modified_on').select_related().filter(thing__deleted=0)[:20] > > > >

Re: ORA-00918: column ambiguously defined.

2012-04-12 Thread Russell Keith-Magee
Hi Rui, Sounds like a bug to me; please open a ticket describing the problem you have found. Yours, Russ Magee %-) On Friday, 13 April 2012 at 12:48 AM, Rui Silva wrote: > Hi, > > I was working with django 1.3.1 and oracle and i got this error: > ORA-00918: column ambiguously defined. >

Re: URL Routing in the Admin App

2012-04-12 Thread Russell Keith-Magee
Hi, This bug sounds familiar, from back in the days when Django's admin started migrating to named URLs in the admin. The regex you've got for the admin page is the source of the problem. What you've got is a weird hybrid between the old style: (r'^admin/(.*)', admin.site.root), and the new

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
FINALLY! I used your modifications and adjusted the security settings of the directory (twice). And now it works. Thank you everyone for taking the time to look at my code! Brandy On Thursday, April 12, 2012 3:13:58 PM UTC-5, William Ratcliff wrote: > Hi Brandy, > > I downloaded your project

Re: DB queries at import time

2012-04-12 Thread Matt Schinckel
If you install django-devserver, and enable SQL queries in the console, then every query will be displayed as it happens, and you should be able to track them down. Matt. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-12 Thread ionic drive
great: I think this is a good sellery for India if you add some bonuses. good luck On Thu, 2012-04-12 at 20:27 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > Further update on this - budget has changed so, we can now offer > a higher rate and a part time alternative. > > > > *

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Hi Brandy, I downloaded your project modified the beginning to the following: # Django settings for mysite project. import os,sys HOMEDIR=os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = {

URL Routing in the Admin App

2012-04-12 Thread jws
My sad story- I have inherited an app developed by a third party that I am deploying and I'm having strange issues with it. The last known working configuration was lost when a virtual host was inadvertently destroyed. The specific problem is that the admin app is not creating urls to pages

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-12 Thread Cal Leeming [Simplicity Media Ltd]
Further update on this - budget has changed so, we can now offer a higher rate and a part time alternative. * 1500$/month for 70 hours (20$/hour) * 2000$/month for 100 hours (20$/hour) Thanks Cal On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] <

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
Can you post your full code somewhere as a zip? On Thu, Apr 12, 2012 at 2:33 PM, Leonid Toshchev wrote: > Hello. > Try to escape spaces. I don`t check how django work when path have > spaces inside, but i meet same problems in my practice. > > p.s. sorry for my bad

Re: tutorial part 1...syncing db

2012-04-12 Thread Leonid Toshchev
Hello. Try to escape spaces. I don`t check how django work when path have spaces inside, but i meet same problems in my practice. p.s. sorry for my bad english. 12 апреля 2012 г. 21:32 пользователь victoria написал: > On Thu, Apr 12, 2012 at 7:09 PM, Brandy

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
I am in version 1.4. I feel like this is what is happening: I open the file to edit it in either Emacs or BlueFish. The file seems to save properly (I have verified that the files are being saved to the correct directory), but those changes don't seem to be reflected in the files when I access

Re: inconsistent fixture behaviour

2012-04-12 Thread msoulier
On Apr 12, 1:44 pm, msoulier wrote: > > class Service(models.Model): >     name = models.CharField(max_length=256) *sigh* I should have had primary_key=True on this. Red Herring, sorry. Mike -- You received this message because you are subscribed to the Google

inconsistent fixture behaviour

2012-04-12 Thread msoulier
Hi, I'm doing my development with sqlite and my production deployment with postgres. I have this model class Service(models.Model): name = models.CharField(max_length=256) description = models.CharField(max_length=4096, default='') username = models.CharField(max_length=256)

Re: tutorial part 1...syncing db

2012-04-12 Thread victoria
On Thu, Apr 12, 2012 at 7:09 PM, Brandy wrote: > I am working (again) through the tutorial part 1. I have made changes to > Engine and Name as specified in the instructions. However, running "python > manage.py syncdb" continues to return "Please supply the ENGINE

tutorial part 1...syncing db

2012-04-12 Thread Brandy
I am working (again) through the tutorial part 1. I have made changes to Engine and Name as specified in the instructions. However, running "python manage.py syncdb" continues to return "Please supply the ENGINE value." I did not encounter this problem the first time I worked through this

ORA-00918: column ambiguously defined.

2012-04-12 Thread Rui Silva
Hi, I was working with django 1.3.1 and oracle and i got this error: ORA-00918: column ambiguously defined. After some digging in django/db/models/sql/compiler.py i discovered the bug/error: My models had a definition according to django sujested naming: class SampleModel(models.Model):

Changing validation after changing the model

2012-04-12 Thread BlogueroConnor
Hello, I have model and a DB with data. I have to change one field size (lets say, from 255 to 4000). The column is called "papers". I made a South migration, by creating by hand a migration script, and it worked, since the size for this column was changed in the DB. Now I have the column with

Re: Filtering ForeignKey Drop Down in Admin Interface

2012-04-12 Thread Setiaman Lee
Hi, Thanksit works like champion. Rgrds, Setiaman Lee On Wed, Apr 11, 2012 at 3:00 PM, Святослав Б wrote: > Hi! > > Override ModelAdmin get_form() method and filter your field. > > class MyAdmin(admin.ModelAdmin): >     def get_form(self, request, obj=None, **kwargs):

Re: Python Library for Audio Files - Clipping mp3/ogg formats

2012-04-12 Thread Bill Freeman
There is pysox. I haven't used it, but bindings for libsox shouldn't be rocket engineering (rockets haven't been science in a long time). On 4/11/12, BGMaster wrote: > Hi, > > I know this isn't a django specific question, but does anyone know of > a good python library or

Re: constraining one model's attributes with another's

2012-04-12 Thread Jani Tiainen
So you're basically trying to implement EAV [1]? There exists few apps that does it for you, like django-eav: https://github.com/mvpdev/django-eav [1] http://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model On Thu, Apr 12, 2012 at 6:34 PM, trubliphone

constraining one model's attributes with another's

2012-04-12 Thread trubliphone
All, I am at my wit's end trying to come up with a structure to do the following. I have a "MasterModel" that acts as a template for an "InstanceModel." The MasterModel defines a set of name/value pairs. Each InstanceModel must have a name that corresponds to one of the names of the MasterModel

Re: Django Book

2012-04-12 Thread Jani Tiainen
Btw, you can checkout book as a SVN from http://djangobook.com/svn/trunk/en/ Maybe we, as a community could import that to bitbucket/github and continue maintaining it? On Thu, Apr 12, 2012 at 5:10 PM, Timothy Makobu wrote: > > > On Thu, Apr 12, 2012 at 3:45 PM,

Re: Maybe I'm thinking about this wrong

2012-04-12 Thread hari jayaram
Hi Don, Wondering why you dont inherit from just Formview..and define the success URL to a separate class based ListView. It splits it up into two class based views with the Formview taking care of returning the errors on failure. On success it hands off to your Listview based class that knows

Re: DB queries at import time

2012-04-12 Thread Daniel Roseman
On Thursday, 12 April 2012 13:09:54 UTC+1, guettli wrote: > > Hi, > > sometimes it happens, that db queries get executed at import time (during > importing the file by the interpreter). > That's waste of time a resources. > Why? Imports only happen the first time a process accesses a module. A

Re: Django ORM - query help

2012-04-12 Thread Andre Terra
On Thu, Apr 12, 2012 at 10:01 AM, David wrote: > Log.objects.distinct('thing__id').order_by('thing__id', > '-modified_on').select_related().filter(thing__deleted=0)[:20] > > By avoiding the use of values() I was able to then use the result as an > object and access everything

Re: DB queries at import time

2012-04-12 Thread Thomas Guettler
Am 12.04.2012 15:25, schrieb Jani Tiainen: 12.4.2012 15:09, Thomas Guettler kirjoitti: Hi, sometimes it happens, that db queries get executed at import time (during importing the file by the interpreter). That's waste of time a resources. Is there a way to test how many queries get

Re: Django Book

2012-04-12 Thread Timothy Makobu
On Thu, Apr 12, 2012 at 3:45 PM, Mario Gudelj wrote: > I followed the book in 1.3 and everything worked. It's the best piece of > documentation I've come across. Such great narrative, not too detailed but > detailed enough. > > > Yea. I still read chapters randomly as the

Re: Django ORM - query help

2012-04-12 Thread akaariai
On Apr 12, 4:01 pm, David wrote: > The above ORM statement however does not look as elegant to read as I have > come to expect from Django though. The resulting SQL doesn't seem too > shabby however. .distinct(fields) + .order_by() is pretty low level stuff - that is why it

Re: DB queries at import time

2012-04-12 Thread Jani Tiainen
12.4.2012 15:09, Thomas Guettler kirjoitti: Hi, sometimes it happens, that db queries get executed at import time (during importing the file by the interpreter). That's waste of time a resources. Is there a way to test how many queries get executing during import? I want some automated way to

Re: Django Book

2012-04-12 Thread Kurtis Mullins
I keep a checked out copy of the Django source code and just refer to the source code, docs, google, the mailing list and IRC for reference, I tried the book when I first started but it lacked the Class Based Views which I prefer to use when possible. Good luck! On Thu, Apr 12, 2012 at 8:49 AM,

Re: Django ORM - query help

2012-04-12 Thread David
Thank you akaariai That put me on the right track. Log.objects.distinct('thing__id').order_by('thing__id', '-modified_on').select_related().filter(thing__deleted=0)[:20] By avoiding the use of values() I was able to then use the result as an object and access everything I needed. The above

Re: Django Book

2012-04-12 Thread Ramiro Morales
On Thu, Apr 12, 2012 at 5:51 AM, Timothy Makobu wrote: > Mmmm, any dev willing to tell us the final word on this? There is no relationship between the Django project and the Django book apart from the fact that the tw authors are so I don't think you will get any

Re: how to submit data in django's database

2012-04-12 Thread Mario Gudelj
Have you tried this?: c = Company() c.Subject = T c.save() On 12 April 2012 02:54, Sophia wrote: > Hi all, > > I have a question about how to enter data in django's database. I have the > following Template, in which ' E ' is a variable that get the string: > > > >

Re: Django Book

2012-04-12 Thread Mario Gudelj
I followed the book in 1.3 and everything worked. It's the best piece of documentation I've come across. Such great narrative, not too detailed but detailed enough. On 12 April 2012 22:10, Mehmet Gültaş wrote: > It is valid for Django 1.1. :) > > My solution that I used

Re: Django Book

2012-04-12 Thread Mehmet Gültaş
It is valid for Django 1.1. :) My solution that I used last year, was installing Ubuntu 10.04 LTS coming with, guess Django 1.2 or 1.1 not sure. The book was very solid, easy and did not want to back and fort between documentation and book. After this initial dose of Django book, documentation

DB queries at import time

2012-04-12 Thread Thomas Guettler
Hi, sometimes it happens, that db queries get executed at import time (during importing the file by the interpreter). That's waste of time a resources. Is there a way to test how many queries get executing during import? I want some automated way to detect these db queries. Example: def

Re: Django Book

2012-04-12 Thread kenneth gonsalves
On Thu, 2012-04-12 at 14:10 +0300, Jani Tiainen wrote: > And apparently authors didn't wanted/had time/whatever reason there > is > upgraded documentation along Django. > > It would also require lot of upkeeping different versions of books > (since every version of Django changes/adds

How can I customise fields in Admin site

2012-04-12 Thread jiaoziren
Work flexi = Work hours - 7.6 When the user puts 8 in work hours, work flexi should display 0.4 automatically based on the definition above. Do I need to customise the template or modify the models to achieve this? -- You received this message because you are subscribed to the Google Groups

Re: Django Book

2012-04-12 Thread Jani Tiainen
I don't remeber the exact details, but Django book is not part of Django project but separate project. And apparently authors didn't wanted/had time/whatever reason there is upgraded documentation along Django. It would also require lot of upkeeping different versions of books (since every

Re: Django ORM - query help

2012-04-12 Thread Jani Tiainen
12.4.2012 11:51, David kirjoitti: Hi Jani That was very helpful. Is there a way to include select_related into that query? or do I have to list every single field I would like to return using values()? last_deleted = ModificationLog.objects.values('thing__id', ' thing __prefix', ' thing

Re: Django ORM - query help

2012-04-12 Thread akaariai
On Apr 12, 11:52 am, David wrote: > > Hi Jani > > > That was very helpful. Is there a way to include select_related into that > > query? or do I have to list every single field I would like to return using > > values()? > > > last_deleted =

Re: Django Book

2012-04-12 Thread Cal Leeming [Simplicity Media Ltd]
Boy, I've lost count of how many times I've had arguments about books vs documentation vs learning on your own. In short, the only way you're going to get updated books is if technically competent writers spend time writing it - but I doubt many devs would be interested in re-writing (and

Re: Django ORM - query help

2012-04-12 Thread David
> > Hi Jani > > That was very helpful. Is there a way to include select_related into that > query? or do I have to list every single field I would like to return using > values()? > > last_deleted = ModificationLog.objects.values('thing__id', ' > thing__prefix', ' thing __first_name', '

Re: Django Book

2012-04-12 Thread Timothy Makobu
Mmmm, any dev willing to tell us the final word on this? 2012/4/12 Святослав Б > Documentation is the best source for understanding Django. If your new in > Django - read tutorial: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > List of tutorials:

Re: Django ORM - query help

2012-04-12 Thread David
Hi Jani That was very helpful. Is there a way to include select_related into that query? or do I have to list every single field I would like to return using values()? last_deleted = ModificationLog.objects.values('thing__id', ' thing __prefix', ' thing __first_name', ' thing__last_name', '

Re: Django Book

2012-04-12 Thread Святослав Б
Your can read book for old versions of Django and then, when your understand Django - read docs for newer versions. 2012/4/12 Timothy Makobu > Yes it is. But the book has its place. Or is leaving the book outdated an > indirect way of telling us to use only the

Re: Django Book

2012-04-12 Thread Святослав Б
Documentation is the best source for understanding Django. If your new in Django - read tutorial: https://docs.djangoproject.com/en/dev/intro/tutorial01/ List of tutorials: https://code.djangoproject.com/wiki/Tutorials 2012/4/12 Torsten Bronger > Hallöchen! > >

Re: Django Book

2012-04-12 Thread Timothy Makobu
Hi, I've been using Django about 4 years now, so the docs and source code is where I usually get answers these days. But back in the the day when I started out, the book really helped me understand Django, and I often recommend it to friends just starting out. On Thu, Apr 12, 2012 at 11:22 AM,

Re: Django Book

2012-04-12 Thread Timothy Makobu
Yes it is. But the book has its place. Or is leaving the book outdated an indirect way of telling us to use only the docs? On Thu, Apr 12, 2012 at 11:09 AM, Torsten Bronger < bron...@physik.rwth-aachen.de> wrote: > Hallöchen! > > Timothy Makobu writes: > > > The Django book is the best source

Re: Django Book

2012-04-12 Thread Sami Balbaky
Hi Tim, I'm also a fairly new developer in Django, and I found that reading the book, specifically chapters 1-10, really gave me a solid foundation. Reading the book in conjunction with https://docs.djangoproject.com/en/1.4/ will give you a very solid footing. Best, SB On Thu, Apr 12, 2012 at

Re: Django Book

2012-04-12 Thread Torsten Bronger
Hallöchen! Timothy Makobu writes: > The Django book is the best source of understanding Django I have > found http://www.djangobook.com/en/2.0/ All books about Django share the same problem: The original documentation is simply terrific, both for the beginner and the expert. Tschö, Torsten.

Django Book

2012-04-12 Thread Timothy Makobu
The Django book is the best source of understanding Django I have found http://www.djangobook.com/en/2.0/ However, it's three years old now. Is the info on it still valid? Is there a plan to update it? regards, Tim -- You received this message because you are subscribed to the Google Groups