The setlang view

2007-09-23 Thread Chris Hoeppner
Hi there! As I see, there has been a little change to the setlang view: It only accepts POST requests. This wasn't the case when I last did a localized site. Now, either my html knowledge needs an update, or this makes it impossible to make a simple "menu" showing flags for each language, without

Re: Two newform best practice questions

2007-09-25 Thread Chris Hoeppner
> 1) What is best practice to populate a custom form with instance data? Use form = Form(data_dict) and you're done. This also triggers validation, so it might not be exactly what you want. Though, it's the only way I know of. > 2) What is the recommended way to create a single custom form that >

Re: View didn't return an HttpResponse object?

2007-09-25 Thread Chris Hoeppner
return render_to_response (...) El mar, 25-09-2007 a las 10:14 +, Ryan K escribi�: > > from django.http import HttpResponse, Http404 > from django.template import RequestContext > from django.shortcuts import render_to_response > > def verify_sl(request): > if request.method == 'GET': >

Re: Multiple Django Projects Under One Directory

2007-09-26 Thread Chris Brand
o correctly invoke an application in > testsite and vise-versa. > > What am I missing? > > You may well need to add a PythonInterpreter directive to both those sections. See http://djangoproject.com/documentation/modpython/#multiple-django-ins

sslerror exception connecting to gmail smtp

2007-09-28 Thread Chris Kelly
I'm trying to use the new(ish) TLS functionality to send email via gmail's SMTP server, and I am getting an exception: Exception Type: sslerror Exception Value:The read operation timed out I am running latest trunk on Python 2.3.5. I'm hoping this isn't a py2.3 issue, but fear it may be.

Re: sslerror exception connecting to gmail smtp

2007-09-28 Thread Chris Kelly
ually upgrading to Py2.4 or 2.5 is a better solution if you can rather than hacking the django mail file :). -C On Sep 28, 11:50 am, Chris Kelly <[EMAIL PROTECTED]> wrote: > I'm trying to use the new(ish) TLS functionality to send email via > gmail's SMTP server, and I am getting

Problem with MultipleChoiceField

2007-10-01 Thread Chris Brand
x27;X: \n > f.choices = [('1','1')] > f2.as_p() u'X: \n1 Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Template category / subcategory with for loops?

2007-10-01 Thread Chris Moffitt
mplatetags/satchmo_category.py I can't guarantee it's the best implementation but it works so feel free to use it as a guide. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: confused over using ORM in view/template

2007-10-03 Thread Chris Brand
Chris Brand wrote: > staff-gmail wrote: >> Where is "choice_set" coming from ?? > That one's easy - > http://www.djangoproject.com/documentation/db-api/#backward > > Chris > Oh, and the explanation for it's use in a template is at http://www.djangopr

Re: confused over using ORM in view/template

2007-10-03 Thread Chris Brand
staff-gmail wrote: > Where is "choice_set" coming from ?? That one's easy - http://www.djangoproject.com/documentation/db-api/#backward Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: Plz, I am just new to Python...

2007-10-04 Thread Chris Hoeppner
rate over to linux (keep your flamethrowers, sons of M$!!), or finally make the step for a mac. You'll never look back, believe me. I hope all of this didn't sound too vague. ~Chris --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: NewForms Choice Field Working ?

2007-10-04 Thread Chris Brand
ug # to hand, though. You can work around it in 0.96 by explicitly setting the widget : Myform.base_fields['prefix'].widget = widgets.Select(choices=SALUTATION) Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: nesh thumbnails error after moving to unicode

2007-10-05 Thread Chris Moffitt
We've made mods to the thumbnail code to work with Satchmo and more recent django checkouts. You can see it here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/thumbnail -Chris --~--~-~--~~~---~--~~ You received this message because yo

Re: installation necessary?

