Re: South not picking up changes to model, app crashes

2013-05-17 Thread Xavier Ordoquy
Hi > and then where I thought it would find the user_id field.. > python manage.py migrate apppython manage.py syncdb Migrate plays the available migrations but doesn't create a new one. In order to do that, you need to use the schemamigration command. The way to do that is explained here: http

South not picking up changes to model, app crashes

2013-05-17 Thread Radomir Wojcik
So I created a service record model like this: class ServiceRecord(models.Model): location = models.ForeignKey(Location, related_name='service_records') created = models.DateTimeField(auto_now_add=True, null=True) modified = models.DateTimeField(auto_now=True, null=True) active =

Wrong formatting while using Tabular Inlines in Django admin

2013-05-17 Thread Nikos Delibaltadakis
I use Django 1.5.1 out of the box in a virtual environment in my Mac. I just created an app with two models, so the one can be used as inline in the form of the other. While reducing the width of my browser I notice that the table inside the inline, does not keep the same width with the other

Re: Why Postgres over Mysql?

2013-05-17 Thread frocco
Thanks Phillip On Friday, May 17, 2013 2:38:49 PM UTC-4, frocco wrote: > > My site is currently using Mysql, would it benefit me to switch to > Postgres? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: ajax get json not receive data from django

2013-05-17 Thread Christian Schmitt
Its better to use json instead of simplejosn : json.dumps() also csrf shouldn't be your case else you would've get an 405 error. 200 requests are fine, what does firebug says about the request? normally there would be a tab called json where you could see the values that got through the request

Re: Why Postgres over Mysql?

2013-05-17 Thread phil...@bailey.st
Hi frocco, Mysql was recently aquired by Oracle and the future isn't very bright for the database. So, if you have an application already using MySQL you can easly switch to mariadb https://mariadb.org/ or percona server www.percona.com. If you are starting a new project I strongly advise you to

Why Postgres over Mysql?

2013-05-17 Thread frocco
My site is currently using Mysql, would it benefit me to switch to Postgres? Thanks -- 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...@goo

OperationalError: (1040, 'Too many connections')

2013-05-17 Thread frocco
Hello, How can I resolve this in django 1.5? webfaction allows max 90 connections. Thanks -- 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+unsubsc

Re: Noob: How do I get this app to work :(

2013-05-17 Thread Todd Wickizer
Thanks Tom. I tried copying and pasting the urls.py data into the thing and I got this error. Could not import django.views.generic.list_detail.object_detail. Parent module django.views.generic.list_detail does not exist. I'm assuming that that is depreicated and that this app no longer works?

Trees in Django

2013-05-17 Thread Cody Scott
I am categorizing models in a tree. The tree is created based on a string of where the model falls in the tree. The tree will not change once it is created. I tried using django-mptt with this code to create the tree. def add_new_nodes(category_string): for category in category_string.split

Re: new to Django and building web applications. Advice with postgresql

2013-05-17 Thread Bill Freeman
In addition to installing PostgreSQL you must use tools that come with the postgres installation to 1. create a database (a postgres installation has more than one), 2 create a user (unrelated to user account on the operating system) for django to use (though some people cheat and use the pre-defin

How to obtain proxy instance from parent

2013-05-17 Thread Adrián López Calvo
Dear all, I'm working with a proxy model of django's User. I need to convert the user from the request into an instance of my proxy. At the moment I have the following method in my class: @classmethod def from_parent_user(cls, user): # return cls.objects.get(pk=user.pk)

Re: how to create google app for login in django project?

2013-05-17 Thread Venkatraman S
I assume you are referring to using Google's auth scheme, if yes, then: https://github.com/omab/django-social-auth is your friend. If you are referring to Google App Engine, then am not sure what your question is. -V @venkasub On Fri, May 17, 2013 at 3:46 PM, Avnesh S

new to Django and building web applications. Advice with postgresql

2013-05-17 Thread d . gursha
Hi, I'm new to building web applications, django, backend work, etc... I have experience in C++ up to A.P. computer science level if that means anything and I'm beginning to get a grasp on the python language. I've done all of the exercises on code academy and have watched fairly a lot of vide

Re: Hiring Django developers

2013-05-17 Thread Kashif Ali
Do you hire remote developers too? On Thu, May 16, 2013 at 10:47 PM, Jack Hanna wrote: > We are looking to hire Django developers at the following locations: > ** > Los Angeles, CA > San Diego, CA > Seattle, WA > Kuala Lumpur, Malaysia > > > Skills & Requirements: > > Must be at least interme

Mocking datetime.datetime.now and filtering by date

2013-05-17 Thread eXt
Hello! I have a code (test) that mocks datetime.datetime.now and the way queryset filter method works. The code is: Mock: @contextlib.contextmanager def mock_now(dt_value): """Context manager for mocking out datetime.now() in unit tests. Example: with mock_now(datetime.datetime(201

Re: Noob: How do I get this app to work :(

2013-05-17 Thread Tom Evans
On Fri, May 17, 2013 at 12:47 AM, Todd Wickizer wrote: > I have a feeling that this application is too old to use and is missing too > much code? Possibly, but Django is pretty backwards compatible, normally it shouldn't be too much work to bring it up to date. Your error seems that it is unable

Re: Django EmbeddedDocument

2013-05-17 Thread Hélio Miranda
This is Django mongoengine to interact with the database MongoDB. But I managed to solve. Thanks anyway -- 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-u

Re: Django EmbeddedDocument

2013-05-17 Thread Tom Evans
On Fri, May 17, 2013 at 11:02 AM, Hélio Miranda wrote: > Hi > > I'm trying to do a test with EmbeddedDocument well: > class Post (Document): > title = Stringfield (max_length = 60) > body = Stringfield () > comments = ListField (EmbeddedDocumentField ('Comment')) > > pp = Post (titl

how to create google app for login in django project?

2013-05-17 Thread Avnesh Shakya
hi, I want to create login button in my django login page, so i have to create app first for creating button, but i am unable to create app in google. how to create google app for login, please tell me about, and link, so that i can create app in google for authentication. Thanks -- You r

Django EmbeddedDocument

2013-05-17 Thread Hélio Miranda
Hi I'm trying to do a test with EmbeddedDocument well: *class Post (Document):* * title = Stringfield (max_length = 60)* * body = Stringfield ()* * comments = ListField (EmbeddedDocumentField ('Comment'))* * * *pp = Post (title = 'hello', body = 'aa')* *pp.save ()* ** *class Commen

Re: Enter multiple files in a record GridFS

2013-05-17 Thread Tom Evans
On Fri, May 17, 2013 at 9:15 AM, Hélio Miranda wrote: > Enter multiple files in a record GridFS > > From what I read, I can only insert a file per document, so what I want to > do that is to have a record (document) with multiple files can not do ... > I am using mongoengine and GridFS > > It is t

Enter multiple files in a record GridFS

2013-05-17 Thread Hélio Miranda
Enter multiple files in a record GridFS >From what I read, I can only insert a file per document, so what I want to do that is to have a record (document) with multiple files can not do ... I am using mongoengine and GridFS It is true, I can only enter one file per document? -- You received th

Re: Django 1.6 Connection Pooler

2013-05-17 Thread Christophe Pettus
On May 17, 2013, at 12:57 AM, Joe Jasinski wrote: > So I hear that Django 1.6 will ship with a connection pooler built in, which > is awesome. Does this remove the need to have a stand-alone service such as > pgbouncer, or am I misunderstanding how the new built-in connection will > work? A