Re: Django and Long Polling

2014-03-22 Thread Venkatraman S
Why not use (async)callbacks? -V On Sun, Mar 23, 2014 at 1:11 AM, Robin Lery wrote: > Hello, > I need to implement long polling in my application to retrieve the events. > But I have no idea how to do it. I know the concept of long polling, i.e to > leave the connection open, until an event oc

Re: Incorrect SQL

2014-03-22 Thread Ramiro Morales
On Sat, Mar 22, 2014 at 7:48 PM, egon.frer...@gmx.de wrote: > With django 1.6.2, python3 and MySQL manage.py inspectdb brings this error: > > django.db.utils.ProgrammingError: (1064, "You have an error in your SQL > syntax; check the manual that corresponds to your MySQL server version for > the r

Incorrect SQL

2014-03-22 Thread egon.frer...@gmx.de
With django 1.6.2, python3 and MySQL manage.py inspectdb brings this error: django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s AND table_schema = DATABASE()\n

Django and Long Polling

2014-03-22 Thread Robin Lery
Hello, I need to implement long polling in my application to retrieve the events. But I have no idea how to do it. I know the concept of long polling, i.e to leave the connection open, until an event occurs. But how do I do implement this in my project. If you could give me a simple long polling ex

Re: loaddata not looking for natural keys

2014-03-22 Thread bobhaugen
Oh, and I am using Django 1.4.5. -- 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...@googlegroups.com. To post to this group, send email to

loaddata not looking for natural keys

2014-03-22 Thread bobhaugen
loaddata error message: File "/home/bob/.virtualenvs/vn2/lib/python2.6/site-packages/django/core/serializers/json.py", line 47, in Deserializer raise DeserializationError(e) DeserializationError: [u"'Cash Contribution' value must be an integer."] Here's how I dumped the data: ./manage.py

Re: Foreign key attribute in django

2014-03-22 Thread Harjot Mann
On Sat, Mar 22, 2014 at 8:38 PM, Satinderpal Singh wrote: > I wonder you didn't remember the problem related to automation software.:) No it's not the automation problem. I caught you right :P BTW, the problem is solved as I posted the mail, it was simple as we do in other fields to get rid of v

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
On Mar 22, 2014 8:27 PM, "Harjot Mann" wrote: > > On Sat, Mar 22, 2014 at 8:19 PM, Satinderpal Singh > wrote: > > And the same problem is still there:) > > Please show me the code. > > Sorry didn't get you. > Are you facing the same problem or do you want to say something else? > I wonder you did

Re: submit buttons in django

2014-03-22 Thread Satinderpal Singh
On Mar 20, 2014 9:19 AM, "Harjot Mann" wrote: > > I have a form in my app and after entering data into that form I > submit that form but I want an another submit button like "Submit and > Add Event", so that after clicking on it it can redirect to an another > form. Please help me that how can I

Re: Foreign key attribute in django

2014-03-22 Thread Harjot Mann
On Sat, Mar 22, 2014 at 8:19 PM, Satinderpal Singh wrote: > And the same problem is still there:) > Please show me the code. Sorry didn't get you. Are you facing the same problem or do you want to say something else? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http:/

Re: Foreign key attribute in django

2014-03-22 Thread Satinderpal Singh
On Mar 20, 2014 9:28 AM, "Harjot Mann" wrote: > > I have a field in my form that is related with foreign key to another > form and when I am filling a form that is required field but sometimes > I need to leave it blaink, how can I do this? > And the same problem is still there:) Please show me th

Re: Deployment in Django

2014-03-22 Thread Amim Knabben
Probably the ones you read there... If you aren't new on Linux, install the env on Virtualenv (go for virtualenvwrapper, it will give you some hackable shortcuts), I like PostgreSQL most, for static/media stuff normally I use Nginx, and for WSGI Gunicorn, the guys from New Relic have an awesome mo

Re: Deployment in Django

2014-03-22 Thread Ariel E. Isidro
After git, pythonanywhere is a simple way to deploy and publish. On Mar 22, 2014 9:02 PM, "Kamal Kaur" wrote: > On Sat, Mar 22, 2014 at 2:50 PM, Aryak Sengupta > wrote: > > But what is the simplest and the easiest way to go about deployment? > > > > P.S. I am new to Django. > > Starting with a s

Re: Deployment in Django

2014-03-22 Thread Kamal Kaur
On Sat, Mar 22, 2014 at 2:50 PM, Aryak Sengupta wrote: > But what is the simplest and the easiest way to go about deployment? > > P.S. I am new to Django. Starting with a small app, following a good tutorial is not a bad idea! And the simplest, it lets you start from basics. Make sure you use git

Deployment in Django

2014-03-22 Thread Aryak Sengupta
What is the simplest way to go about Django deployment? So far, I have found stuffs like pythonanywhere and Django's own deployment tutorial But what is the simplest and the easiest way to go about deployment? P.S. I am new to Django. -- You received this message because you are subscribed to t

wsgi does not work as intended even it works fine when python manage.py runserver 0.0.0.0:8000

2014-03-22 Thread Jun Tanaka
Hello, wsgi does not work as usually even it works fine when python manage.py runserver 0.0.0.0:8000 I use django version 1.3 I have two issues here. 1. how to add projectname inside of the url 2.static is not connected right 153.xx.x.x.x:8000/simple_project this works. But not when 153.xx.x