Re: staticfiles defaults broke my site

2010-11-02 Thread Carl Karsten
ting it enables the functionality. On Tue, Nov 2, 2010 at 12:31 AM, Russell Keith-Magee wrote: > On Tue, Nov 2, 2010 at 10:55 AM, Carl Karsten wrote: >> I am not completely sure what is going on, but pretty sure the new >> staticfiles thing is colliding with my existing >&

staticfiles defaults broke my site

2010-11-01 Thread Carl Karsten
I am not completely sure what is going on, but pretty sure the new staticfiles thing is colliding with my existing urlpatterns += patterns('', (r'^static/(?P.*)$', 'django.contrib.staticfiles.views.serve', {'document_root': 'static/','show_indexes': True})) That used to work, now I get:

Re: get_next_by_FOO allows nulls

2010-09-13 Thread Carl Karsten
On Sun, Sep 12, 2010 at 3:13 PM, Alex Gaynor wrote: > On Sun, Sep 12, 2010 at 1:09 PM, Carl Karsten wrote: >> On Thu, Aug 26, 2010 at 8:12 PM, Russell Keith-Magee >> wrote: >>> On Fri, Aug 27, 2010 at 2:12 AM, Carl Karsten >>> wrote: >>>> I wo

Re: get_next_by_FOO allows nulls

2010-09-12 Thread Carl Karsten
On Thu, Aug 26, 2010 at 8:12 PM, Russell Keith-Magee wrote: > On Fri, Aug 27, 2010 at 2:12 AM, Carl Karsten wrote: >> I would like to discus my patch to add support of nullable fields to >> get_next_by_FOO >> >> http://code.djangoproject.com/ticket/13611 >> >&

get_next_by_FOO allows nulls

2010-08-26 Thread Carl Karsten
I would like to discus my patch to add support of nullable fields to get_next_by_FOO http://code.djangoproject.com/ticket/13611 > You say "we" discussed this on IRC, but you don't say who "we" are. I forget who was involved in the IRC discussion - the point was that it was a lengthy debate and a

flatpages and 404

2008-05-28 Thread Carl Karsten
I just read over http://code.djangoproject.com/ticket/3335 and want to confirm a suspension that I would like to add to that 'thread' in an attempt to keep it closed: 404 processing happens, then the flat-pages code is given a chance to override it. This means that if the 404 processing fails

Unreviewed patches

2008-05-25 Thread Carl Karsten
6 days ago I submitted http://code.djangoproject.com/ticket/7254 and http://code.djangoproject.com/ticket/7269 No comments on either. Is there anything I can do to push them along? Carl K --~--~-~--~~~---~--~~ You received this message because you are subscribe

docs and doc strings

2007-11-03 Thread Carl Karsten
I just stumbled into some doc mush, and wondering if some code wouldn't make the world a more accurately documented place. It started with http://code.djangoproject.com/ticket/5870 which is basically help( send_mail ) says "NOTE: This method is deprecated. It exists for backwards compatibilit

Re: django oracle module contact

2007-10-15 Thread Carl Karsten
Ian Kelly wrote: > On 10/15/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Who has recently worked on django/db/backends/oracle code? I have some tips >> from the author of the oracle dbapi module. I am not actualy working with >> oracle, so it makes no sense

django oracle module contact

2007-10-15 Thread Carl Karsten
Who has recently worked on django/db/backends/oracle code? I have some tips from the author of the oracle dbapi module. I am not actualy working with oracle, so it makes no sense for me to go changing code. Carl K >>> 2. you do cx_Oracle, right? If so, I am wondering if this is the best w

odbc inspectdb

2007-10-11 Thread Carl Karsten
I am working on a db/backend/odbc module using cdODBC. Can someone review the mapping I came up with? I #ed the ones that didn't seem to have any that fit. description of the datatypes: http://ceodbc.sourceforge.net/html/vartypes.html # Maps type objects to Django Field types. DATA_TYPES_RE

polices policy [Was] "favicon",

2007-10-04 Thread Carl Karsten
Marty Alchin wrote: > I'll preface my thoughts with the disclaimer that I have authority > here, I'm just somebody who's been watching this discussion. I could care less about "favicon", but do care about the polices. If all you care about is coding, move on to the next thread. I have watched

