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

2014-01-15 Thread Tom Evans
On Tue, Jan 14, 2014 at 6:12 PM, David Pineda wrote: > > 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 cu

Re: mass email app for django

2014-01-15 Thread Sergiy Khohlov
Hello Sven, Look like it is not task for django. This is task for SMTP server. Of course you can create a task for SMTP server using django but main force of the your application is based on mail server. I'm proposing next solution: 1) Store usermail in database 2) configure smtp server for

Oracle 'invalid identifier' and SQL select structure

2014-01-15 Thread Anthony Hawkes
I'm having trouble with django 1.6 running queries on a table I need to pull data from When I run the following from shell CRMData.objects.filter(Incident_Date='2014-01-14') I get: DatabaseError: ORA-00904: "ODBC_EXTRACT_DAILY"."INCIDENT_DATE": invalid identifier I've run queries in sqlplus an

Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Tim DiSabatino
Hello, I am just going through the Django Tutorial and am in Writing your first Django app, part 2. In the section called "Customize the admin look and feel", I have created a templates directory, an admin directory inside of that, and copied the base_site.html file into the admin directory.

Re: Connecting to a MS SQL server from django

2014-01-15 Thread Larry Martell
On Wed, Jan 15, 2014 at 12:09 AM, Avraham Serour wrote: > 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 Do you know of any such beast for Linux? > On W

Re: Connecting to a MS SQL server from django

2014-01-15 Thread Adnan Sadzak
Maybe Your MSSQL server is listening only on loopback interface. Telnet from linux box to windows server on port 1433 and check if port is open. You can see also this few pages, just depends on Your server version.: http://blogs.msdn.com/b/sqlblog/archive/2009/07/17/how-to-configure-sql-server-to-

Re: Connecting to a MS SQL server from django

2014-01-15 Thread Avraham Serour
pycharm and jetbrains tools come with a db explorer with a simple google search I found this [0] and [1] which have some references, you could also try [2] with wine [0] http://stackoverflow.com/questions/399505/sql-server-gui-for-linux [1] http://stackoverflow.com/questions/721852/developer-too

Re: nginx server not reflecting changes

2014-01-15 Thread Manu
Please find some of my remarks below On Tuesday, 14 January 2014 19:04:19 UTC+5:30, sandy wrote: > > > 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 > > >

Re: Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Manu
Can you post your directory structure here? The problem should be there, most probably. On Wednesday, 15 January 2014 11:37:51 UTC+5:30, Tim DiSabatino wrote: > > Hello, > > I am just going through the Django Tutorial and am in Writing your first > Django app, part 2. In the section called "Cus

In form field does not called any validators with required=False and empty value

2014-01-15 Thread Lagovas Lagovas
Example of code: ... def test_field(self): incorrect_data = u"" correct_data = u"this is correct data" field_instantiate_kwargs = { 'min_length':10, 'error_messages':{ 'min_length': u"some message", 'required': u"required message" } } self.as

Re: How to urlquote backslash in reverse arguments

2014-01-15 Thread Peter of the Norse
Someone will have to correct me if I'm wrong, but it might be intentional. Some recent versions of Apache fail hard when confronted with an encoded slash. Some decode it before passing it to WSGI, while others don't. And then there are the versions that return 500 or 400 errors. And then there

Re: Problem with Form with ForeignKey field

2014-01-15 Thread Jonathan Pentecost
Does it have anything to do with the related name of animal being `+`? I can't test this out just yet, but I don't THINK you can have a related_name as just `+`, I believe it needs to be a valid identifier. On Wednesday, 15 January 2014 03:26:12 UTC+11, Drew Ferguson wrote: > > Hi > > Django 1.

Re: Can't Install on Windows 8.1

2014-01-15 Thread Malik Rumi
I got it done. Finally. Thanks to all. On Mon, Jan 6, 2014 at 2:41 AM, Mike Dewhirst wrote: > Malik > > I'm confused. What are you doing with GAE and Windows 8.1? Have you given > up Windows? > > Also, I think you will fare better with Pillow rather than PIL. It seems > PIL is no longer being s

Re: Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Tim DiSabatino
Manu, This is the directory structure I have. I have pretty much tried it in all levels of the hierarchy with no success. In the tutorial for Django v1.5, it had you name a specific location in the filesystem where the base_site.html was located. In the new 1.6.1 tutorial, there is no mentio

Re: Connecting to a MS SQL server from django

2014-01-15 Thread Larry Martell
On Wed, Jan 15, 2014 at 9:51 AM, Avraham Serour wrote: > pycharm and jetbrains tools come with a db explorer > > with a simple google search I found this [0] and [1] which have some > references, you could also try [2] with wine > > [0] http://stackoverflow.com/questions/399505/sql-server-gui-for-