Re: forms messing up css, help?

2011-06-11 Thread raj
Yup, that fixed it, thank you very much! On Jun 11, 10:51 am, Ian Clelland wrote: > I have no idea what you mean by "stop working" -- without knowing what the > code looked like before, I don't know how it worked before. The usual rule > is that if something worked before, and doesn't work now, t

Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Ok, kenneth i havent seen it that way. I will use your model. I really apreciate it Thanks ignacio Soto Reveco Staff IngeHost El 12-06-2011 0:39, "Kenneth Gonsalves" escribió: On Sat, 2011-06-11 at 21:12 -0400, Ignacio Soto wrote: > No, the same person cant be costumer and se... I have a bas

Re: Multiple UserProfile

2011-06-11 Thread Kenneth Gonsalves
On Sat, 2011-06-11 at 21:12 -0400, Ignacio Soto wrote: > No, the same person cant be costumer and seller. I have a basic profile with information common to both customer and seller called Person and separate models called customer and seller with foreign key to person. Thus one person may have mul

Help with Multiple Databases Master/Slave

2011-06-11 Thread Chris McComas
I have this database setup: http://dpaste.com/553289/ This is my db router file: http://dpaste.com/553290/ When I try to run ./manage.py syncdb --database=slave1 it starts to create the tables, but when it gets to the auth_permission table I get this error: django.db.utils.IntegrityError: dupl

Re: Django-based daily deals aggregator

2011-06-11 Thread Venkatraman S
On Fri, Jun 10, 2011 at 10:02 AM, Dealshelve (deals aggregator) < dealshe...@gmail.com> wrote: > We are working on a Django-based project at http://dealshelve.com (hosted > by WebFaction) with the hope to aggregate daily deals from as many group > buying sites as possible. We plan to make our aggr

Re: Multiple UserProfile

2011-06-11 Thread Venkatraman S
On Sun, Jun 12, 2011 at 6:42 AM, Ignacio Soto wrote: > No, the same person cant be costumer and seller. > Then why not have a 'type' in your profile which tracks the user type? -V http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

Re: Get all reverse related objects.

2011-06-11 Thread Venkatraman S
On Sun, Jun 12, 2011 at 12:10 AM, Marc Aymerich wrote: > > But, I'm wondering if django provides some generic mechanism to do the > invers relation? it is,given a Model_C object get all related Model_A > and Model_B objects. > Like this : https://docs.djangoproject.com/en/dev/ref/contrib/content

Re: help plz to install Django

2011-06-11 Thread Sergiy Khohlov
This guy would like to start. First steps are hard always and Are you definitely sure that adding not trivial procedure is a good solution ? For the first steps last version is not important, stable work and easy install are more important Thanks, Serge 2011/6/12 Ignacio Soto : > Yes kennet

Answer

2011-06-11 Thread dbarre...@myfastmail.com
In regard to the previous question you can only specify one to be used with User.get_profile(), but I've learned from discussions among core developers that get_profile() is something many consider useless. dbarre...@myfastmail.com -- You received this message because you are subscribed to the G

Re: help plz to install Django

2011-06-11 Thread Ignacio Soto
Yes kennet is right, the version that is in the repos..maybe is not the latest release version. In ubuntu 11.04 is the 1.2 in repos, you have to follow the install instructions form the web page djangoproject. Cheers ignacio Soto Reveco Staff IngeHost El 11-06-2011 21:42, "Kenneth Gonsalves"

Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
No, the same person cant be costumer and seller. ignacio Soto Reveco Staff IngeHost El 11-06-2011 21:37, "Kenneth Gonsalves" escribió: On Fri, 2011-06-10 at 23:51 -0400, Ignacio Soto wrote: > i want to create 2 user profile: cutomer an... can the same person be both customer and seller? -- rega

Re: python + BDD (Behaviour)

2011-06-11 Thread Mark Curphey
Thanks. Do most Python folks generally use Selenium ? On Jun 11, 2011, at 12:59 PM, Xavier Ordoquy wrote: > > Le 11 juin 2011 à 21:27, Mark Curphey a écrit : > >> Similar question: I was looking to see if there is a Python equivalents to >> Cucumber and Capybara ? >> >> On Jun 11, 2011, at 11

Re: help plz to install Django

2011-06-11 Thread Kenneth Gonsalves
On Sat, 2011-06-11 at 15:57 +0300, Sergiy Khohlov wrote: > sudo apt-get search django > sudo apt-get install not good advice - *never* use the packaged version -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you

Re: Multiple UserProfile

2011-06-11 Thread Kenneth Gonsalves
On Fri, 2011-06-10 at 23:51 -0400, Ignacio Soto wrote: > i want to create 2 user profile: cutomer and seller with diferents > fields > and quantity of fields can the same person be both customer and seller? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.or

