Re: Connecting to SQL Server

2019-07-04 Thread Adnan Sadzak
Hi John, You are probably passing datefirst as string while in your database datefirst column is int. Can you please confirm you are not passing different data types? Cheers, Adnan On Thursday, July 4, 2019 at 6:48:21 PM UTC+2, John Burke wrote: > > I don't actually supply the hour. This is co

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: Advice on creating an SFTP frontend in Django

2013-07-03 Thread Adnan Sadzak
Hi Paul, does all users have/need their own SFTP account on server? If not, You can mount remote SFTP folder on web server and control access to folders via django. Cheers, Adnan On Wed, Jul 3, 2013 at 9:43 PM, Paul Hudson wrote: > Hi, > > I have successfully used django-storages ( > http://d

Re: Import a custom py file into views.py

2012-02-09 Thread Adnan Sadzak
How python treat some folder as module? You need to add __init__.py into it. On Thu, Feb 9, 2012 at 11:33 AM, Daniel Roseman wrote: > > On Thursday, 9 February 2012 10:21:29 UTC, Alessandro Candini wrote: >> >> Hi list. >> In my project named STO I have the 'jsonopenlayers' app with the >> follo

Re: Pinax or Straight Django

2012-01-16 Thread Adnan Sadzak
Maybe this can help You: http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1 http://groups.google.com/group/django-users/browse_thread/thread/420e428525b41659/570dd1ffc19458ff?pli=1 Cheers On Tue, Jan 17, 2012 at 8:12 AM, Kevin Miller wrote:

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-19 Thread Adnan Sadzak
Yes it has changed, but not so much that you can't follow tutorials. On Mon, Sep 19, 2011 at 12:48 PM, Alec Taylor wrote: > Adnan: Those tutorials seems 2-3 years old, has DJango changed > significantly in those years? > > Deng: Thanks, I will do so :] > > -- > You received this message because

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-18 Thread Adnan Sadzak
You have some tutorials on http://showmedo.com/videotutorials/django Also there is Python videos if You starting up. Cheers, Adnan On Sun, Sep 18, 2011 at 7:48 AM, Alec Taylor wrote: > Also, quick tutorial question; are there a good set of video tutorials > (i.e. on YouTube or metacafe) for DJa

Re: pymssql: Problem with Unicode string

2011-02-16 Thread Adnan Sadzak
You did not install static libs and headers Try this: aptitude install freetds-bin freetds-common freetds-dev or just freetds-dev. Cheers On Wed, Feb 16, 2011 at 9:46 AM, Orgil wrote: > Hello. > I can not get unicode string from MSSQL. > I have pymssql-1.0.2, freetds-0.82, ubuntu-10.10. > I

Re: pyodbc & FreeTDS: Can I work with NVARCHAR column on MSSQL2008

2011-01-31 Thread Adnan Sadzak
This is how Your FreeTDS config should look like: ;-- [mssql2008] host = 10.0.0.61 port = 1433 tds version = 7.0 ;-- Here is the code with pymssql: #-- import pymssql conn = pymssql.connect(host='mssql2008', user='erp', passw

Re: pyodbc & FreeTDS: Can I work with NVARCHAR column on MSSQL2008

2011-01-31 Thread Adnan Sadzak
Hi, I have expirience with pymssql and mssql server, and that works fine (utf-8). FreeTDS docs says: "FreeTDS is not fully compatible with multi-byte character sets such as UCS-2. You must use an ASCII-extension charset (e.g., UTF-8, ISO-8859-*)[2]

Re: Beginner nead help

2010-06-29 Thread Adnan Sadzak
Can You describe your folders structure and show us settings.py file? If You followed tutorial correctly everything should work fine. On Tue, Jun 29, 2010 at 2:00 PM, Eduan wrote: > Okay thanks that you all are so helpful. > I went through the whole tutorial allot of times and can't even > com

Re: how to develop cms on django

2010-06-29 Thread Adnan Sadzak
You can learn from http://www.django-cms.org/ project. It have all You need to start Your own project and to learn. On Tue, Jun 29, 2010 at 12:41 PM, samie wrote: > 1 more query.. > > what are important that i shld. learn in python and in django to > develop my cms.. > > -- > You received this

Re: where I can find good django video tutorial?

2010-04-20 Thread Adnan Sadzak
Hi Hussain, You can find some django videos here: http://showmedo.com/videotutorials/django Adnan On Tue, Apr 20, 2010 at 9:29 AM, Hussain Deikna wrote: > Hi , relay I am very happy to enjoy this group , I need some help, I am > new in using django and I am glad to use it, but relay I wan

Re: Serving https with runserver

2010-03-01 Thread Adnan Sadzak
Then maybe web server is the best option. In all cases you have to configure something until someday 'runserver' come with ssl support. On Mon, Mar 1, 2010 at 11:56 AM, Ian Lewis wrote: > I can think of a number of reasons why you would want to test SSL > behavior on your local machine before r

Re: Serving https with runserver

2010-02-28 Thread Adnan Sadzak
If it's on your local machine there is no big sense to use ssl unles you are paranoid. If someone can sniff local traffic, then ssl is useless. Anyway, as Janusz said http://www.stunnel.org/ On Mon, Mar 1, 2010 at 1:06 AM, Janusz Harkot wrote: > So you can use stunnel: http://www.stunnel.org/ > >

Re: Problem while creating database tables through the models.

2010-02-12 Thread Adnan Sadzak
Did You start python shell from project directory ?? python manage.py shell On Fri, Feb 12, 2010 at 1:42 PM, Newbie wrote: > thanks for your reply.. > When I updated the postgresql version , the tables are created > successfully. > > Now I faced another problem. > When I start to store

Re: images in admin/change_list.html

2010-02-09 Thread Adnan Sadzak
Shoul'd be here two variables to pass as You defined two %s and pass only one ? I'm newbie, maybe I'm wrong :) def image_img(self): if self.image: return u'' % self.image.url_125x125 else: On Tue, Feb 9, 2010 at 5:37 AM, django_jedi wrote: >