Re: Pinax or Straight Django

2012-01-16 Thread Adnan Sadzak
Maybe this can help You: http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1 http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1 Cheers On Tue, Jan 17, 2012 at 8:12 AM, Kevin Miller wrote:

Pinax or Straight Django

2012-01-16 Thread Kevin Miller
Dear all, I have been struggling between using Pinax or Straight django to develop my apps. I have never used Pinax, but was reading on it. I have already only developed one website in django although it is not yet launched. I would really like to hear the experiences of those who have used both

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread mattym
I started learning Python and Django at the same time. That was a bit of a challenge for me, with the Django template language having slightly different syntax. Soon after I started I had to get a project out fast, so I went with Pinax. Pinax helped me learn more about Django (and Python). It felt

Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst
On 17/01/2012 12:57pm, Bill Beal wrote: How about this (or has it been mentioned already?): All children in one table, all with FK to the parent. One FK in the parent pointing to the one special child. Does there really have to be a one-to-one anywhere? And I don't understand why anyone needs

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks, I didn't know of the lightBird site. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups

Re: pseudo one-to-one

2012-01-16 Thread Ovnicraft
On Mon, Jan 16, 2012 at 12:55 AM, Mike Dewhirst wrote: > I need a one-to-many to behave like a one-to-one. > In -many side add a constraint, unique. Regards, > > The parent instance of my model can only ever have one current child > instance of another model. Multiple child instances have to ex

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Venkatraman S
http://www.lightbird.net/dbe/ has some neat hands-on tutorials. -Venkat -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-us

Re: Best Practices for Outsourcing Partial Development?

2012-01-16 Thread Venkatraman S
On Tue, Jan 17, 2012 at 6:30 AM, cjwalter wrote: > This is why I would appreciate to hear about experiences traveling > this road. What worked and what didn't? > Have never been a fan of elance etc; you should be lucky to find a good set of 'trained hands' there. The best would be to ask around

Re: pseudo one-to-one

2012-01-16 Thread Bill Beal
How about this (or has it been mentioned already?): All children in one table, all with FK to the parent. One FK in the parent pointing to the one special child. Does there really have to be a one-to-one anywhere? And I don't understand why anyone needs to chain from child to child. If they are

Best Practices for Outsourcing Partial Development?

2012-01-16 Thread cjwalter
I am working on a django project and am contemplating to contract some expertise (using elance portals) for certain aspects in order to speed- up the development process. This could concern visual design aspects or working on specific apps. But I am reluctant to grant full access to all project fil

Re: Customize "This field is required" message.

2012-01-16 Thread galgal
You can specify error message using that: https://docs.djangoproject.com/en/1.3/ref/forms/fields/#error-messages -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-us

admin - user related modules in admin

2012-01-16 Thread galgal
I use extended user profile (class name: UserProfile). I made an app for this, named account. In settings I have set:AUTH_PROFILE_MODULE = 'account.UserProfile' But I made another model in that app named RestrictedUsername. I want to put there usernames, that will be reserved and not available

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-16 Thread Stuart Laughlin
Graham, thanks for your input, which I found enlightening, especially the information regarding extension modules and sub interpreters. I can see how some of the things I said previously may have been unfairly biased against apache, when the real issues were inherent to how WSGI works and so mi

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Mario Gudelj
I'd recommend Django first. Do the polls tutorial, first 7 chapters of the book, some Django By Example tuts and then get into Pinax. https://docs.djangoproject.com/en/dev/intro/tutorial01/ http://www.djangobook.com/en/2.0/ http://lightbird.net/dbe/ Cheers, On 17 January 2012 05:12, Alec Taylo

Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst
On 17/01/2012 4:13am, Jeff Heard wrote: You might modify the manager to store historical entries in a different table with the same structure. I once built a work invoicing system like that where the work records got transferred from work_in_progress to work_invoiced as part of the invoicing

Re: pseudo one-to-one

2012-01-16 Thread Mike Dewhirst
On 17/01/2012 4:05am, Bill Freeman wrote: Two thoughts: 1. Have both a one to one and a one to many onto the same children. There's no reason that the current child can't be in both relationships, or you could keep them disjoint by "moving" the old current child to the collection when it id dis

Re: Validators for fields in Proxy Model - possible without monkeypatching?

2012-01-16 Thread Matt Schinckel
You can probably use a form to do most of what you want, with the caveat that as long as your restrictions are more restrictive than any db constraints that auth.User puts in there are. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view t

Re: Database connection closed after each request?