2007-10-06 Thread Chris Hoeppner
xecution environment, though. This means PythonPath for mod_python and PYTHONPATH for anything shell based. If you can, put it in site-packages (even if it's just a symlink). It's already on the path, and will Just-Work(tm). ~Chris El s�b, 06-10-2007 a las 09:47 +0200, horace escribi�: >

Re: Django template language

2007-10-06 Thread Chris Hoeppner
es, extending a common base. ~ Chris El s�b, 06-10-2007 a las 12:03 +0200, Bernd escribi�: > Hello, > > I'm new to web development and Python. I helped a friend with his > website, which is written in PHP. But the source code is so bad, that > I > decided to rewrit

Re: Admin Media on a VServer

2007-10-06 Thread Chris Hoeppner
What's a VServer? Are you speaking about virtualization? In that case, it doesn't make a difference. As for it working on windows and macos, and not on linux, you might want to give us a few more details about the setup. El s�b, 06-10-2007 a las 10:13 -0700, niklas.voss escribi�: > I have a VServ

Django-multilingual

2007-10-07 Thread Chris Hoeppner
e, and conditionally outputting based on the LANGUAGE context var? It seems cleaner and more flexible the way django-multilingual goes, but the alterations are frightening me a bit. ~Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Django-multilingual

2007-10-08 Thread Chris Hoeppner
t; admin edit page and allows edit entry in all languages very simple). > Use it! > > Chris Hoeppner: > > Hi there! > > > > I wonder if someone has been using django-multilingual. I'd like to > > "push it into" a live database, and am wondering what k

Re: Plz, I am just new to Python...

2007-10-10 Thread Chris Hoeppner
you'd also need a python interpreter, but since you talked about site-packages, I guess that's done already ;) You might also want to setup a database. El mi�, 10-10-2007 a las 00:43 -0700, lispingng escribi�: > actually django templates look more like php smarty templates. > i also am from php a

Re: Users vs Sites

2007-10-10 Thread Chris Hoeppner
on is not built into the admin in any way, you'd find yourself doing custom admin views, which is neither bad nor hard, but you might feel overwhelmed by the task, since it's a bit hard to grasp at first. ~Chris El mi�, 10-10-2007 a las 07:51 -0700, MarcoX escribi�: > Hi

Re: Users vs Sites

2007-10-11 Thread Chris Hoeppner
x27;s. And when it's done, there is the thing I'd call "let the admin know about it". What kind of system are you pretending to build? Maybe a few more details could get me on the right track. ~ Chris El mi�, 10-10-2007 a las 10:20 -0700, MarcoX escribi�: > thank you, Chris. &

Re: questions about form_for_model

2007-10-12 Thread Chris Brand
it's this one : http://code.djangoproject.com/ticket/3268 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

Re: Managing django projects

2007-10-15 Thread Chris Hoeppner
It's always easier to have your own "working copy" of a certain project. Tools like bazaar and subversion come in handy for this too ;) El lun, 15-10-2007 a las 15:01 +, Rytis Sileika escribi�: > Hi, > > I was just wondering, what are the best practices to setup/manage > django projects? >

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Hi guys! Thanks for those responses. So, the random.randint function does exist: # python Python 2.3.5 (#1, Aug 25 2005, 09:17:44) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import random >>> random.randint > A

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Thanks, Malcolm! For some reason, updating django to trunk solved it. My system admins told me kindly that it's not their problem. Very nice indeed. El vie, 19-10-2007 a las 21:12 +1000, Malcolm Tredinnick escribi�: > On Fri, 2007-10-19 at 11:56 +0100, Chris Hoeppner wrote: >

Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
Hey guys! I have no choice but deploy to this server, running CentOS 4.4, with no option to upgrade python beyond 2.3, and I'm getting this: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/a

unique_for non-date field

2007-10-18 Thread Chris H.
I am building a website for an annual event. Part of the site will allow the administrators to post news articles that cover the event. I envision my URLs looking something like: example.com/2007/articles/ example.com/2007/articles/article-1-slug-here/ example.com/2008/articles/ example.com/2008

Re: Python 2.3 deployment

2007-10-19 Thread Chris Hoeppner
> On Fri, 2007-10-19 at 11:56 +0100, Chris Hoeppner wrote: > > Hey guys! > > > > I have no choice but deploy to this server, running CentOS 4.4, with no > > option to upgrade python beyond 2.3, and I'm getting this: > > > > Mod_python error: "PythonHa

Re: Authenticating static content when not using mod_python