Re: Is there anyway to put a Django site into maintenance mode using fabric?

2011-06-11 Thread Garth Humphreys
Thanks Eric for the idea of the server level redirect in the end this is what I did, http://garthhumphreys.com/2011/06/11/painless-django-maintenance-mode-with-fabric/ On Jun 10, 1:43 pm, Eric Chamberlain wrote: > We make the change at the web server and redirect all traffic to a static > page.

Re: VERY cheap django hosting?

2011-06-11 Thread delegbede
How do you define free of charge? I just checked dotcloud and it doesn't come anywhere close to what English defines as free. Sent from my BlackBerry wireless device from MTN -Original Message- From: Izzie Teeyes Sender: django-users@googlegroups.com Date: Sat, 11 Jun 2011 16:38:21 To:

Re: VERY cheap django hosting?

2011-06-11 Thread Izzie Teeyes
It appears that dotcloud.com is free of charge. On Wed, Jun 8, 2011 at 2:30 AM, raj wrote: > Hey guys, > Just wondering if you could give me some hosts that are very cheap for > django hosting? Is hostgator any good? I really don't know what to > look for in a host. A lot of people are recommend

Re: VERY cheap django hosting?

2011-06-11 Thread Ryan
Do you know how their python is provided? mod_python? mod_wsgi? fgci? Thanks, Ryan -- 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-users/-/6KIjlspcjIwJ. To post t

Re: Email Accounts

2011-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Aye, it's annoying as hell On Sat, Jun 11, 2011 at 2:36 AM, Kenneth Gonsalves wrote: > On Fri, 2011-06-10 at 16:23 +0100, Cal Leeming [Simplicity Media Ltd] > wrote: > > > > I didn't realise I had accidently sent this email to the list, rather > > than > > directly to the OP. > > > > Thank you fo

Re: python + BDD (Behaviour)

2011-06-11 Thread Xavier Ordoquy
Le 11 juin 2011 à 21:27, Mark Curphey a écrit : > Similar question: I was looking to see if there is a Python equivalents to > Cucumber and Capybara ? > > On Jun 11, 2011, at 11:27 AM, Guilherme Silveira Elias wrote: Hi, You can use freshen or lettuce for that. Lettuce has some nice documenta

Re: python + BDD (Behaviour)

2011-06-11 Thread Mark Curphey
Similar question: I was looking to see if there is a Python equivalents to Cucumber and Capybara ? On Jun 11, 2011, at 11:27 AM, Guilherme Silveira Elias wrote: Hi Folks! Have you already used any BDD module for testing purpose like this http://packages.python.org/Behaviour Currently I use RSp

python + BDD (Behaviour)

2011-06-11 Thread Guilherme Silveira Elias
Hi Folks! Have you already used any BDD module for testing purpose like this http://packages.python.org/Behaviour Currently I use RSpec for Ruby, JBehaviour for Java, NBehaviour for .Net but what you're using ? -- Best Regards, Guilherme Elias Cel 55 51 92074889 MSN: suporte_poap...@hotmail.c

Get all reverse related objects.

2011-06-11 Thread Marc Aymerich
Hi! Imagine that you have these three models: class Model_A(models.Model): pass class Model_B(models.Model): pass class Model_C(models.Model): model_a = models.ForeignKey(Model_A) model_b = models.ManyToManyField(Model_B) object_Model_A._meta.get_all_related_objects() This shoul

Re: help plz to install Django

2011-06-11 Thread Ignacio Soto
Hi There is an idle called aptana, that include the pydev enviorement. And a better. Option is install eclipse and a Pydev as a plugin. Cheers ignacio Soto Reveco Staff IngeHost El 11-06-2011 14:46, "ihsan mokhlisse" escribió: thnks Sergiy . and plz how can i cinfigure the django to work wi

Re: help plz to install Django

2011-06-11 Thread ihsan mokhlisse
thnks Sergiy . and plz how can i cinfigure the django to work with it plz . if they r an IDLE exist and support Django Plz without the Problem of configure it plz On 11 juin, 08:57, Sergiy Khohlov wrote: > sudo apt-get search django > sudo apt-get install > > 2011/6/11 ihsan mokhlisse :> hi all