2012-01-16 Thread ydjango
Django-orm looks very useful. Any high DB traffic site using it in production? How mature is it? On Jan 15, 12:06 pm, Daniel Gerzo wrote: > On 15.1.2012 3:36, ydjango wrote: > > > Any updates on MySQL connection pool for django. Has anyone > > implemented it yet and willing to share? > > Graham

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks (also, apologies for replying to these so late, I thought I was subscribed but I was only a member... n00b mistake, well I'm getting them as they arrive now) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on th

Re: Video conference on django app

2012-01-16 Thread Alec Taylor
You could probably integrate something with BBB, or you could use this: Talk to Experts: This is an extension of Video Office project, that allows you to also search for experts based on a topic, see their calendar, sign up to talk to them in their calendar, and video chat with them in real-time.

Re: Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel
On Mon, 16 Jan 2012 16:41:43 +0100, Tom Evans wrote: On Mon, Jan 16, 2012 at 3:34 PM, Martin Tiršel wrote: No, you could just subtly re-order your statements: Why I am doing everything the hard way? :))) Thanks, Martin -- You received this message because you are subscribed to the Go

Re: pseudo one-to-one

2012-01-16 Thread Jeff Heard
You might modify the manager to store historical entries in a different table with the same structure. On Jan 16, 2012, at 2:18 AM, Mike Dewhirst wrote: > On 16/01/2012 5:19pm, Bill Beal wrote: >> Why not have a child model that differs from the one-to-one child model >> in that the parent k

Customize "This field is required" message.

2012-01-16 Thread Chen Xu
Hi, everyone: I created a django form, when I validate it, the empty field that can not be none shows error message "This field is required." Is there a way to tell which filed is required instead of just saying "This field is required." in general? Ex: Username is required. Thanks -- ⚡ Chen X

Re: pseudo one-to-one

2012-01-16 Thread Bill Freeman
Two thoughts: 1. Have both a one to one and a one to many onto the same children. There's no reason that the current child can't be in both relationships, or you could keep them disjoint by "moving" the old current child to the collection when it id displaced by a new child. 2. Have a many to ma

Re: Selecting an E-commerce Application

2012-01-16 Thread Matthias Kestenholz
On Mon, Jan 16, 2012 at 17:31, Lenz Hirsch wrote: > Servus, > > i would give plata a try because its from the creators of feincms wich > is IMO the best django based CMS. As feincms is more a "cms framework" > which ships with a very good "default implementation" i assume the > same is true for pl

Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:47 PM, Krondaj wrote: > Well that didn't come out how I typed it, which helped me solve the > problem!!  and now this should also be formatted properly?? > Yes, that came through properly! A mixture of tabs and spaces would mess things up. > p.s.  should it be four spac

Re: mac vs windows installation /deployment

2012-01-16 Thread Andre Terra
On Mon, Jan 16, 2012 at 2:43 PM, Python_Junkie < software.buy.des...@gmail.com> wrote: > I guess I am digging in a lot deeper into this topic that I had > intended, but your statement above > about each developer compiling their own source code seems to go > against the DRY > principle. > The DR

Re: mac vs windows installation /deployment

2012-01-16 Thread Javier Guerra Giraldez
On Mon, Jan 16, 2012 at 11:43 AM, Python_Junkie wrote: > I have no issue with running a script that will compile the source > code, if that was all there was to the process, >  but if someone has tweaked the source code > and makes it work on a particular version of mac OS or ubuntu with a > parti

Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Hi Tom, Yeah, just realised. When i wrote the code, I think it was telling me weird things about the indentation. In my editor it looked correct like the message I just wrote above... But obviously when it when through the interpreter it saw what i wrote even earlier, thus getting itself a bit an

Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
Thank you for your response. Your answer makes sense. If the source is set up as a package then in theory it can be installed on any platform with the command setup.py install. Thanks again. I will try again to set finish the set up on my Mac. Bob On Jan 16, 11:38 am, Tom Evans wrote: > On Mo

Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Well that didn't come out how I typed it, which helped me solve the problem!! and now this should also be formatted properly?? Hi, This is what I have written: --From Geany editor- from django.db import models # Create your models here. import d

Video conference on django app

