Re: Connecting to a MS SQL server from django

2014-01-14 Thread Avraham Serour
I would try using some kind of DB explorer first, to make sure I have the ip, port and auth right, once you are able using some other tool you can just use the same settings in your code On Wed, Jan 15, 2014 at 6:46 AM, Larry Martell wrote: > On Tuesday, January 14,

Re: Connecting to a MS SQL server from django

2014-01-14 Thread Larry Martell
On Tuesday, January 14, 2014, Mark Moss wrote: > The default port for MySQL is 3306. Have you tried that one? > I'm not trying to connect to MySQL - I'm trying to connect to Microsoft SQL server. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Connecting to a MS SQL server from django

2014-01-14 Thread Alex Mandel
On 01/14/2014 03:15 PM, Larry Martell wrote: > I am trying to connect to a MS SQL server from django on Linux using > Vernon Cole's django-mssql package > (https://bitbucket.org/vernondcole/django-mssql-ado-merge/src). > > When I first tried to connect it failed with: > > Exception Type:

Re: Connecting to a MS SQL server from django

2014-01-14 Thread Mark Moss
The default port for MySQL is 3306. Have you tried that one? -- - Mark *Try this new Instant Django Hosting * -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: text media files for comments

2014-01-14 Thread Sven Aßmann
Hi Fatih, i would ask myself the question is this static data that not changes frequently or is it editable content that should be: a) maintainable from users (without code updates of course) b) is maintained independently form software releaes if one of thoses questions can be answered with

mass email app for django

2014-01-14 Thread Sven Aßmann
Hi Group, currently i evaluating / research for a django app that supports mailing specific texts to a receipient list (like mass emailing). the corner features are: - email text should be editable (text or html nothing special) thru the admin app - the receipient list should be maintainable

Connecting to a MS SQL server from django

2014-01-14 Thread Larry Martell
I am trying to connect to a MS SQL server from django on Linux using Vernon Cole's django-mssql package (https://bitbucket.org/vernondcole/django-mssql-ado-merge/src). When I first tried to connect it failed with: Exception Type: DatabaseError at /report/CDSEM/EventsTable/ Exception Value:

Re: saving to two models from one class view

2014-01-14 Thread Dan Gentry
With a formset, like your application form, the template could look like one of these examples: {{ formset.management_form }} {% for form in formset %} {{ form }} {% endfor %} {{ formset }} (found on

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread Sergio Garcia
Basically a "# coding=utf-8" at begining of your file and saving it with utf-8 will solve your problem. On Tue, Jan 14, 2014 at 4:58 PM, Sergio Garcia wrote: > I had the some problem (Português tem seus acentos :) ) > > > From the Python reference: > >

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread Sergio Garcia
I had the some problem (Português tem seus acentos :) ) >From the Python reference: http://www.python.org/dev/peps/pep-0263/ Python will default to ASCII as standard encoding if no other encoding hints are given. To define a source code encoding, a magic comment must be placed

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread David Pineda
The code: from django.http import Http404, HttpResponse import datetime # coding: utf-8 def hello(request): return HttpResponse("Hello world") def home_page(request): return HttpResponse("Página de Inicio") def current_datetime(request): now = datetime.datetime.now() html = "It

Problem with Form with ForeignKey field

2014-01-14 Thread Drew Ferguson
Hi Django 1.5 I have a model which includes a ForeignKey field defined likes this class Document(models.Model): name = models.CharField(max_length=25, unique=True, null=False,blank=False) target = models.CharField(max_length=12, choices=TARGETS,default='report') content

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread Erik Cederstrand
Den 14/01/2014 kl. 17.04 skrev David Pineda : > Hello, i'm beginning to learn python+django and i'm doing that handbook > https://github.com/jacobian/djangobook.com/blob/master/chapter03.rst > In the example whit datetime i have a problem when i active the utf-8 > encondig

Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread David Pineda
Hello, i'm beginning to learn python+django and i'm doing that handbook https://github.com/jacobian/djangobook.com/blob/master/chapter03.rst In the example whit datetime i have a problem when i active the utf-8 encondig because i use á,ñ, etc (i'm chilean and we talk in spanish) So, when i

Re: Jquery Ajax Autocomplete

