Re: execute code at startup

2016-03-09 Thread Vernon D. Cole
I think if I were doing this, I would write a custom management command to update the tables, and run it at system startup time. Management commands are easy to debug and well documented. On Tuesday, March 8, 2016 at 10:3

Re: How to update a live / deployed Django project?

2016-02-10 Thread Vernon D. Cole
n quit working, and I was able to regain control using Salt. The demo uses PostgreSQL -- I will send you my mariadb state if you wish. -- Vernon Cole On Wednesday, February 10, 2016 at 1:50:22 AM UTC-7, Tobias Dacoir wrote: > > We've build a small web application using Django 1.8 ove

Re: Python Windows + Web +Mobile application: Kivy or Django

2016-02-05 Thread Vernon D. Cole
Kivy will do desktop and mobile, but web applications are a different animal completely. Since they run on a web browser, rather than directly on the computer operating system, your ability to interact with the user's environment is very limited. Anything complex must be written in JavaScript.

Re: installing django scripts on a web server

2015-12-18 Thread Vernon D. Cole
On Friday, December 18, 2015 at 4:55:16 AM UTC-7, maringire ringaz wrote: > > How do i install django-cms(or any other web app) on xampp or runserver > using pycharm > First, I would say that xampp is a non-starter, because it does not have support for Python. [besides that, I prefer nginx and

Re: Django model for non web applications

2015-07-03 Thread Vernon D. Cole
Jeff: I think that Russell's answer might be more appropriate for your use case than Carl's. django.setup() calls settings.configure(), but also tries to pull in other application modules, which you might not want. On Thursday, July 2, 2015 at 6:50:20 PM UTC-6, Carl Meyer wrote: > > On 07/0

Re: how to do a django data migration on a massive Postgres data table (solved)

2015-05-27 Thread Vernon D. Cole
e django-user ML. > > I don't see the gist though, is the problem from me? > > On 05/22/2015 09:09 PM, Vernon D. Cole wrote: > > Django migrations are run in a single transaction (if your database is > capable of doing a rollback of DDL, as PostgreSQL is) so data migrations o

how to do a django data migration on a massive Postgres data table (solved)

2015-05-22 Thread Vernon D. Cole
Django migrations are run in a single transaction (if your database is capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of large tables become impossible. I was able to solve this problem by having the migration run a no-wait subprocess which performs the data migration

Re: Converting bytes to unicode that works both in python2 and 3

2015-05-19 Thread Vernon D. Cole
if sys.version_info >= (3,0): def str2bytes(sval): return sval.encode("latin1") unicode = str else: def str2bytes(sval): if isinstance(sval, str): return sval return sval.encode("latin1") This is what I use to solve the opposite problem. It should gi

Re: data migrations for large tables on Postgres

2015-05-14 Thread Vernon D. Cole
ango would be happy? > > Johnf > > On 05/14/2015 02:43 PM, Vernon D. Cole wrote: > > I have learned the hard way this week that data migrations in django 1.8, > as wonderful has they are, do not scale. > > My test data table is now sitting at about 90,000,000 rows. I was able t

data migrations for large tables on Postgres

2015-05-14 Thread Vernon D. Cole
I have learned the hard way this week that data migrations in django 1.8, as wonderful has they are, do not scale. My test data table is now sitting at about 90,000,000 rows. I was able to add a "null=True" field in an instant, as documented. Then came my attempt to fill it -- I tried using R

Re: setting up python 3.4.3 on window 7.

2015-04-03 Thread Vernon D. Cole
Multiple versions of Python will happily run side-by-side on Windows. I regularly have at least six versions installed for testing purposes. When you install Python 3.4, (using the standard installer from python.org) it will also install the Python Launcher for Windows. Using it, you will al

Re: Config: DB or git?

2014-09-30 Thread Vernon D. Cole
not program your configuration in Ruby (Puppet and Chef) or Python (fabric), but lay it out in nice, readable, white-space sensitive YAML files, with Jinja templates where needed. I have an over-simplified example at https://github.com/eHealthAfrica/salt_demo -- Venon Cole On Monday, Septe

Creating a QuerySet where the presence of a row is dependent on other rows in the result

2014-08-22 Thread Dave Cole
I have a problem where I need to define a QuerySet where the conditions for including one row depend on evaluating values in one or more other rows in the QuerySet. Is there a way to manually construct a QuerySet by iterating over rows from another QuerySet and individually adding them to the n

Re: Language code issue - Django thinks default is en-us?

2014-06-20 Thread Vernon D. Cole
(*cough*) Excuse me, everyone, but many of the locale names mentioned in this discussion have been invalid. https://docs.djangoproject.com/en/1.6/topics/i18n/#term-locale-name says: > locale nameA locale name, either a language specification of the form ll > or a combined language and country s

Re: ASP .NET web service and Django

2014-05-27 Thread Vernon D. Cole
Jani: Can you please provide a link to the "hacks" you mention for IronPython? I am preparing to run django with IronPython3 and any information on what people did to make IronPython work would be helpful. -- Vernon Cole On Monday, May 26, 2014 12:21:00 PM UTC+1, Jani Tia

Re: I can't connect Django with SQL Anywhere 11 Database

2014-04-14 Thread Vernon D. Cole
You would be best advised to contact whoever supports that driver. Their contact information ought to be on their github site. My guess (as a maintainer of a different 3rd party Windows database driver) is that they have not upgraded to django 1.6 yet. But that's only a wild guess. The other s

Re: Django Windows Install Issues

2014-02-26 Thread Vernon D. Cole
On Tuesday, February 25, 2014 2:23:49 PM UTC-7, Joe Buty wrote: > > Hello, I am having trouble getting Django to work. I have installed python > and downloaded and unzipped the .tar file for django. I am using windows 8 > ugh and can not open the instal file. I read through the setup.py and I

Re: Python

2014-02-24 Thread Vernon D. Cole
Python is a programming language. The purpose of a programming language is to write applications. Django is an application written in the Python language. The purpose of django is to create, operate, and administer websites

Creating database in windows

2014-02-16 Thread Vernon D. Cole
Django on Windows is a poor stepchild of the real thing. If you are serious about using django then you really need to learn Linux at some point in time. I am amazed that something as complex as geodjango will even run in Windows. You have two choices: Either learn to use Windows command line v

Re: DecimalField and SQL Server

2013-12-06 Thread Vernon D. Cole
;t be much more help to you. -- Vernon Cole On Friday, December 6, 2013 6:59:11 AM UTC-7, Derrick Jackson wrote: > > Hi Michael, > > I'm using django-pyodbc 0.10 > > On Friday, December 6, 2013 8:42:00 AM UTC-5, Michael Manfre wrote: >> >> Which database backen

Re: How to replace Django ORM with sqlalchemy

2013-12-03 Thread Vernon D. Cole
The maintainers of django have discussed this question. They all believe that it would be almost impossible to do. The two ORMs operate differently, so that there would not be a simple "replace operation A with operation B" type of conversion. The present ORM is too deeply embedded to be rep

Re: psycopg2._psycopg.cursor missing cursor.fetchnone/cursor.fetchall

2013-11-02 Thread Vernon D. Cole
One problem you are having is a typographical error: The cursor method is "Fetch One" not "Fetch None". On Friday, November 1, 2013 8:46:17 AM UTC+1, hjr1 wrote: > > Hi all. > > I am trying to use django.db.connection with psycog2 (postgres). I can run > something like cursor=connection.curs

Re: Django 1.5 tutorial, part 1

2013-10-12 Thread Vernon D. Cole
You have a spelling error in INSTALLED_APPS: "pools" vs "polls". You want a survey, not a puddle of water. (This could be caused by an overly aggressive spelling corrector on your computer.) -- Vernon On Saturday, October 12, 2013 10:41:11 AM UTC-6, Enrico Battiston wrote: > > Hi, i'm a first

Re: unable to access django development server on firefox/chrome

2013-10-12 Thread Vernon D. Cole
Also make sure your browser is not trying to use a proxy. 127.0.0.1 should be an exception on the proxy setting. -- 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 t

Re: unable to access django development server on firefox/chrome

2013-10-12 Thread Vernon D. Cole
That's exactly how I do it using Firefox on my Ubuntu 13.04 workstation. I see nothing wrong in your explanation. Are you trying to access it from the same computer that the development server is running on? If so, then check to see whether you have a firewall running on your workstation whic

Re: Nginx versus Apache

2013-10-08 Thread Vernon D. Cole
If you are doing any of the hundred-odd things that Apache can do an Nginx cannot, then you will need to use Apache. But, if all you are doing is serving static files and handing all heavy lifting to django, then Nginx with uWSGI will do everything you need, and will do it with less resources.

Re: PyCons in Africa

2013-10-07 Thread Vernon D. Cole
, can enough attendees get there to be worthwhile? I am not saying "don't try" but there are some hurdles to overcome. I have joined the mailing list and will help out if I can. -- Vernon Cole eHealth Africa .org On Friday, October 4, 2013 5:13:44 PM UTC+1, Daniele Procida wro

Re: how to start learning Django in Windows Platform

2013-10-02 Thread Vernon D. Cole
You can run all of the tutorial stuff in Windows, and it's not a bad idea to learn things one-at-a-time. I would suggest, however, that if you are serious about using django, you need to learn Linux, too. The easiest way to do that would be to download the current Ubuntu desktop version, make

Re: Recommended dev environment for a Django project deployed to Linode

2013-09-25 Thread Vernon D. Cole
tualenv, is there any method to provide something like a script >> to create a virtualenv, install the needed software and have a working >> environment in a few commands? Something like "vagrantfile for virtualenv" >> http://docs.vagrantup.com/v2/vagrantfile/index.ht

Re: Using environment variables in settings.py - good practice? How to handle missing variables gracefully?

2013-09-19 Thread Vernon D. Cole
There is indeed a better way: Structured Settings. Turn the usual pattern of having settings.py import local_settings.py upside down. Call your specific setting (you can specify it be altering the DJANGO_SETTINGS_MODULE environment variable in your virtualenv activation script) and it will im

Re: Recommended dev environment for a Django project deployed to Linode

2013-09-17 Thread Vernon D. Cole
Answering the other half of your question: The choice of IDE is not nearly as important as its ease of integration with your dvcs. If you are already familiar with a good one, don't change. On my present project, my boss and I are both using PyCharm, and my other co-worker is using Eclipse, s

Re: Recommended dev environment for a Django project deployed to Linode

2013-09-17 Thread Vernon D. Cole
I installed a client for my favourite distributed version control system on my Linode instance. I have a private repository on a public IP. (github, bitbucket, or launchpad will work, depending on your dvcs of choice -- I have used all three, and other times I have used a private dvcs host,

Re: Admin Center is not displaying

2013-08-05 Thread Cole Calhoun
ver()* > > Regards, > Phil > > On Sunday, August 4, 2013 12:57:33 AM UTC-3, Cole Calhoun wrote: >> >> I am running Python 2.7.4 and Django 1.5.1 on a Mac. >> >> I completed the first part of the "Writing your first Django app." >> tutorial (ht

Re: Admin Center is not displaying

2013-08-04 Thread Cole Calhoun
Thank you for the support. However, I tried that already and still nothing showed up. Not sure what I'm missing. -- 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: Admin Center is not displaying

2013-08-04 Thread Cole Calhoun
gt; comment) now in 1.6x django.contrib.admin comes active. until 1.5.x this > option is with comment #. > if doubt use > ./manage.py shell > import sys > for oque in sys.path: >print oque > > see all your entries for python and django libs, etc. > > > Em dom

Admin Center is not displaying

2013-08-03 Thread Cole Calhoun
I am running Python 2.7.4 and Django 1.5.1 on a Mac. I completed the first part of the "Writing your first Django app." tutorial (https://docs.djangoproject.com/en/1.5/intro/tutorial01/) and everything went as the tutorial explained. Once I got to the second part of the tutorial, it asked me to

Re: export .csv file from database

2013-06-19 Thread Vernon D. Cole
I am guessing that your csv writer is outputting something that your spreadsheet is reading incorrectly. Try opening the csv with a text editer (a good one, like Notepad++) so that you can really see what is going on. Embedded commas or quotes inside a field are invitations for disaster, and

Re: django's database system

2013-06-06 Thread Vernon D. Cole
You can write a "django management command" which runs on a workstation. https://docs.djangoproject.com/en/dev/howto/custom-management-commands/ I use this a lot for command-line operation to do batch processing kinds of things. Since "django is just Python", there is nothing to prevent you fro

Re: saving latitude and longitude values in django

2013-06-04 Thread Vernon D. Cole
Saving the values is the easy part. The format you use depends on what you want to do with them. If you are only displaying them to users, CharField might be okay. If you are going to do any processing, you should probably convert them. My storage is done like this: gpsLatitude = model

Re: how to import excel file into django models?

2013-06-02 Thread Vernon D. Cole
villages.) The python code which does the import is implemented as a set of manage.py command scripts. -- Vernon Cole On Saturday, June 1, 2013 3:21:33 AM UTC-6, Ali hallaji wrote: > > > -- You received this message because you are subscribed to the Google Groups "Django us

Re: Can I use Connector/Python instead of MySQLdb? And how?

2013-05-12 Thread Vernon D. Cole
On Saturday, May 11, 2013 7:43:40 PM UTC-6, icedr...@gmail.com wrote: > > I am using Python 3.3.1 and Django 1.5.1. MySQLdb doesn't support Python > 3, so I want to use Connector/Python instead. But I don't know how to do > this. > > Is it easy to do this? If it is, how can I do this? > > Thank

Re: Can I use Connector/Python instead of MySQLdb? And how?

2013-05-12 Thread Vernon D. Cole
The core developers are working on the problem as we speak. I would suggest using either another database engine or Python 2.7 until they get it going. I am guessing a few weeks, but that is only a guess. If you do use Python 2.7 be sure to follow the suggestions to write your code as 3.3 co

Re: Problem with Django 1.5.1 and django-pyodbc

2013-05-03 Thread Vernon D. Cole
version. If you don't mind switching horses in mid stream I would love to work with you. (Us old programmers need to stick together. ;-) -- Vernon Cole On Thursday, May 2, 2013 4:47:24 PM UTC-6, Kerry Calvert wrote: > > I have Django running on a Windows server with MS Sql using > dja

Beta testers wanted for Linux access to Windows data stores.

2013-04-28 Thread Vernon D. Cole
If any of you have good Microsoft SQL Server connections, I could use some help testing. Adodbapi has been around a long time -- an old fork of it is used in django-mssql. This version is designed to replace that one. I have added a new module in the package to let a Linux box get to Windows ADO

Re: RuntimeError: maximum recursion depth exceeded in cmp

2013-03-24 Thread Vernon D. Cole
You have an error in your "models.py" file. Note that the last message was "Validataing models...". Is there anything in models.py? In your sample script you never modify it. On Friday, March 22, 2013 1:23:46 PM UTC-6, tarik setia wrote: > > >

Re: LDAP search results "disappear"

2012-12-17 Thread Kevin Cole
On Mon, Dec 17, 2012 at 1:57 PM, Kevin Cole wrote: > And here I'll display my ignorance about threading. I've done nothing > specific to ask for threading. I wouldn't know how to thread even if I > had a sewing machine. ;-) I'm using apache prefork with mod-wsgi.

Re: LDAP search results "disappear"

2012-12-17 Thread Kevin Cole
On Mon, Dec 17, 2012 at 1:42 PM, Bill Freeman wrote: > Perhaps in the thread in which autoname is run, login has not yet been run. And here I'll display my ignorance about threading. I've done nothing specific to ask for threading. I wouldn't know how to thread even if I had a sewing machine. ;

LDAP search results "disappear"

2012-12-17 Thread Kevin Cole
Also asked on StackOverflow http://stackoverflow.com/questions/13918785/django-ldap-search-results-disappear Why in the code below, does the global *direktorie* return the correct data in the *login()* debug template, yet when I try to access the same variable from *autoname()* it says the list

Re: Hello World with Django

2012-09-19 Thread Vernon Cole
127.0.0.1 is -- by definition -- your local computer. You need to substitute the actual address of your remote server. On Sunday, September 16, 2012 3:24:02 PM UTC-6, python@hotmail.com wrote: > > > Hi, > > Can someone help me in this question? > > > http://stackoverflow.com/questions/123

Re: Can't add groups in the admin interface

2012-05-25 Thread Kevin Cole
P.S. Adding permissions to each user individually works (and those permissions are not ignored), and the database validates correctly according to "django-admin validate". -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Can't add groups in the admin interface

2012-05-25 Thread Kevin Cole
Hi, I'm using Django 1.3 with the "stock" admin interface. No customizations. In the Site Administration, I can add new users. However, if I try to add a group I get the Add Group screen, with the fields for name and selection of permissions, and the three save buttons at the bottom ("Save and

Django 1.3 online documentation ... error? ... quibble?

2012-05-18 Thread Kevin Cole
Hi, I'm once again attacking the Django with vigor. And THIS time, I've actually got some forward momentum and am approximating progress! Yay! ;-) In reading "Creating forms from models" (https://docs.djangoproject.com/en/1.3/topics/forms/modelforms/) I note the mention of a model field called

Bug in admin area in SVN

2009-06-18 Thread Cole Mickens
Sorry, this is my first time posting to a mailing list, I'm more used to a forum approach to such discussions... It appears there is a bug in the administrative area right now. The link to "Change Password" should be "/admin/password_change" but instead is current "admin/password_change" causing

Re: Admin css being weird

2009-04-29 Thread Cole
just to add, the images are actually working fine.. On 29 Apr, 22:57, Cole wrote: > Hi, > > I've used Django a fair bit and have just installed it on a ubuntu- > based distro.  I've got everything working fine with apache2 and > mod_python but the admin css, > >

Admin css being weird

2009-04-29 Thread Cole
e): I've deleted and redone the soft link a couple of times and tried trailing slashes in the apache2.conf declarations (below for reference) and it's made no difference. Please help! Cheers, Cole APACHE SETTINGS MaxRequestsPerChild 1 SetHandler python-progr

Re: Trying to wrap my head around nested regroups or other ways to handle ordered ForeignKey stuff

2009-04-15 Thread Kevin Cole
On Apr 14, 6:32 pm, Daniel Roseman wrote: > On Apr 14, 6:11 pm, Kevin Cole wrote: > > Hi, > > > First let me say I've looked at documentation, but feel a bit dyslexic > > when it comes to this stuff. > > > The situation: I have three tables: a servi

Re: Trying to wrap my head around nested regroups or other ways to handle ordered ForeignKey stuff

2009-04-14 Thread Kevin Cole
And... Never mind. Not sure how I missed it before, but it appears select_related() gets me what I want. I think... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Trying to wrap my head around nested regroups or other ways to handle ordered ForeignKey stuff

2009-04-14 Thread Kevin Cole
Hi, First let me say I've looked at documentation, but feel a bit dyslexic when it comes to this stuff. The situation: I have three tables: a service provider table with city, state abbreviation and country abbreviation (among other other info), a states table with state names, abbreviations, an

Re: How to obtain the difference between two related querysets?

2008-09-22 Thread Ben Butler-Cole
On Aug 14, 8:57 pm, DrakerNet2 <[EMAIL PROTECTED]> wrote: > How do I obtain thedifferencebetweenQueryset1 and 2 (i.e. how do I > obtain all records fromQueryset1 that do not appear inQueryset2? I've been trying to work this out as well. I have an answer, but not one that I'm very happy with. To

Re: Sets

2008-07-20 Thread Cole Tuininga
;t really warrant their own class - it's truly a set that is an attribute of a class. If I have to implement it as a many to many relationship with another class, then that's how it is. I suppose I could also do it as a bunch of named boolean attr

Re: Sets

2008-07-20 Thread Cole Tuininga
the most > secure way to import it is: Oops - sorry, I wasn't very clear in my original request. I'm looking for a set type in the Django model hierarchy. Does this make more sense? -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You

Sets

2008-07-19 Thread Cole Tuininga
Quick question for you folks - is there a native "set" type in the Django model system? I'm currently on 0.96.1. Thanks! -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Newbie Question: Is "ordering" a list or a tuple or both / either?

2008-04-14 Thread Kevin Cole
Hi, I'm following along in the book, and noticed that when "ordering" is used in the Meta class (Chapter 5, page 77) it is a list. However, later, when used in the Admin class (Chapter 6, page 91), it's a tuple. Testing it out, it seems to work okay either way, but I wondered if there was a goo

Accessing Session from urls.py

2008-04-13 Thread Cole Tuininga
on id. :) And if I could access the request object, I wouldn't need to go through that rigamarole, since I'd be able to just access request.session directly. Help? (I'm using Django 0.96.1, btw) Many thanks! -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~

Model design help

2007-07-28 Thread Cole Tuininga
#x27;t indicate ordering (most preferred to least preferred) per timeslot. Have I explained this well enough? Anybody have thoughts? -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Dynamically created fields for a newform

2007-07-10 Thread Cole Tuininga
h work into developing Django. -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.c

Dynamically created fields for a newform

2007-07-10 Thread Cole Tuininga
forms somewhere? Thanks in advance folks... -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goog

Re: Django Hosting

2006-10-23 Thread Hollywood Cole
With Webfaction+Django, you will need the option of long running process for mod_python in Apache. The Shared 2 with 40mb, will be enough to hold you down since you most likely will be developing and testing. By the way, I think its great your using Django as senior a project, I'm doing the same bu

Re: Django Hosting

2006-10-19 Thread Hollywood Cole
Just yesterday I switched from webfaction to rimuhosting. Webfaction is really good and really easy to get django started. The control panel is good at installing applications for you if/when you don't fell like going through the install. The reason I switched to rimuhosting is because I also wante

Re: {% include %}'d files not interpolating {% block %}s?

2006-09-05 Thread Cole Tuininga
out it. I'd been so gung-ho to separate out the "elements" into separate pieces, I just assumed everything would work out. :) I could probably do this. -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message becau

Re: {% include %}'d files not interpolating {% block %}s?

2006-09-05 Thread Cole Tuininga
in the template rather than having to pass it in as a variable from the view... -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

{% include %}'d files not interpolating {% block %}s?

2006-09-04 Thread Cole Tuininga
it "base.tmpl" %} and then simply do something like: {% block title %}The title for the particular template{% endblock %} However, when I render this, it turns out to *always* display with the default content from doc_head.tmpl (ie "Section Title"). Wh

Admin looking for media/css/null?

2006-08-27 Thread Cole Tuininga
LE lll.settings PythonDebug On Alias /media /usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/admin/media SetHandler None What am I doing wrong? -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~---

URLField limitations

2006-08-21 Thread Cole Tuininga
and to the authors of and contributors to Django - keep up the great work. It's much appreciated. -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Re: manage.py runserver throws error message

2006-08-19 Thread Cole Tuininga
causing some sort of name collision? -- Cole Tuininga http://www.tuininga.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegr

Re: manage.py runserver throws error message

2006-08-18 Thread Cole Tuininga
e.py runserver"? > > No, I didn't edit any line. > The tutorial doesn't say anything about editing lines (at least not at > this stage...) : > http://www.djangoproject.com/documentation/tutorial1/ > > What am I supposed to do? I'm running into the sa

Re: Connecting to database via Unix sockets

2005-11-20 Thread Ben Butler-Cole
Thanks for the pointer. It turns out that MySQLdb uses sockets by default if you specify 'localhost' as the server. That's fine for my purposes because my server is listening on the default. If anyone has MySQL listening on another socket file then Django will need to be a bit more configurable.

Connecting to database via Unix sockets

2005-11-19 Thread Ben Butler-Cole
Is it possible to get Django to connect to MySQL via a Unix socket file rather than on a TCP/IP port? I know that MySQLdb supports it, so I expect it's just a case of changing the way MySQLdb is called. If no one has done this before then I'll do it myself and submit a patch. Ben