Re: unit test error on win

2007-09-29 Thread Carl Karsten
already reported: http://code.djangoproject.com/ticket/5507 Carl K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com T

unit test error on win

2007-09-29 Thread Carl Karsten
$ svnversion 6435 using the settings_sqlite.py here: http://code.djangoproject.com/wiki/TestingDjango works ok on linux, got this on win. Carl K C:\home\python\django\django_src\tests>runtests.py --settings settings == FAIL:

Re: Django Tutorial

2007-08-07 Thread Carl Karsten
I liked doing the tutorial. I even go back to it often as a reference, especially for answerers to questions on IRC - I give them one of the 4 tutorial URLs and quote the part that answers there question. I think the Polls 'concept' is good. That said, here is what I can see bing done better

Re: DecimalField and 'decimal' module.

2007-07-23 Thread Carl Karsten
oggie rob wrote: > - Application "Santa Cruz" built with 0.91 using psycopg1. Running > for just under a couple of years and accessed regularly. > - Application "Curriculum" built with trunk using psycopg1. Added > about 2 weeks ago & accessed infrequently. > Are you sure this would happen? If

Re: test fail on win caused by setup.py

2007-07-17 Thread Carl Karsten
> fresh XP OS install, installed python, installed svn. > svn co http://code.djangoproject.com/svn/django/trunk/ src > > echo C:\django\src >> C:\Python25\Lib\site-packages\foo.pth > > Using runtests.bat and settings_sqlite.py shown here: > http://code.djangoproject.com/wiki/TestingDjango > No e

Re: test fail on win caused by setup.py

2007-07-17 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Mon, 2007-07-16 at 18:05 -0500, Carl Karsten wrote: >> I am trying to setup my site on a win box, not for production, but just to >> demo >> to a friend. I got errors, and so I tried the unit tests, and got 3 errors. >> (below) >>

Re: test fail on win + sqlite

2007-07-16 Thread Carl Karsten
Carl Karsten wrote: > Ran on a 2nd box. no fails. > > biggest diff I can think of: space in dir name of dir I was in on the first > box. Any chance of this? another diff: used setup.py install on box with 3 errors, manually created dj.pth on the box with no err

Re: test fail on win + sqlite

2007-07-16 Thread Carl Karsten
Ran on a 2nd box. no fails. biggest diff I can think of: space in dir name of dir I was in on the first box. Any chance of this? Carl K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" gro

Re: runtests.py defaults

2007-07-16 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/4/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> how about supplying the following 3 line tests/settings.py and making it the >> default? > > I'm not sure I see the value. The simple case is trivial to set up; > committing

test fail on win + sqlite

2007-07-16 Thread Carl Karsten
I am trying to setup my site on a win box, not for production, but just to demo to a friend. I got errors, and so I tried the unit tests, and got 3 errors. (below) The summary from IRC: (04:46:25 PM) mattmcc: Hmm. Two translation issues, and a unicode issue. and a description of the problem

Re: db parameter impemtation

2007-07-12 Thread Carl Karsten
> By the way, there's one case where we can't always use parameters: IN > value lists. Converting Python tuples to a correctly formatted list > appropriate for IN-clauses isn't a standard part of the DB-API, so we do > that via manual substitution. know off hand where that is? I might be able t

Re: db parameter impemtation

2007-07-12 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/12/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> Jacob Kaplan-Moss wrote: >>> OK, we're 8 messages deep into this thread, and I've got no idea what >>> the point is. >>> >>> Carl -- what is it you wan

Re: db parameter impemtation

2007-07-11 Thread Carl Karsten
Jacob Kaplan-Moss wrote: > OK, we're 8 messages deep into this thread, and I've got no idea what > the point is. > > Carl -- what is it you want to know? Is something not working > correctly for you, or is this just an academic question? > When I see SQL parameters being put into the SQL comman

Re: db parameter impemtation

2007-07-11 Thread Carl Karsten
James Bennett wrote: > On 7/11/07, Marty Alchin <[EMAIL PROTECTED]> wrote: >> This sounds like a strange way to ask if Django is using prepared >> statements[1] or their equivalents, rather than simply supplying >> values directly within the SQL statement itself. To my knowledge, >> Django doesn't