Re: Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Ok, thannks i will try, and let you know... Cheers ignacio Soto Reveco Staff IngeHost El 11-06-2011 11:41, "Shawn Milochik" escribió: Oops, correction: You'd use user.seller_profile and user.customer_profile if you've set it up as a OneToOneField -- the get() is unnecessary (and won't work).

Re: help plz to install Django

2011-06-11 Thread Alexey Moskvin
https://docs.djangoproject.com/en/1.3/intro/install/ On 11 июн, 15:01, ihsan mokhlisse wrote: > hi all . i'm so exited to be a member in this wonderful group . i > wanna start learn Django but the problem is . that i need who can > guide me to accomplish the task (learning Django) . > so plz  i n

Re: forms messing up css, help?

2011-06-11 Thread Ian Clelland
I have no idea what you mean by "stop working" -- without knowing what the code looked like before, I don't know how it worked before. The usual rule is that if something worked before, and doesn't work now, then the problem is in something that you did in between. Now if this is a new view, and h

Re: Multiple UserProfile

2011-06-11 Thread Shawn Milochik
Oops, correction: You'd use user.seller_profile and user.customer_profile if you've set it up as a OneToOneField -- the get() is unnecessary (and won't work). You'd use get() if you used a ForeignKey with unique = True, but that's silly because a OneToOneField does exactly that but more explici

Re: sorl thumbnail

2011-06-11 Thread Greg Donald
On Sat, Jun 11, 2011 at 1:50 AM, Blue Cuenca wrote: > Is your cache, readable and writable to other groups/users as well? Yes, as I stated in a previous post, my entire application is chown'd to my web server user and group 'www-data'. Every directory down to and including my cache directory is

Re: Bizarre QueryDict behavior grouping json data into a single key

2011-06-11 Thread Andres
On Jun 11, 3:59 pm, bruno desthuilliers wrote: > On 11 juin, 14:36, Andres wrote: > > > > > > > > > > > I'm experiencing a really bizarre behavior when using the test client > > in django. > > > I'm using a POST to send data to my django app. I usually do this from > > an iPhone app and/or a te

Re: overriding handle_uncaught_exception to get a stack trace

2011-06-11 Thread bruno desthuilliers
On 11 juin, 06:37, Boris Raskin wrote: > Howdy, > > I am trying to keep track of the 500 errors that I get on my production > site. I realize that outside of DEBUG mode Django will email admins when it > hits 500 errors. This might get a little overwhelming if the same error > occurs a bunch of ti

Re: Bizarre QueryDict behavior grouping json data into a single key

2011-06-11 Thread bruno desthuilliers
On 11 juin, 14:36, Andres wrote: > I'm experiencing a really bizarre behavior when using the test client > in django. > > I'm using a POST to send data to my django app. I usually do this from > an iPhone app and/or a test html form. On the server side, this is how > I handle it: > > def handle_qu

Re: Multiple UserProfile

2011-06-11 Thread Shawn Milochik
Just make your models for the customer and seller profiles, and attach them to users with a OneToOne field. You can only specify one to be used with User.get_profile(), but I've learned from discussions among core developers that get_profile() is something many consider useless. It's even been

Re: help plz to install Django

2011-06-11 Thread Sergiy Khohlov
sudo apt-get search django sudo apt-get install 2011/6/11 ihsan mokhlisse : > hi all . i'm so exited to be a member in this wonderful group . i > wanna start learn Django but the problem is . that i need who can > guide me to accomplish the task (learning Django) . > so plz  i need help . how c

Bizarre QueryDict behavior grouping json data into a single key

2011-06-11 Thread Andres
I'm experiencing a really bizarre behavior when using the test client in django. I'm using a POST to send data to my django app. I usually do this from an iPhone app and/or a test html form. On the server side, this is how I handle it: def handle_query(request): print request q

help plz to install Django

2011-06-11 Thread ihsan mokhlisse
hi all . i'm so exited to be a member in this wonderful group . i wanna start learn Django but the problem is . that i need who can guide me to accomplish the task (learning Django) . so plz i need help . how can i install Django and start writing Codes . they is an IDLE(supporting Django of crse)

overriding handle_uncaught_exception to get a stack trace

2011-06-11 Thread Boris Raskin
Howdy, I am trying to keep track of the 500 errors that I get on my production site. I realize that outside of DEBUG mode Django will email admins when it hits 500 errors. This might get a little overwhelming if the same error occurs a bunch of times. I am hoping to find a way that will let me put

Multiple UserProfile

2011-06-11 Thread Ignacio Soto
Hi there... i want to create 2 user profile: cutomer and seller with diferents fields and quantity of fields but there is a problem with Get_Profile() i've reading about it and i found some inheritance hacks.. but i doubt it was the good way? what is the right way to do it? thanks -- __ Ignac

FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-11 Thread fix computer problems
I was having problems with my laptop before. Good thing * FixComputerpProblemsSite* helped me fix it. And they are really the experts when it comes to solving any computer related issues. They can easily fix computer problems without breaking a sweat.