2007-10-22 Thread Chris Moffitt
ged down with the file system and you have the option to do as much checking as you want (in Django) before sending the file. It's been pretty straightforward so far but I haven't extensively tested it. -Chris --~--~-~--~~~---~--~~ You received this m

ANN: Satchmo 0.6 Released

2007-10-30 Thread Chris Moffitt
that have been added since the last release in August. -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 unsubs

Re: ANN: Satchmo 0.6 Released

2007-10-31 Thread Chris Moffitt
That's embarrassing. It's up for me now. There have been some spurious routing issues but it looks fine now. Are you still not seeing it? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: newforms ModelChoiceField queryset

2007-11-06 Thread Chris Brand
ctly : ticketform.fields['server'].widget.choices = ticketform.fields['server'].choices (after changing the field's choices, obviously) Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: webhostingbuzz, anyone tried

2007-11-08 Thread Chris Hoeppner
Is anyone on the MediaTemple Django Container Beta Program? El jue, 08-11-2007 a las 17:59 +, hass escribi�: > I too am on webfaction, it's worth it, and dirt cheap. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django Plug-ins, Modules, Forums, Wikis, etc.

2007-11-12 Thread Chris Moffitt
gosites.org/ 4) ECommerce? > Any modules at all? Shopping carts, etc? Near and dear to my heart - http://www.satchmoproject.com -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Questions about css in templates

2007-11-15 Thread Chris Rich
Hi all, I'm new to Django and new to html/css/webdesign in general. I have a question about how to have my base.html template point to the correct directory where I store my .css file for my site. I noticed in the admin version, the admin .css is store in the subdirectory /media/css/. This

Deploying Django

2007-11-15 Thread Chris Hoeppner
7;t tell how good or bad these approaches work. Well, just to know. What are you using? This should also be useful for my "little" project, the django deployer, still unnamed. -- Chris Hoeppner <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received

Re: Questions about css in templates

2007-11-15 Thread Chris Rich
Ok, I just got it to work by using the {% include %} tag. Is this a fine way to include css stuff or should I not use this for some reason? Chris On Nov 15, 3:41 pm, Chris Rich <[EMAIL PROTECTED]> wrote: > Okay, > I think I am still doing something wrong. > > So, I went

Re: Questions about css in templates

2007-11-15 Thread Chris Rich
Gotcha, Ok back to trying to figure out how to make it work properly. If you have any comments to my 2nd post that would be greatly appreciated. Chris On Nov 15, 3:57 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Nov 15, 6:54 pm, Chris Rich <[EMAIL PROTECTED]> wrote: > > &

Re: Questions about css in templates

2007-11-15 Thread Chris Rich
Awesome, Its working now. Thanks again! Chris On Nov 15, 4:16 pm, Chris Rich <[EMAIL PROTECTED]> wrote: > Thanks for the advice! > > I'll go try it right now and let you know how it goes. > > Chris > > On Nov 15, 4:03 pm, RajeshD <[EMAIL PROTECTED]> wro

Re: Questions about css in templates

2007-11-15 Thread Chris Rich
Thanks for the advice! I'll go try it right now and let you know how it goes. Chris On Nov 15, 4:03 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > MEDIA_ROOT = 'C:/Documents and Settings/Nserc2/My Documents/ > > mytemplates/media' > > > MEDIA_URL = /mym

Re: Questions about css in templates

2007-11-15 Thread Chris Rich
and received a 404 error. Thanks in advance for any help. Sorry if what I am explaining is still unclear. Chris On Nov 15, 12:24 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > > > > ...but it doesnt like that. I've tried typing in the full path name > > and that

Re: Deploying Django

2007-11-16 Thread Chris Hoeppner
favorite > production deployment enviroment). > > In my setups, the Lighty/FCGI combo seems to use server memory more > effectively than Apache/mod_python (in my tests. YMMV) I've been hearing a lot about the lighty+fcgi combo lately. I'll bear that in mind

ImageField file naming

2007-11-20 Thread Chris Hoeppner
ctory. let's keep the original filename". Just brainstorming, anyways. I don't know enough about Django internals to come up with a patch like this. ~ Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Django Web Hosting Service