Re: db parameter impemtation

2007-07-11 Thread Carl Karsten
Marty Alchin wrote: > On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> What is djagoo's approach to passing values to the back end: >> >> A) create a string that is the SQL command and the values, pass that string >> to >> the db module. >

Re: db parameter impemtation

2007-07-11 Thread Carl Karsten
Jacob Kaplan-Moss wrote: > On 7/11/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> What is djagoo's approach to passing values to the back end: > > Django builds on the standard Python DB-API (aka PEP 249: > http://www.python.org/dev/peps/pep-0249/). Read that PEP for

db parameter impemtation

2007-07-11 Thread Carl Karsten
I have not dug into the code much, but I did find this: def get_db_prep_save(self, value): # Casts dates into string format for entry into database. if value is not None: value = value.strftime('%Y-%m-%d') return Field.get_db_prep_save(self, value) An

sensitive data on error page?

2007-07-10 Thread Carl Karsten
I am considering adding a 'paste to http://dpaste.com"; button to the error page template, but not if the security nutz are going to say it makes it too easy for people to expose stuff that shouldn't be exposed. So, if such a button were created, what would you nutz-os say? Carl K pw, hat's

Re: urlconf, strings vs. callables

2007-07-10 Thread Carl Karsten
James Bennett wrote: > On 7/10/07, Sean Patrick Hogan <[EMAIL PROTECTED]> wrote: >> The "pythonic" way is a new addition to Django if I'm not mistaken. > > Yes, it was added between the 0.95 and 0.96 releases. > >> I personally prefer calling by string because (I'm assuming here) it doesn't >> l

Re: runtests failures

2007-07-06 Thread Carl Karsten
>> >> Got an error creating the test database: (1007, "Can't create database >> 'django_t >> est_db'; database exists") >> >> It seems stuck there? perhaps I should mysql> drop database django_test_db; >> but that should never be done, right? :) > > It will be asking you if you want to drop the

Re: runtests failures

2007-07-05 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Thu, 2007-07-05 at 12:50 -0500, Carl Karsten wrote: >> I'm slowly getting this a bit more readable, but I won't post duplicates. > > Are you asking for help diagnosing these or trying to report a bug? > You've just posted a

Re: please help! need to know python version

2007-07-05 Thread Carl Karsten
I think you may want to /join #python on irc or somehting, because there really wasn't an answer given, so not sure what answer you think you got. Python code is not developed in Python. that can be debated, but for the purposed of this thread, I think it fits. That is like asking "what kind

runtests failures

2007-07-05 Thread Carl Karsten
I'm slowly getting this a bit more readable, but I won't post duplicates. Carl K Updated to revision 5620. ./runtests.py --settings settings_sqlite 2>&1|tee --append runtests.log ./runtests.py --settings settings_mysql 2>&1|tee --append runtests.log sqlite (failures=2) mysql (failures=5)

Re: make db form settings

2007-07-05 Thread Carl Karsten
Russell Keith-Magee wrote: > On 7/5/07, Nis Jørgensen <[EMAIL PROTECTED]> wrote: >> Carl Karsten skrev: >>> I have the begging of something that may eventually get submitted, and >>> looking >>> for guidance as I build it. >>> >>> In th

Re: make db form settings

2007-07-04 Thread Carl Karsten
Adrian Holovaty wrote: > On 7/4/07, Max Battcher <[EMAIL PROTECTED]> wrote: >> I'm not sure if there is a large enough need for your script, Carl K. >> Creating the databases themselves should be a rare activity. > > Agreed. One should only have to create a database once. It's dropping > and crea

make db form settings

2007-07-04 Thread Carl Karsten
I have the begging of something that may eventually get submitted, and looking for guidance as I build it. In the spirit of DRY, I have a nifty script that helps create the db defined in settings.py #!/usr/bin/env python # mkdbuser.py # prints the CREATE DATABASE and GRANT commands based on th

runtests.py MySql failures=2

2007-07-04 Thread Carl Karsten
DATABASE_ENGINE = 'sqlite3' ./runtests.py - no errors. change to: DATABASE_ENGINE = 'mysql' (first time running the tests on MySql, so chance something is hozed on my end.) [EMAIL PROTECTED]:~/django/django-src/tests$ ./runtests.py --settings settings ==

runtests.py defaults

2007-07-03 Thread Carl Karsten
how about supplying the following 3 line tests/settings.py and making it the default? [EMAIL PROTECTED]:~/django/django-src/tests$ cat settings.py # tests/settings.py DATABASE_ENGINE = 'sqlite3' ROOT_URLCONF=None SITE_ID=1 [EMAIL PROTECTED]:~/django/django-src/tests$ ./runtests.py --settings

Re: requiest new list: 3rd party

2007-07-02 Thread Carl Karsten
Adrian Holovaty wrote: > On 7/1/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> The d-users list is getting pretty high volume, and I think it would help to >> split some off that isn't really django but "something built with django." > > It seems like

Re: requiest new list: 3rd party

2007-07-02 Thread Carl Karsten
Jeremy Dunck wrote: > On 7/1/07, Carl Karsten <[EMAIL PROTECTED]> wrote: >> The d-users list is getting pretty high volume, and I think it would help to >> split some off that isn't really django but "something built with django." > > It doesn't se

requiest new list: 3rd party

2007-07-01 Thread Carl Karsten
The d-users list is getting pretty high volume, and I think it would help to split some off that isn't really django but "something built with django." Is this the right place to make such a suggestion? Carl K --~--~-~--~~~---~--~~ You received this message beca

Re: no attribute 'get_max_name_length'

2007-06-27 Thread Carl Karsten
Carl Karsten wrote: > This just came up - let me know if you need more info. > im CarlFK in #django > > Carl K > > [EMAIL PROTECTED]:~/django/django-src$ > ... > Updated to revision 5556. > > > [EMAIL PROTECTED]:~/django$ django-admin.py startproject foo >

no attribute 'get_max_name_length'

2007-06-27 Thread Carl Karsten
This just came up - let me know if you need more info. im CarlFK in #django Carl K [EMAIL PROTECTED]:~/django/django-src$ ... Updated to revision 5556. [EMAIL PROTECTED]:~/django$ django-admin.py startproject foo [EMAIL PROTECTED]:~/django$ cd foo [EMAIL PROTECTED]:~/django/foo$ python manage.

Re: Shared memory across processes

2007-06-26 Thread Carl Karsten
Marty Alchin wrote: > I expect this isn't the best way to ask this, but this is where the > dbsettings saga has played out so far, and you guys have a good idea > of what I'm trying to do, so I'm asking anyway. > > The biggest hurdle to dbsettings at this point is that it caches > settings in a s

Re: BooleanField and NullBooleanField (#2855 again)

2007-06-24 Thread Carl Karsten
Mads Sulau Joergensen wrote: > Hi. > > Having looked at #2855 and wondered the resolution of that ticket, i > wanted to raise the discussion again. > > To me, and many others, it makes absolutly no sense, that a > BooleanField with no default value given, sould yield a SQL error > uppon saving i

Re: boulder-oracle-sprint branch has been merged into trunk!

2007-06-23 Thread Carl Karsten
Malcolm Tredinnick wrote: > On Sun, 2007-06-24 at 00:23 +1000, Malcolm Tredinnick wrote: >> In [5519] I have committed the Oracle branch changes into trunk. > > As usual, there's something I forgot... > > I flopped around quite a bit when setting up Oracle server and getting > my settings right

Re: inspectdb hack

2007-06-12 Thread Carl Karsten
Carl Karsten wrote: > I want to make a mod that may or may not ever be accepted into trunk - for > now > lets assume this will never leave my box. > > The goal is to have inspectdb create classes that use django's key > management, > so instead of creating

inspectdb hack

2007-06-12 Thread Carl Karsten
I want to make a mod that may or may not ever be accepted into trunk - for now lets assume this will never leave my box. The goal is to have inspectdb create classes that use django's key management, so instead of creating this: class Assetlist(models.Model): kAssetList_pk = models.CharFi