2012-01-16 Thread Isaac XXX
Hi folks, I know that it's not mainly django topic, but I know here's is a well documented community through several areas. I need to set a video conference (1 on 1) feature for a project in django. Can you provide me some hints about open-source (or free-royalty) apps, or frameworks, to get

Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
>yes, this is wrong. most development is done in non-windows OS. >what you're seeing is that since OSS is about sharing source, On Jan 16, 11:31 am, Javier Guerra Giraldez wrote: > On Mon, Jan 16, 2012 at 11:22 AM, Python_Junkie > I guess I am digging in a lot deeper into this topic that I had

Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:31 PM, Krondaj wrote: > Hi, This is what I have written, which I believe is the correct > indentation: > --From Geany editor- > [ ... ] > does anyone have any other suggestions? > > When I try to do what i believe is the cor

Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
On Jan 16, 10:31 am, Javier Guerra Giraldez wrote: > it's a pity that MacOS is going the same route (i think 10.4 still > included XCode in the optional installers DVD), so there's some demand > for binary distribution for Mac too. mac osx 10.7 (Lion) includes Xcode for free from the app store. A

Re: mac vs windows installation /deployment

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:32 PM, Python_Junkie wrote: > Thanks for the procedure. > > But when I look at the list of packages for pyodbc displayed, they are > tailored to a specific version of python /chipset. > > http://code.google.com/p/pyodbc/downloads/list Note, these are not ports, but compi

Re: mac vs windows installation /deployment

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 4:22 PM, Python_Junkie wrote: > Am I wrong in the assumption that there are less python packages > available for non windows OS > I have no explicit 'proof' of this, but I am fairly sure that the opposite is true - there will be more packages available for non windows OS.

Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
Thanks for the procedure. But when I look at the list of packages for pyodbc displayed, they are tailored to a specific version of python /chipset. http://code.google.com/p/pyodbc/downloads/list I have a couple of questions. 1. Where do I obtain the source code for pyodbc, above, 2. How do I ta

Re: mac vs windows installation /deployment

2012-01-16 Thread Javier Guerra Giraldez
On Mon, Jan 16, 2012 at 11:22 AM, Python_Junkie wrote: > Am I wrong in the assumption that there are less python packages > available for non windows OS yes, this is wrong. most development is done in non-windows OS. what you're seeing is that since OSS is about sharing source, the main form of

Re: Selecting an E-commerce Application

2012-01-16 Thread Lenz Hirsch
Servus, i would give plata a try because its from the creators of feincms wich is IMO the best django based CMS. As feincms is more a "cms framework" which ships with a very good "default implementation" i assume the same is true for plata. Plata is very new so maybe you are missing a lot of featu

Re: I'm stuck on the first tutorial!! - Please HELP!!!!!!!!!!!!

2012-01-16 Thread Krondaj
Hi, This is what I have written, which I believe is the correct indentation: --From Geany editor- from django.db import models # Create your models here.import datetime class Poll(models.Model):    question = models.CharField(max_length=200)    pub_d

Re: mac vs windows installation /deployment

2012-01-16 Thread Python_Junkie
I appreciate your response. I still would like to move my development over to linux based OS, as you said many of the deployments are on linux web servers. You helped me clarify what I would require in order to make any project successful. I would need the capability of porting any existing open s

Re: mac vs windows installation /deployment