2007-11-21 Thread Chris Hoeppner
ugh they're still in Beta, and not publicly available, you could try to ask them if you could get a container to try it. You'll need a grid server account, though. Good Luck. ~ Chris El mi�, 21-11-2007 a las 05:57 -0800, cwurld escribi�: > http://www.webfaction.com/ > > T

Re: Django Web Hosting Service

2007-11-22 Thread Chris Hoeppner
Yeah, Slicehost have a nice name in the industry, though you gotta order with some time in advance. Don't rely on them for "I need a server for yesterday" situations ;) ~ Chris El jue, 22-11-2007 a las 04:37 -0800, [EMAIL PROTECTED] escribi�: > > > Can anybody re

Re: ImageField file naming

2007-11-23 Thread Chris Hoeppner
El mar, 20-11-2007 a las 15:41 -0500, Marty Alchin escribió: > On Nov 20, 2007 3:33 PM, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > It would be nice to be able to include this in the upload_to parameter. > > Something like > > 'upload/%(model_name)s/%(inst

Re: How to make such query with django ORM?

2007-11-29 Thread Chris Hoeppner
Actually, the QuerySet objects are lazy. This is, there's no such query until you access the data. Or so do I believe. El jue, 29-11-2007 a las 01:23 -0800, SmileyChris escribi�: > On Nov 28, 9:08 am, Eratothene <[EMAIL PROTECTED]> wrote: > > I need to get all blogs that belong to certain user

Re: low-level cache & pagination

2007-11-30 Thread Chris G
Alright, I think I answered my own question. It seems the current RequestContext is a little messed up and not only requests cache to be remade, but also crashes runserver upon more than 1 request. On Nov 30, 7:26 pm, Chris G <[EMAIL PROTECTED]> wrote: > I have a large query that i

Re: ImageField file naming

2007-11-30 Thread Chris Hoeppner
of it working, but the pk thing doesn't work on any of them. Any help, please? ~ Chris El mar, 20-11-2007 a las 15:41 -0500, Marty Alchin escribi�: > On Nov 20, 2007 3:33 PM, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > It would be nice to be able to include this in the up

low-level cache & pagination

2007-11-30 Thread Chris G
I have a large query that is ran and takes about 50 seconds to completely and is pretty resource intensive. So what I have done is cached it into a key via cache.set('my_query_results', results, 300) The problem is that I also use pagination which results from this query. So when navigating to ?p

Re: Do away with django's support for python 2.3?

2007-12-02 Thread Chris H.
ystem utilities, so they're more vocal about not asking folks to upgrade the install that comes with your distro. Chris H. On Dec 2, 12:51 am, Sean Perry <[EMAIL PROTECTED]> wrote: > AmanKow wrote: > >> Also, in practice, there are a *lot* of > >> installations sti

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Chris Moffitt
On my blog post here - http://www.satchmoproject.com/blog/2007/sep/25/optimizing-django-vps-setup/ I wrote some of my tips for configuring MySQL to use less memory. I also have some general thoughts on vps setup for django apps. HTH, Chris

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Chris Moffitt
Sounds like this bug - http://code.djangoproject.com/ticket/6063 which was supposed to be fixed in [6895]. Are you sure you have the most recent checkout? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: get choice value in Form

2007-12-07 Thread Chris Brand
returns the "key", not the value Once you've saved the model, there's also the get_age_display() method (http://www.djangoproject.com/documentation/db-api/#get-foo-display). Looking at the code for that might give you more ideas. Chris --~--~-~--~~~--

Re: Country, State and City data

2007-12-11 Thread Chris Moffitt
database with a lot more info in it. There is also info about how to download and install in MySql databases. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Problem trying to configure Django with FastCGI and Lighttpd

2007-12-17 Thread Chris Moffitt
and see if that helps. -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 group, send email

Re: Problem trying to configure Django with FastCGI and Lighttpd

2007-12-17 Thread Chris Moffitt
In your mysite.fcgi script, just pass in the variable "prefork" instead of threaded. The other thing you could try is to use the ip address instead of 127.0.0.1. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to

admin interface startup problems

2007-12-25 Thread Chris Haynes
Following the book, with today's svn checkout of django and a few necessary adjustments, I've gotten things to work until page 84, where I'm stuck in multiple ways. Help greatly appreciated. Trying to visit the admin site in Firefox I get AttributeError at /admin/ 'WSGIRequest' object ha

no such table: django_content_type

2007-12-26 Thread Chris Haynes
I add 'django.contrib.auth', to my INSTALLED_APPS. This seems necessary to use the admin interface, for I get prompted for the superuser login and password when I run syncdb. But then after table creation, (whether I decline to enter the superuser info or not), I get a no such table: django_conten

'WSGIRequest' object has no attribute 'user'

2007-12-29 Thread Chris Haynes
x27;t see the admin login screen. I'm using urlpatterns = patterns( '', (r'^submit/', submit), (r'^time/$', current_datetime), (r'^admin/', include('django.contrib.admin.urls')), ) Any more thoughts much appreciated. Chris On

Segmentation Fault on Syncdb

2007-12-30 Thread Chris Hoeppner
Hi there, I'm getting a segmentation fault on syncdb. No further output. On a pretty much vanilla ubuntu feisty box on grokthis. Output is as follows: # ./manage.py syncdb Segmentation fault # I wonder if this is somewhat a known issue or am I the one missing something? Never got this before.

Re: Django Cheat Sheet - Lost?

2006-09-23 Thread Chris Long
Search on google gave: http://www.woodpecker.org.cn:9081/classes/050925-CPUG/django_reference_sheet.pdf#search=%22django%20reference%20sheet%22 http://code.djangoproject.com/wiki/DjangoCheatSheet Chris --~--~-~--~~~---~--~~ You received this message because you

Re: show_all_rows = False returns db error message

2006-09-25 Thread Chris Long
Try updating to the latest revision, there was a bug I fixed a few days ago that was causing this error for a lot of people. If it still doesn't work, please pastebin your model, and let us know the database system you are using and the steps taken.

Re: Shopping carts with Django?

2006-09-29 Thread Chris Moffitt
Once you get on the list, let me know which trac page is broken - I can't seem to find it when I browse the site. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Shopping carts with Django?

2006-09-29 Thread Chris Moffitt
p/templates/shop/product.html > 67 shop/templates/shop/shop_homepage.html > 43 shop/templates/shop/thanks.html > > > Thanks for the code snippets. If you'd like to help with Satchmo, feel free to check it out. Is your code in an SVN repository somewhere? It would

Re: automatically login after email confirmation

2006-10-08 Thread Chris Moffitt
e full code, it's here - http://satchmo.python-hosting.com/file/trunk/satchmo/shop/views/account.py -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Need an advice: simple Online Store project (long)

2006-10-17 Thread Chris Moffitt
ome sort of tagging or other way to assign attributes and filter. I'm not sure how best to accomplish it though. Your thoughts would be appreciated. Take a look at our code and see how well it might meet your needs. -Chris --~--~-~--~~~---~--~~ You receive

Logging in an application

2006-11-07 Thread Chris Moffitt
A middleware might be the right option but I'm not exactly sure how to do this. Does anyone have concrete examples of how they've done it in a way that doesn't add a ton of overhead and would be useful for lots of detailed logging about

seeking any advice re: directions

2006-11-27 Thread Chris Ryland
ke view on those elements? And how would one piece them together logically without a lot of admin screen editing? Any advice/thoughts/laughs/hints greatly appreciated. I can elaborate if necessary, but my thinking is still a bit fuzzy as I'm trying to deal with several issues at once, an

Re: Moving from development server to apache

2006-11-28 Thread Chris Ryland
myapp -U myapp > enter myapp as user and its password in the settings.py > it is a bad idea to allow www to access the database This seems like important advice enough to be in the main documentation, if in fact it's generally recommended. Cheers! --C

Re: Database question

2006-12-01 Thread Chris Ryland
On Dec 1, 9:59 am, "Eric Lake" <[EMAIL PROTECTED]> wrote: > Thank you. That is what I was thinking but I wanted to get others > opinions first. This will also help stay with the DRY ideals. I guess > the real difficult part would be if a new ministry is added to the > list. If I understand how it

Re: Odd behavior using __range lookup

2006-12-08 Thread Chris Moffitt
Satchmo that aims to build an ecommerce framework. It may not meet all your needs but at least take a look and see if there's anything you can leverage. Here's the main site - http://www.satchmoproject.com Good luck, Chris --~--~-~--~~~---~--~~ You received

Re: Reverse ForeignKey lookups

2006-12-19 Thread Chris Ryland
ntry is another of my models and User is Django's own. What does Entry look like? Cheers! --Chris Ryland, Em Software --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Reverse ForeignKey lookups

2006-12-19 Thread Chris Ryland
elative Django newbie, but I think you need to use something like >> Entry.entrystatus_set.filter(entrystatus__user=3) since the ForeignKey is on the EntryStatus model rather than the Entry model. Cheers! --Chris Ryland, emsoftware.com --~--~-~--~~~---~--~~ You received this

Re: Reverse ForeignKey lookups

2006-12-19 Thread Chris Ryland
On Dec 19, 3:05 pm, "Chris Ryland" <[EMAIL PROTECTED]> wrote: >>> Entry.entrystatus_set.filter(entrystatus__user=3) > since the ForeignKey is on the EntryStatus model rather than the Entry > model. Nope, let me correct myself: according to the docs, what you want

Re: Reverse ForeignKey lookups

2006-12-19 Thread Chris Ryland
column = field.column > AttributeError: 'RelatedObject' object has no attribute 'column' > > Can anyone shed light on this and/or tell me what I should be doing > instead? Since the "user" object at the other end isn't an int, maybe you need something l

Re: Ordering flatpages?

2006-12-21 Thread Chris Ryland
On Dec 21, 7:46 pm, "Paul Smith" <[EMAIL PROTECTED]> wrote: I'm thinking about a couple of ways to skin this cat, but I thought I'd put it out there. Does anyone have a nice approach for letting users arbitrarily order things in Admin? Another thing on my mind is what would happen if my

models.GenericForeignKey & .GenericRelation

2006-12-22 Thread Chris Ryland
I stumbled on this on the MPTT thread (coming from the flatpage ordering discussion), from last summer. Are these concepts still in Django, or did they morph into something else? I don't see them in the documentation, though perhaps I'm missing something entirely. Thanks. --~--~-~--~

any update - MySQL and order_with_respect_to ?

2006-12-28 Thread Chris Kelly
I've recently run into the pesky "order_with_respect_to and MySQL not supporting updating a table and selecting it in a subquery" issue. Any official work being done on this issue at the moment? Unfortunately pgsql isn't an option... http://code.djangoproject.com/ticket/1760 otherwise, I guess

RE: model referencing itself

2007-01-04 Thread Chris Brand
i'm trying to create a model which referencing itself The documentation says : To create a recursive relationship -- an object that has a many-to-one relationship with itself -- use models.ForeignKey('self'). Chris --~--~-~--~~~---~--~~ Yo

newforms: help on an individual field?

2007-01-05 Thread Chris Green
Often times, I want to attach documentation or examples in the middle of a form, just to make it clear to a user what types of data would be acceptable. Does this use-case automatically push me from using {{form}} and into rendering everything about the form myself or do people think this is gen

Weird apache problem

2007-01-05 Thread Chris Brand
ld, all to no avail. I don't even know how I can go about diagnosing what's going on. Help! Chris Do you know about the dangers of DRM? Find out at http://www.defectivebydesign.org/what_is_drm --~--~-~--~~~---~--~~ You received this message because you a

Re: Weird apache problem

2007-01-06 Thread Chris Brand
ave PythonDebug On, but I don't see anything useful in any Apache log file. Is there something else needed ? (I found my problem by trying to access my data through a non-Admin page, where I saw a python traceback page). Chris --~--~-~--~~~---~--~~ You receive

Re: post-login processing

2007-01-06 Thread Chris Ryland
there's a better, less non-DRY way. Couldn't you just define your own functions as you've done, but invoke the django.contrib.auth.view.login/logout functions directly before your pre-/post-processing? Cheers! --Chris Ryland / Em Software, Inc. / www.emsoftware.com --~--~-~

Re: What is the FloatField type returned when accessing the field value ?

2007-01-06 Thread Chris Moffitt
The other thing to add to this is that the code works fine on a linux machine running with MySQL. I think it's more than just an error with Satchmo, that's why it's been posted to this list. -Chris --~--~-~--~~~---~--~~ You received this mess

How can I display the user-friendly version of my field with choices ?

2007-01-09 Thread Chris Brand
) instead. I'd like to display the value used by the admin form, but can't figure where to start. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

RE: How can I display the user-friendly version of my field with choices ?

2007-01-09 Thread Chris Brand
n a template : {% object.get_kind_display %} 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 t

Re: Newforms 'preferred practice'

2007-01-12 Thread Chris Rose
sable? If so then does anyone have > any pointers about what methods I need to implement? You can use the model instances __dict__: my_form = CreateForm(initial=model_instance.__dict__) Saves copying each field into a seperate dict or implementing any extra met

Idea for capturing logging information by modifying cache behavior

2007-01-13 Thread Chris Moffitt
like this? Am I trying to solve a problem that doesn't really exist? Thanks for the input. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: How to create a simple PDF

2007-01-15 Thread Chris Moffitt
http://satchmo.python-hosting.com/browser/trunk/satchmo/templates/pdf/ This setup seems to work pretty well for me. Good luck, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: How to create a simple PDF

2007-01-17 Thread Chris Moffitt
Is TinyRML being actively maintained? Unfortunately, it doesn't look like there's been any activity for about 1 year. I haven't tried getting in touch with the maintainer to see. For my limited use it appears to work fine. -Chris --~--~-~--~~~-

Re: Customized Admin interface and logout link

2007-01-17 Thread Chris Moffitt
I'm not sure if this will solve your problem, but here's what I did to customize an admin "portal" for satchmo. In my urls.py file http://satchmo.python-hosting.com/file/trunk/satchmo/urls.py I redirected /admin to my custom view. http://satchmo.python-hosting.com/file/trunk/satchmo/shop/views/

Re: FloatField in list_display

2007-01-18 Thread Chris Moffitt
tching to an up to date Mysql and see if it goes away. -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 unsubs

Database API blind spot

2007-01-22 Thread Chris Brand
I have the feeling that this is something that should be straightforward, but I can't see how to do it. I have an app with Applications, each of which is for a single Camp. What I want to do is retrieve all the Camps for which there exists an Application. Thanks,

Checking for float zero in templates

2007-01-25 Thread Chris Brand
I've got some float fields in my model that default to 0.0. In my templates, it would be nice to use something like the "if" tag to display something like "Not set". I do seem to be able to do this with integer fields that default to zero. Can I do this wit

Re: Django Job Opportunity

2007-01-25 Thread Chris Moffitt
Joseph Toon wrote: > My company is interested in building an e-commerce site, possibly built > > Well, when you evaluate the options, take a look at satchmo http://www.satchmoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscrib

RE: Help with Last Seen (why doesn't this work???)

2007-01-30 Thread Chris Brand
x27;s more than 4 hours after the "last_seen" time, change the "last seen" time to "now". I think you need to think about your algorithm. Ignore the code for now - how would you do this by hand ? Chris --~--~-~--~~~---~--~~ You rece

RE: DATETIME_FORMAT ignored

2007-02-05 Thread Chris Brand
Try {{ object.pub_date|date }} Chris > -Original Message- > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] > On Behalf Of Matias > Sent: 4 February 2007 1:50 PM > To: Django users > Subject: DATETIME_FORMAT ignored > > > Hi, > > Hi, &

Re: Best Practices for faster template rendering

2007-02-09 Thread Chris Nelson
Derek Lee-Wo wrote: > The app I have is pretty simply as I'm just beginning so I didn't > bother to try and make it any smaller. I've ZIPped the entire > project directory and it can be downloaded here: > > http://www.roadtoboston.com/media/RoadToBoston.zip > > I took a look and traced the b

Suggested blog software

2007-02-14 Thread Chris Moffitt
orked on as a project. Does anyone have a skeleton that is available so I don't have to start from scratch? Any recommendations for one that already has newforms code? Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to

<    5   6   7   8   9   10   11   12   13   14   >