2014-01-14 Thread Erik Cederstrand
Den 14/01/2014 kl. 15.22 skrev Ali Hayder : > Hello > Timothy W. Cook > Thanks for your quick answere. I followed your link > "http://flaviusim.com/blog/AJAX-Autocomplete-Search-with-Django-and-jQuery/;. > It's not working. I am providing you the mozilla firefox debug

Re: Jquery Ajax Autocomplete

2014-01-14 Thread Timothy W. Cook
Well, it isn't my site, but the link appears to be working okay. I assume yo mean you had trouble with the example? There is an email link on the site. On Tue, Jan 14, 2014 at 12:22 PM, Ali Hayder wrote: > Hello >> Timothy W. Cook > > Thanks for your quick answere. I

Re: DateTimeQuery object has no attribute tzinfo when USE_TZ is True

2014-01-14 Thread Kush Goyal
Thanks Tom, problem solved! On Monday, 13 January 2014 20:14:51 UTC+5:30, Tom Evans wrote: > > On Sat, Jan 11, 2014 at 4:51 AM, Kush Goyal > > wrote: > > I am using postgres as my database. I have a model called Invoice with a > > datetime field. I get an error when I

Re: DecimalField Problem

2014-01-14 Thread Tom Evans
On Tue, Jan 14, 2014 at 7:23 AM, Eric Rouleau wrote: > The problem seems to be in the postgres backend or Psycopg 2.5.2 adapter... > I have the same problem and the data in postgres is 0. but when > fetched by django it comes up as Decimal("0E-8") (with shell access not

Re: New in Django

2014-01-14 Thread Erik Cederstrand
Den 14/01/2014 kl. 14.32 skrev Anu Malik : > I'm new in Django,i am not sure how pickling/caching works? There’s a description of Django caching here: https://docs.djangoproject.com/en/dev/topics/cache/ Django uses the Python pickle module internally:

Re: nginx server not reflecting changes

2014-01-14 Thread Sandeep kaur
On Sun, Jan 12, 2014 at 9:48 PM, Manu wrote: > > Try to reload nginx. > >> sudo nginx -s reload > > > or stop it and restart > >> sudo nginx -s stop >> sudo nginx > These doesn't make any change. > > if it's still not reflecting those changes, check which settings.py is

New in Django

2014-01-14 Thread Anu Malik
Hi All, I'm new in Django,i am not sure how pickling/caching works? -- 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.

Re: Jquery Ajax Autocomplete

2014-01-14 Thread megaBos
Have a look at django selectable http://django-selectable.readthedocs.org/en/v0.7.X/ -- 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

Re: NoReverseMatch error on redirect

2014-01-14 Thread Brad Rice
I figured it out. I had a namespaced url so it needed: return HttpResponseRedirect(reverse('requestform:registrant_add', kwargs={'app_id': obj.id})) On Monday, January 13, 2014 12:22:59 PM UTC-5, Brad Rice wrote: > > I have a mulit-page form I am building. I get the start page to enter the >

Re: DecimalField Problem

2014-01-14 Thread Eric Rouleau
The problem seems to be in the postgres backend or Psycopg 2.5.2 adapter... I have the same problem and the data in postgres is 0. but when fetched by django it comes up as Decimal("0E-8") (with shell access not only admin), if I switch to sqlite3 backend then it works perfectly On

Re: Jquery Ajax Autocomplete

2014-01-14 Thread Timothy W. Cook
Okay, take a breath. The world will still be here tomorrow. :-) Then take a look here: http://flaviusim.com/blog/AJAX-Autocomplete-Search-with-Django-and-jQuery/ On Tue, Jan 14, 2014 at 9:37 AM, Ali Hayder wrote: > Hello guys, > In my project's home page I have two

Jquery Ajax Autocomplete

2014-01-14 Thread Ali Hayder
Hello guys, In my project's home page I have two forms for input two mobiles name for comparison. So I need to integrate ajax autocomplete in those input forms. I tried according to "Mike Hibbert" youtube tutorial. I am freaking out about this issue. I have not enough time to do this.

Re: app to record and play video

2014-01-14 Thread Piyush D
On Sunday, January 12, 2014 11:35:26 PM UTC+5:30, Piyush D wrote: > > Hi, > I'm trying to build an app that records videos using webcam and plays it > on demand. Are there any resources/documentations on how to do this in > Django? > @Mike: FileField can be used for uploading video files. I