2012-01-16 Thread Brett Epps
You need two things: - Xcode (available in the Mac App Store) - this will give you the tools needed to build software from source - Homebrew (http://mxcl.github.com/homebrew/) - this is similar to fink or MacPorts, but IMHO much better Then do something like: > sudo easy_install pip > sudo pip i

Re: Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 3:34 PM, Martin Tiršel wrote: > Hello, > > This is the view (minimal version without POST processing block): > > @transaction.commit_manually() > def create_free(request): >    context = {}; >    context['categories'] = Category.objects.all() >    transaction.commit() >    

Re: document admin interface

2012-01-16 Thread Sébastien Billion
Hi, Why don't use help_text argument in your models or formAdmin? 2012/1/16, Jaroslav Dobrek : > Hello, > > how can I document the admin interface. I do not mean the stuff that > can be achieved with the admin documentation generator. I would like > to add documentation to those pages that admins

Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel
Hello, This is the view (minimal version without POST processing block): @transaction.commit_manually() def create_free(request): context = {}; context['categories'] = Category.objects.all() transaction.commit() return render_to_response( 'advert/create_free.html',

document admin interface

2012-01-16 Thread Jaroslav Dobrek
Hello, how can I document the admin interface. I do not mean the stuff that can be achieved with the admin documentation generator. I would like to add documentation to those pages that admins see when they create, delete or modify an object. I.e. I want to add explanations about the object being

Re: Alternatives to celery

2012-01-16 Thread Tom Evans
On Mon, Jan 16, 2012 at 3:05 PM, bryan hunt wrote: > Gearman only supports a MySql backend for persistent queues - it > doesn't support a real message queue like Rabbitmq. > > > > On Jan 16, 10:33 am, Cherian Thomas wrote: >> Second Arun’s suggestion on gearman. Pretty solid too. Gearman also wo

Re: Alternatives to celery

2012-01-16 Thread Cherian Thomas
Gearman supports sqlite. Gearman is for jobs, not just data. Regards, Cherian On Mon, Jan 16, 2012 at 8:35 PM, bryan hunt wrote: > Gearman only supports a MySql backend for persistent queues - it > doesn't support a real message queue like Rabbitmq. > > > > On Jan 16, 10:33 am, Cherian Thomas

Re: Alternatives to celery

2012-01-16 Thread bryan hunt
Gearman only supports a MySql backend for persistent queues - it doesn't support a real message queue like Rabbitmq. On Jan 16, 10:33 am, Cherian Thomas wrote: > Second Arun’s suggestion on gearman. Pretty solid too. > > Regards, > Cherian > > > > > > > > On Mon, Jan 16, 2012 at 3:52 PM, Alec T

Re: Open-source or closed-source for SaaS?

2012-01-16 Thread bobhaugen
You might also want to consider: (1) Will anybody actually want to compete with you using your code or a fork of same? People often assume ravenous competitors when in real life, nobody is that interested, for whatever reasons. Or at least they will not become interested until you are way out in

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, now I don't have to do the hard work as a noob. On Mon, Jan 16, 2012 at 9:23 AM, j_syk wrote: > This a good application for named urls with passing arguments. > > for example, given a urls.py containing > >url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"), > > in your template

Re: mac vs windows installation /deployment

2012-01-16 Thread j_syk
This isn't really an answer to your question, but here's my 2 cents. I'm in the reverse situation as you, Macs at work and Windows at home. I wasn't too interested in figuring out Django development on either after quickly disliking macports and never having the desire to develop on windows without

Re: Joining tables

2012-01-16 Thread bruno desthuilliers
On Jan 16, 8:04 am, Arun P wrote: > Does this work? > > info = > ExtraInformation.objects.filter(user__is_active=1,user__is_staff=0,user__is_superuser=0).order_by("popularity").select_related("user") > > users = map(lambda i: i.user, info) That was for the "uselessly complicated and memory-hungr

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread j_syk
This a good application for named urls with passing arguments. for example, given a urls.py containing url(r'^edit/(?P[0-9]+)/$', edit_item, name="edit_item"), in your template you can do this: {% for item in item_query %} Edit {% endfor %} Hope that helps! Named urls are the preferr

Re: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Thanks, I'll try that. On Mon, Jan 16, 2012 at 8:58 AM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > Hi, > > I'm doing the exact same thing. What i do is i add the id of the object of > a row to the url that the button is linking to. > Then I use urls.py and views.py to identi

AW: Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Szabo, Patrick (LNG-VIE)
Hi, I'm doing the exact same thing. What i do is i add the id of the object of a row to the url that the button is linking to. Then I use urls.py and views.py to identify that id and delete or add the object. cheers . . . . . . . . . . . . . . . . . . . . . . . . . . Ing. Patrick Szabo XS

Need "edit" and "delete" buttons on each line of a rendered table

2012-01-16 Thread Bill Beal
Hi All, I'm trying to render a table and have an EDIT button and a DELETE button on each line, like: ID numberID typeEDITDELETE and identify which line is to be EDITed or DELETEd. I tried to create a unique name for each button, like: but the template language won't let me add. I

Validators for fields in Proxy Model - possible without monkeypatching?

2012-01-16 Thread Kirill Panshin
I use proxy model class inherited from `django.contrib.models.User` and I want to apply custom validator to `username` field. Is threre a way to do this without monkeypatching, as I cannot override fields in parent class? -- You received this message because you are subscribed to the Google Grou

Re: Alternatives to celery

2012-01-16 Thread Cherian Thomas
Second Arun’s suggestion on gearman. Pretty solid too. Regards, Cherian On Mon, Jan 16, 2012 at 3:52 PM, Alec Taylor wrote: > Looking for an alternative to celery? — Have you considered carrot? > > :P > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Re: Alternatives to celery

2012-01-16 Thread Alec Taylor
Looking for an alternative to celery? — Have you considered carrot? :P -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-use

Re: Alternatives to celery

2012-01-16 Thread Markus Gattol
Have a look at https://github.com/dmgctrl/django-ztask It's based on ZeroMQ, you can schedule and background tasks in various ways, same machine or even across the network. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussio