Re: any open source complete django app to use as start

2009-10-12 Thread Chris Moffitt
Might as well pile on with Satchmo: http://www.satchmoproject.com -Chris On Mon, Oct 12, 2009 at 10:52 AM, Ben Rousch <brou...@gmail.com> wrote: > > On Mon, Oct 12, 2009 at 11:50 AM, Daniel Hilton <daniel.hil...@gmail.com> > wrote: > > > > 2009/10/12 shreko <

Re: Current Django tests fail?

2009-10-12 Thread Chris Withers
Tim Chase wrote: > Is there something obvious I missed? Hi Tim, I do wonder if you might get more help with these problems on the Django developers list? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplisti

FlatPage.objects.filter method: content_icontains attribute does not exist

2009-10-12 Thread chris
the content_icontains attribute isn't recognize by the 'filter' method. I've tried looking through the django api but don't understand how it's set up. What is the fix required here? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: newbie , need some help

2009-10-10 Thread Chris Withers
he Django book while you're at it? ;-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

required fields during object instantiation

2009-10-10 Thread Chris Withers
s.py", line 65, in __unicode__ return unicode(self.month.strftime('%B %Y')) AttributeError: 'NoneType' object has no attribute 'strftime' :-( Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http

Re: Templating wart

2009-10-09 Thread Chris Withers
british.assassin wrote: > You could do this: > > > {% for cell in row %} > > {% if forloop.first and row.url %}{{cell}} > {% else %} > {{cell}} > {% endif %} Then you're violating DRY on {{cell}}, which of course may be a lot mroe complicated than {{cell}}... che

Re: problems subclassing models

2009-10-09 Thread Chris Withers
Daniel Roseman wrote: > If your base model doesn't contain any fields, you should probably > mark it as abstract. > http://docs.djangoproject.com/en/dev/topics/db/models/#id6 Thanks, knew there'd be some magic I needed to invoke ;

Re: efficiently deleting content based on how old it is

2009-10-09 Thread Chris Withers
month names more than 6 back from the > current position and delete the records. I'm keen to use "real dates" as Tim suggested. Perhaps just using the 1st day in each month as the "month"? Chris --~--~-~--~~~---~--~~ You received this

Templating wart

2009-10-09 Thread Chris Withers
this such that I don't have to repeat the condition? DRY and all that... Chris --~--~-~--~~~---~--~~ 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@googlegrou

problems subclassing models

2009-10-08 Thread Chris Withers
subclass that. However, as soon as I did this, I started getting bizarre SQL errors, things like: ProgrammingError at /some/path relation "myapp_urlmodel" does not exist LINE 1: ...somefield1"."somefield2" FROM "myapp_modelname" INNER JOIN "myapp_urlm... Why i

Re: efficiently deleting content based on how old it is

2009-10-08 Thread Chris Withers
the Django ORM. Does the Django ORM have a sql abstraction layer like sqlalchemy where I can do the kind of thing you're proposing, or do I need to work with models? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consult

Re: iphone to website

2009-10-08 Thread Chris Withers
grant neale wrote: > Does anyone have a hint on where I should start, re: making the > website ready to receive this information? Doesn't the iPhone have a web browser? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simpli

efficiently deleting content based on how old it is

2009-10-08 Thread Chris Withers
and those services associated pages? (in this app, there could be about 3 million pages that are associated with each month though a bunch of service objects) cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.c

bulk import limits?

2009-10-08 Thread Chris Withers
it I'll need to chunk the data up into reasonable-sized xml files. My questions is: what limits the size of the xml file that can be imported with djangoadmin's loaddata command? What would people recommend as a maximum size of xml file to use with this command? cheers, Chris -- Simplistix

Switching from MySQL to PostgreSQL

2009-10-06 Thread Chris McComas
MySQL to PostgreSQL. Is there an easy way for us to take all of our data from our MySQL and move it over to PostgreSQL? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Is Django thread safe?

2009-09-30 Thread Chris Withers
the mod_wsgi list: http://googlegroups.com/group/modwsgi Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: developing and deploying django with zc.buildout

2009-09-30 Thread Chris Withers
really ending up on the python path. cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Is Django thread safe?

2009-09-28 Thread Chris Withers
Pythoni wrote: > Is Django thread safe?If so, from which version? > Thanks for reply The answer is most likely "no, but it doesn't matter". Why are you asking? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://

Re: is this a sane way to show total number of objects in pagination?

2009-09-25 Thread Chris Withers
Jani Tiainen wrote: > Chris Withers kirjoitti: >> Brian McKeever wrote: >>> .count is definitely the way to go. Although, I would probably pass it >>> to your template instead of determining it there. >> What difference does it make? > > len(qs) evalu

Re: re-using field definitions

2009-09-24 Thread Chris Withers
set all the common bits in the partial and only have the bits that are different in the field definition - DRY to the max :-P) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~-

Re: is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
Brian McKeever wrote: > .count is definitely the way to go. Although, I would probably pass it > to your template instead of determining it there. What difference does it make? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
Chris Withers wrote: > objects = model.objects.all() > paginator = Paginator(objects,10) > return render_to_response( > 'index.html',dict( > objects = paginator.page(page), > total_objects = len(objects), >

is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
), ) ) Is that the best way to get the total number of objects returned or is there a way I can do that which means the database does as little work as possible? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.c

Re: equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
tr(obj, val) > > Now in the template: > > {{ object|getattr:name }} I agree that it doesn't belong in the template language, but it's surprising that there's no standard filter to do this... Is there an open issue for this or should I raise one? Chris -- Simplistix - Content Mana

Re: equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
Maksymus007 wrote: > {{object.name}} ? no, that is the equivalent of: getattr(object,'name') I want: getattr(object,name) Subtle, but rather important, difference... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplisti

equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
%} What do I put in the marked spot to be the equivalent of getattr(object,name)? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this mes

serialization formats?

2009-09-23 Thread Chris Withers
Hi All, Where can I find docs on the actual serialisation formats used by Django's serialisation support? http://docs.djangoproject.com/en/dev/topics/serialization/#id1 ...lists them, but doesn't actually describe them :-S cheers, Chris -- Simplistix - Content Management, Batch Processing

specifying test-only dependencies with djangorecipe

2009-09-22 Thread Chris Withers
, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

composite primary keys?

2009-09-22 Thread Chris Withers
, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

IndexError: list index out of range

2009-09-21 Thread Chris McComas
I am trying to write to CSV, I was able to do so before, not sure what the problem is... When my query returns results, I get this error http://dpaste.com/96399/ Here's my view http://dpaste.com/96398/ If the query is empty it opens the CSV with only the header row... What am I doing wrong?

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
in learning. Thanks for any input, Chris --~--~-~--~~~---~--~~ 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.com To unsubscribe from this g

Re: djangorecipe questions

2009-09-18 Thread Chris Withers
James Bennett wrote: > On Thu, Sep 17, 2009 at 6:01 AM, Chris Withers <ch...@simplistix.co.uk> wrote: >> All of your problems seem to center on zipped eggs. These are evil >> things anyway, and can be avoided by simply putting zip_safe=False as a >> parameter to setu

Re: where to put tests?

2009-09-17 Thread Chris Withers
uite() function in the __init__ of your tests that returns all yours tests, which is a little bit limiting compared to other python test runners... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://w

where to put tests?

2009-09-17 Thread Chris Withers
testing frameworks? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: djangorecipe questions

2009-09-17 Thread Chris Withers
James Bennett wrote: > On Thu, Sep 17, 2009 at 5:23 AM, Chris Withers <ch...@simplistix.co.uk> wrote: >> Well, I'm certainly not setuptools-happy, but Django appears to be >> wrapped up as a standard distribution on PyPI (sorry, should have said >> distro, not egg), so

Re: djangorecipe questions

2009-09-17 Thread Chris Withers
ng http://jacobian.org/writing/django-apps-with-buildout/ and on a bit of a tight deadline, so don't know when I'll be able to get to this) cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~-

Re: Multiple implementations of django's authentication/authorization system

2009-09-16 Thread Chris Babcock
minister the site from 'wasting time' performing non-administrative functions. Hiding presence information for admins and/or creating an adminstrative class that doesn't have access to site features is better design and likely easier to implement. Chris Babcock signature.asc Description: PGP signature

djangorecipe questions

2009-09-16 Thread Chris Withers
sections, once for development and one for production, or is it more common to have a buildout.cfg and dev.cfg, with dev.cfg extending buildout.cfg? Finally, it's a shame that the projects generated by the project option are not eggs :-S Is there any reason for this? cheers, Chris

Re: PyFacebook and python-twitter

2009-09-13 Thread Chris Babcock
he existing HTTP connection. If python hosting is enabled then there will be no problems with those specific libraries. Asking customer service about support for such will only confuse them because it's an application level that's completely irrelevant to their service. Chris Babcock signature.asc Description: PGP signature

Re: Django ORM - Table Changes

2009-09-10 Thread Chris Czub
directly, depending on what your property is - in the case of a many-to-many relationship, for example, a join table is used. I'm sure you can figure out how to go from here, though. -Chris On Thu, Sep 10, 2009 at 1:31 PM, Thomas <thomas.e.rectenw...@gmail.com> wrote: > > I've been tea

Re: How to invoke hasNoProfanities?

2009-09-09 Thread Chris Withers
t; setting in conf > global_settings.py > > I'd appreciate some pointers. It's in the book, which is free to read online at http://djangobook.com/ cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
On Mon, 7 Sep 2009 13:08:47 -0600 Dj Gilcrease wrote: > >> How can i embedd vim in my django application? > > http://gpl.internetconnection.net/vi/ maybe? Where's the syntax highlighting? :-) signature.asc Description: PGP signature

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
hether the Vim source code exposes any useful functions for your application, however, is academic as there is no way to expose this functionality in a web page or service. Chris Babcock signature.asc Description: PGP signature

cache.set could be more functional

2009-08-29 Thread Chris McCormick
key to the default and return the default if the key isn't in the cache, or return the value if it is. Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: some teory help (sorry i couldnt find title for that question)

2009-08-28 Thread Chris Babcock
tries and if an entry is users (logged user i mean) > i want to show edit end delete options. How can i do that? You might be doing more work than you need to do: http://pinaxproject.com/docs/dev/search.html?q=tweets_keywords=yes=default ( or http://bit.ly/Yg7qb ) Chris signature.asc Description: PGP signature

Re: Single sign-in

2009-08-28 Thread Chris McCormick
Hi All, My workmate just pointed out that somebody has now done this. Hooray! <http://github.com/uswaretech/Django-Socialauth/tree/master> Chris. On Tue, May 05, 2009 at 05:15:16PM +0100, Chris McCormick wrote: > > Hi All, > > I am sensing a need for a library which allows

Re: duplicate primary key problem

2009-08-25 Thread Chris
I had this identical problem. Thanks for the help. Chris On Jul 10, 8:12 pm, adelaide_mike <mike.ro...@internode.on.net> wrote: > Very cool, Rajesh D.  Thanks. > > Mike > > On Jul 11, 12:31 am, Rajesh D <rajesh.dha...@gmail.com> wrote: > > > On Jul

Re: Backend Neutral DictCursor

2009-08-24 Thread Chris
argument 'cursor_factory' On Aug 24, 9:55 pm, Chris <chriss...@gmail.com> wrote: > There's no way to do this? > > On Aug 10, 8:47 am, Chris <chriss...@gmail.com> wrote: > > > You can get a backend neutral database cursor with > > django.db.connection.cur

Re: Backend Neutral DictCursor

2009-08-24 Thread Chris
There's no way to do this? On Aug 10, 8:47 am, Chris <chriss...@gmail.com> wrote: > You can get a backend neutral database cursor with > django.db.connection.cursor(). However, any results executed are > returned as nameless lists. Is there a way to get results returned as >

Re: String aggregator

2009-08-24 Thread Chris Withers
What is the error and traceback you get when you try to do the above? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribe

Reusable/plugable apps integrations best practices

2009-08-22 Thread Chris H.
So I'm trying to get my head around making my small, tightly focused apps reusable. I've done this, but right now still have "dependencies" between one another, that I'd like to remove. For simplicity sake, I have an Articles, Events, and Photos app. Right now each Article has a photos.photo

Re: Displaying username on every page

2009-08-20 Thread Chris McCormick
se? > > > > yes > > Thanks for the confirmation. In that case I'll have to write my own > render_to_response() wrapper. Or you can use direct_to_template(). Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this

Get results from query depending on another query

2009-08-18 Thread Chris McComas
I have a model that has a FK to django.contrib.auth.models Group. I run a query that gets all the groups that a user is a member of: groups = Group.objects.filter(user=request.user) Then I want to run a query for that model that gets and entries in that model where the group FK is one of the

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris McCormick
ttp://code.google.com/p/flot/> is an example of a library which uses the element to draw graphs. Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris Withers
why you want to draw lines... If it's for graphs and the like, just use matplotlib and generate the graphs on the server as .png or .pdf :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~--

Re: imitating a spreadsheet (kind of) with formsets

2009-08-11 Thread Chris Curvey
On Aug 10, 10:13 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-08-10 at 19:07 -0700, Chris Curvey wrote: > > What I want to do is have a series of forms, all next to each other in > > table format, like this: > > > Car     Honda    

Re: Dumping Large Databases

2009-08-11 Thread Chris Spencer
I guess I should have prefixed that by saying my goal is to migrate from MySQL to PostgreSQL. However, I'm having trouble finding a tool to do this, so I thought I'd try Django's backend neutral dumpdata/loaddata feature. Chris On Mon, Aug 10, 2009 at 9:48 PM, Malcolm Tredinnick<malc...@poi

Re: help with excel exports

2009-08-11 Thread Chris Withers
ting so far > indicates this is not browser independent Ultimately, your app has no business even trying to tell a browser where to save things. Most browsers nowadays save to a location configured by the user, if they right click and do something like "Save As" they will get dialog b

imitating a spreadsheet (kind of) with formsets

2009-08-10 Thread Chris Curvey
What I want to do is have a series of forms, all next to each other in table format, like this: Car Honda Toyota Chevy Price $12,000$14,000 $10,000 MPG 30 2826 Color Blue Red Yellow (I'm sure that's going to look like crap in

Backend Neutral DictCursor

2009-08-10 Thread Chris
.extras.DictCursor, but I'd rather avoid having to code around each specific backend. Regards, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Non-intrusive way to authenticate phpBB against Django

2009-08-04 Thread Chris McCormick
Hi All, Just uploaded this: http://code.google.com/p/phpbb-json-auth/ Hope it's useful to someone else. Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Changing domain cookie

2009-08-04 Thread Chris McCormick
On Tue, Aug 04, 2009 at 09:14:42AM +1000, Malcolm Tredinnick wrote: > > On Mon, 2009-08-03 at 17:51 +0100, Chris McCormick wrote: > > I have a strange issue happening with domain cookies. On the site I'm > > working > > Python's Cookie module doesn't handle multiple

Changing domain cookie

2009-08-03 Thread Chris McCormick
by unsetting SESSION_COOKIE_DOMAIN, so people can log in again successfully now, but I'd really like to be able to use the wildcard subdomain thing. Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you

Re: URL & DB question

2009-08-02 Thread Chris Withers
Rob B wrote: > Great I didn't know about that one. I'm curious to what are the > benefits of doing it that are? Less code for you to write and maintain :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simpli

Re: URL & DB question

2009-08-02 Thread Chris Withers
t_detail import object_detail urlpatterns = patterns('', (r'^(?P[\w\._-]+)/$', object_detail, {'queryset':Profile.objects.all()})) cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://w

Re: user profiles and the admin

2009-07-29 Thread Chris Curvey
rds, > > On Jul 28, 3:01 pm, Chris Curvey <ccur...@gmail.com> wrote: > > > I'm having a bit of a brain cramp here...I'm trying to add some extra > > fields to my user profiles, but I can't seem to get the fields to show > > up in the admin interface. I've added the a

user profiles and the admin

2009-07-28 Thread Chris Curvey
I'm having a bit of a brain cramp here...I'm trying to add some extra fields to my user profiles, but I can't seem to get the fields to show up in the admin interface. I've added the admin.py directory to my application root, but the fields obstinately will not show up in the admin interface.

Re: django-tel : telephone URL support for Django

2009-07-09 Thread Chris Moffitt
How is this different from the built in phone2numeric filter? http://docs.djangoproject.com/en/dev/ref/templates/builtins/#phone2numeric -Chris On Thu, Jul 9, 2009 at 5:27 PM, Aaron Maxwell <a...@hilomath.com> wrote: > > Hi everyone. > > I've put up a django application pr

Re: PyDev users: how do you manage tabs?

2009-07-02 Thread Chris Lawlor
Wayne I can't thank you enough!! As the author notes, the posted code is not cross-platform. I incorporated the fix recommended in the comments and posted here for anyone else that might want it: http://dpaste.com/hold/62468/ works fine on my windows machine, haven't tested on my Linux dev box

Re: PyDev users: how do you manage tabs?

2009-07-01 Thread Chris Lawlor
I have the same problem in Komodo Edit - although I the whole filename does show up in the window title I never think to look there. Anyway, I partially solved it by adding a comment at the top of the file for what app the file is for, so I'll see what I'm working on right there in the editor

Setting up TinyMCE with django-grappelli?

2009-06-26 Thread Chris O'Donnell
eed django- tinymce installed? Thanks, Chris --~--~-~--~~~---~--~~ 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.com To unsubscribe from th

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
can't get his head around it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
steveneo wrote: > I try to use Django in a new project. Honestly, it is very bad > experience. It looks not boosting my development speed. Today, I > almost give up and begin to look up another Python framework Go for it :-) Chris -- Simplistix - Content Management, Zope

FileField can't re-display invalid form with File upload widget filled-in?

2009-06-24 Thread Chris Shenton
I've got an app that wants a file upload and some other attributes. If the user fills in the file but has problems with the other attributes, it should re-present the form with the attributes filled with his values, including the name of the file that he selects. In use the example below

psycopg2.OperationalError: fe_sendauth: no password supplied

2009-06-23 Thread Chris Haynes
I've just installed postgresql and psycopg2. I supplied a password in the postgres install, but don't know how to supply it to psycopg2: ~/s/sd$ manage.py syncdb Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File

Re: psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
/opt/local/bin$ sudo port install py26-psycopg2 worked, after an incredible number of (presumably dependent) installs. Now I'm getting a password error, but I'll post that separately as it deserves a different title. thanks Chris On Jun 23, 8:33 pm, James Martin <jmar...@learningobjects.

psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
Using what I believe is the latest version of psycopyg, I get: 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build running build running build_py creating build creating build/lib.macosx-10.3-fat-2.6 creating build/lib.macosx-10.3-fat-2.6/psycopg2 copying lib/__init__.py ->

Re: Should this be its own app?

2009-06-19 Thread Chris Withers
e a separate project somewhere in your system path so that > all your projects can use it. Over engineering at the start is usually > counter > productive. Interesting, I'm pretty sure I remember Jacob saying almost the exact opposite in his Django tutorial at PyCon... Chris --

Django and CSS

2009-06-18 Thread Chris DPS
Hi, I'm new to Django. I've read the doc: http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs which is about static files but still do not quite understand what to call everything and it isn't working On my development machine, I want to use this hack and not deal with other

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-09 Thread Chris Stoyles
The only log entries I want committed are the ones that tell me why a roll-back occurred. What you've said below sounds like a good enough solution, thanks for all your input. Cheers, Chris On Mon, Jun 8, 2009 at 11:38 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Jun 8, 200

Bloxsom in Django

2009-06-09 Thread Chris McCormick
to the PyBloxsom developers, and thanks for their software which gave me a year of good service!). <http://mccormick.cx/news/entries/django-bloxsom> Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message becau

Re: Problems with view... not sure how to get the data to my template

2009-06-08 Thread Chris Stoyles
calls you make to net.append() supposed to be myrange.append() instead? Chris On Mon, Jun 8, 2009 at 11:46 AM, Mitch Anderson <xofre...@gmail.com> wrote: > > Below is what I have currently... it currently displays the numbers in > the range its supposed to, but tying the product

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-08 Thread Chris Stoyles
fails (again, except for any logging that has been done). The view contains a big try/except statement and the rollback is in the "except" part. I may have to approach this a different way, because it doesn't look like I can easily do a fine-grained commit. Cheers, Chris On Mon, Jun 8,

Re: Logging to Database while using @transaction.commit_manually decorator

2009-06-07 Thread Chris Stoyles
an insert statement via the database cursor the transaction management will still take place, is this correct? Cheers, Chris On Mon, Jun 8, 2009 at 8:11 AM, Karen Tracey <kmtra...@gmail.com> wrote: > On Sun, Jun 7, 2009 at 7:44 PM, ChrisStoyles <cstoy...@gmail.com> wrote: > >

Historical Records (as introduced in the Pro Django book)

2009-06-04 Thread chris
that satisfy certain conditions? I guess this stuff is a bit over my head, so any pointers are really appreciated, All the best, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Drill down combo boxes (Country, State, City)

2009-05-31 Thread Chris Moffitt
You want a chained select form & will need to use javascript to do it. I prefer jquery and have used the one here - http://www.codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/ The code demos are for PHP but it's simple enough to apply to Django. -Chris On Sun, May 31, 2009 at 1

Re: Obfuscate HTML..?

2009-05-25 Thread Chris Czub
What reason do you have for this? Security through obfuscation isn't a good strategy, especially with something as intrinsically open as HTML. If your site can be hacked just by being able to view the HTML then you have bigger problems to worry about than obfuscating it. On Mon, May 25, 2009 at

Re: runserver fails

2009-05-24 Thread Chris DPS
le.com", 80) > > -- dz > > On Sun, May 24, 2009 at 10:59 PM, Chris DPS <jasonyf...@gmail.com> wrote: > > > When I execute runserver, I get the following message: > > > Validating models... > > 0 errors found > > > Django version 1.0.2 final, usi

runserver fails

2009-05-24 Thread Chris DPS
When I execute runserver, I get the following message: Validating models... 0 errors found Django version 1.0.2 final, using settings 'mysite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Error: [Errno 10104] getaddrinfo failed And the

Re: Single sign-in

2009-05-23 Thread Chris McCormick
. There's a chance that I might be able to convince my client to let me do this work on a paid basis - will report back here if and when I get this off the ground. Best, Chris. On Fri, May 22, 2009 at 11:57:59AM -0700, Lakshman wrote: > > Hi, > > I now have this exact same

Re: Installing django

2009-05-21 Thread Chris Lawlor
Just to see what all the fuss is about, most of that video is the guy configuring his particular application. The actual Django install is very straightforward. On May 21, 1:53 am, Kenneth Gonsalves wrote: > On Thursday 21 May 2009 11:15:29 LeonTheCleaner wrote: > > >

Re: perfomance question

2009-05-21 Thread Chris Withers
Rodrigo Aliste P. wrote: > OH! It does it alone! Another awesome thing to my awesomeness list of > django. What was your solution in the end? I'm always interested this kind of batching of results, and I'm very new to Django... Chris -- Simplistix - Content Management, Zope &a

Re: help on outlook integration

2009-05-19 Thread Chris Withers
ct we are > able to access only outlook’s data. We are expecting header cookie and > response data from inbox page of outlook. I don't really understand how posting the same vague requirements once every 10-15 minutes is supposed to help other than by annoying everyone on this list...

Re: parsing data from fileupload

2009-05-18 Thread Chris Shenton
Oh, make sure your upload form specifies the 'enctype' attribute so it will actually send a file object, like: {% block content %} Upload a file... {{ form.as_p }} {% endblock %} --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: parsing data from fileupload

2009-05-18 Thread Chris Shenton
On May 18, 2009, at 12:12 PM, Patrick wrote: > > Well, I guess what I'm confused about is adding data that doesn't come > directly from forms. > I ended up doing this and it seemed to work. > > for line in file: >b=Book() >b.title=line >b.save() Here is how I do it, Model, Form,

Re: modelling question / many-to-many / intermediary

2009-05-15 Thread chris
the missing symmetrical property for myself, but this is okay. Have a nice day, Chris --~--~-~--~~~---~--~~ 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@google

modelling question / many-to-many / intermediary

2009-05-14 Thread chris
metric - I could try to create two PersonCollaboration- objects, but this is not really clean... Thanks a lot for your support, chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

pos small int, admin and max value errors

2009-05-13 Thread Chris
Hi All, I've been looking for a simple way to spec a "max_value" limit on a (model) positive small integer field to prevent admin from throwing an "out of range value" error. I realize that the concept "small int" may be db specific so I sought a simple way to trap the error in admin when too

Trouble starting up runserver

2009-05-12 Thread Chris DPS
I am new to Django. When I try to execute: python manage.py runserver, I get the following error Error: [Errno 10104] getaddrinfo failed What is going on and what should I do? I am running Django Version 1.0.2-final and Python 2.6 I have turned off all Firewalls. ping to localhost in the

Re: Trouble Starting Up with runserver

2009-05-11 Thread Chris DPS
py runserver 127.0.0.1:8000'? Or 'python manage.py runserver :8000' > > - Addy > > On Mon, May 11, 2009 at 12:40 PM, Chris DPS <jasonyf...@gmail.com> wrote: > > > So I've definitely shut off all Firewalls. > > It still is having the same problem. > > > HELP!

<    3   4   5   6   7   8   9   10   11   12   >