Re: Iterating over a queryset to run another query?

2010-10-13 Thread John M
is the subcategory the same for all the top level categories? if so, i think you should be able to query your category queryset, like this? finalset = Category.objects.filter().filter(subcategory__field=) Unless I'm not understanding. On Oct 13, 10:52 am, Austin Govella

Re: How is this feature called?

2010-09-02 Thread John M
So the example you gave of "other peoples" looks like they have a related table for "Service Checks" and that table has two fields, one for check and the other for options, from what I can tell. HTH J On Sep 1, 7:03 am, norus wrote: > Hi all, > > I've decided to start

Re: manually add objects to a QuerySet

2010-08-11 Thread John M
I asked a similar question like, I want to sort a QS on a meta field, can it be done? The answer worked, and is the same one you're getting, use a list. qs1 = model1.objects.filter(...) qs2 = model2.objects.filter(...) lqs1 = list(qs1) lqs2 = list(qs2) now you have something that is a python

Re: Help Converting a Query getting one result using .filter() to .get()

2010-07-12 Thread John M
Why does it matter? You could just say next_game[0] instead. J On Jul 12, 4:28 pm, Chris McComas wrote: > I have this query, trying to get the next game in the future. > > today = datetime.datetime.now() > next_game =

Re: Question on the Tutorial

2010-07-09 Thread John M
Also check out the paginator view http://docs.djangoproject.com/en/dev/topics/pagination/ On Jul 9, 12:27 pm, rupert wrote: > I'm creating an app based on the tutorial. Is there a way to display > all of the objects that are created on the same page using a view? > Could

Re: New tutorial added to Django by Example

2010-07-09 Thread John M
WOW, this is very cool, you should see if you can add it to the main django tutorial someway? J On Jul 6, 3:50 pm, Rainy wrote: > I've added a new tutorial: A simple Blog to my Django by Example site. > As > always, feedback is appreciated. > > This tutorial covers display

Re: Model inheritance and simple access

2010-06-08 Thread John M
erty when > you query the super class and throws an exception if you access a > property that isn't there. So something like the above "might" work. > And obviously if you have like 5 child classes, this gets ugly very > quickly. > > Dan Harris > dih0...@gmail.com > &g

Re: Model inheritance and simple access

2010-06-08 Thread John M
gt; > > On Tue, Jun 8, 2010 at 8:05 PM, John M <retireonc...@gmail.com> wrote: > > I've gotten model inheritance working just fine, but was hoping > > someone could confirm the best way to access the model. > > > When I have a Base model which has a ForeignKey to a pare

Model inheritance and simple access

2010-06-08 Thread John M
I've gotten model inheritance working just fine, but was hoping someone could confirm the best way to access the model. When I have a Base model which has a ForeignKey to a parent table, and that base model has inherited models after it, how can I refer to only one name when referencing the

Re: more complex queries

2010-05-20 Thread John M
Sounds like two queries to me, sum all the refunds and then subtract them from all the non-refund amounts. does that work for ya? On May 20, 5:17 pm, Chris Withers wrote: > Hi All, > > I have a Transaction model with a DecimalField called "amount" and a > CharField

Re: Adding records to 2 tables at the same time from admin page

2010-03-30 Thread John M
If you write something in the model's save() method that should do what you want. On Mar 28, 10:05 pm, cnone wrote: > The admin page has a button to add records. When I click a table from > admin page and click add, I can enter data. What I want to do is I > want to add

Re: Treat two fields as one in a queryset

2010-02-20 Thread John M
I think you'll have to sort the list yourself by creating a calculated field, since you're only returning a small number, I don't see this as a big issue. So, get the records back that you want via the ORM, and then copy them over to a list. HTH John On Feb 20, 6:26 pm, shacker

Re: Hosting for django?

2009-12-22 Thread John M
There was recently a blog on several of the VPS's, EC2 scored a very poor last place, while LiNode scored the best. You can find it on the djangoproject community link. J On Dec 22, 10:59 am, yummy_droid wrote: > Hi, > > Has anyone had good experiences with hosting companies

Cross tabulation in template

2009-12-10 Thread John M
I've got data that looks like this from a query {'status': u'E', 'env__count': 15, 'env': u'dev'} {'status': u'H', 'env__count': 31, 'env': u'dev'} {'status': u'I', 'env__count': 164, 'env': u'dev'} {'status': u'N', 'env__count': 149, 'env': u'dev'} {'status': u'I', 'env__count': 17, 'env':

Re: How to populate the database

2009-12-10 Thread John M
You could also use OpenOffice with the SQLIte connector (I think) I use Access in Windows, works great! But you might try getting the CSV into a JSON format that the manage.py loaddata command could use, that set's you up for the future too. J On Dec 10, 8:57 am, Zeynel

Re: A Design Question

2009-12-01 Thread John M
Even though it is outside the scope, I'd say start simple and build slowly with related tables, those are easy to add to a system. I'd probably find the attributes you'd like to capture in the 'extra details' and start putting them in a table. Determine what the purpose of these attributes are,

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread John M
Sounds like the .py extension isn't seen as using python, should be an easy fix. Check your file associations (where they are in Win7) I'll have to find at work tomorrow, but that should fix your issue. Or, it could be some new security scheme that MS has come up with to not allow associations

Re: How to call this function

2009-12-01 Thread John M
I think you're confusing Templates and HTML in this one, the for loop is just a construct while the template is constructing the final HTML code, not executing the HTML alongside the template? Does that help? I think you'll need to look at custom filters

Re: Help with Custom Manager and UNION query?

2009-12-01 Thread John M
I'm not sure a Manager is what you want, what about Q(http:// docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with- q-objects) objects? I've used them before and I think it's about what you'd need. As for performance, not sure how they stack up On Nov 30, 2:45 pm, Info Cascade

Re: custom query unique and ordered

2009-12-01 Thread John M
I would be easier to see it as a django table, but you'll need to checkout the distinct() feature of the queryset http://docs.djangoproject.com/en/dev/ref/models/querysets/#distinct But yes, I'd say it's possible. J On Nov 30, 4:10 pm, Ali Rıza Keleş wrote: > Hi all, >

Re: Chart tool

2009-11-29 Thread John M
We started playing with FusionCharts, they have a free version which is pretty slick. It's flash based, and not sure about the printing aspect yet. It's generated with some XML and an SWF file. J On Nov 25, 12:07 pm, "S.Selvam" wrote: > Hi all, > > This is my first

Re: Installation Problem on Mac OS Leopard

2009-11-29 Thread John M
Me too, I'm not having any issues. I just installed on 10.6 by downloading 1.1.1 and running the install command sudo python setup.py install and no issues. After install I run django-admin.py --version and it shows 1.1.1 You'll need to give us more info to help. Are you using sudo? What

Re: View returns no queryset

2009-11-29 Thread John M
I suspect that the query isn't being executed, cause you're not accessing any elements? have you tried to print games and see what comes out? passing {games:"object_list"} seems like it should make sense, but since I'm not an expert on Python or django, I'd imagine that the "object_list" isn't

DecimalField's and lots of math

2009-08-16 Thread John M
I'm wondering how people deal with the DecimalField in django? I've just discovered the amount of typecasting I have to do to work with this field, example: field1 = models.DecimalField(...) you can't do : y = field1 / 100.0 you have to do y = field1 / Decimal(100) But then you can't do

Good OneToOneField design?

2009-08-14 Thread John M
Hey everyone, I'm trying to use the 1-1 fields, and love the examples and how it works, once it's created. However, I'm having trouble determining when in my code to create the actual instance of the 1-1 object. What I really want is for the save() method of the 'master' side of the model to

Re: File Upload : Memory consumption

2009-06-24 Thread John M
I've seen quite a few posts on this, and I think it's documented as well. As I recall, there is a certain way of doing large uploads, search the docs and the forum and I'm sure you'll find it. On Jun 24, 3:20 am, alecs wrote: > Hi! I'm trying to upload a large file (700Mb)

Re: disable django cache

2009-05-14 Thread John M
Are you sure it isn't your browser? have you tried testing your concern with curl? On May 14, 12:19 pm, online wrote: > Hi all, > > I have a small project still under development. I don't set any cache > stuff yet. But for somehow django still cache all web pages.

Re: Help with schema

2009-05-06 Thread John M
In addition to Malcolms comments, you'll need a way to track if the agent was fired or not, you could do this in several ways: 1. a date fired field (you may want a date hired), a fired boolean field, or a more complicated way, an archive type setup that moves the fired agents to another table

Re: How do I retrieve this Customer.objects.filter(serial<>'')

2009-04-28 Thread John M
is it empty like " " or is it null? customer.objects.filter(serial__isnull=True) HTH On Apr 28, 9:16 am, equalium wrote: > Hello, I'm new to django. I want to retrieve a record of Customers > with an empty serial field.

Re: FT Django/Python developer position

2009-04-21 Thread John M
you should also post this on www.djangogigs.com On Apr 21, 7:39 am, HPL wrote: > World renowned company located in the heart of Washington, DC is > looking to hire a Python/Django developer to work on website developed > on Python-based Django  web application

Re: Leopard deploy directory?

2009-04-13 Thread John M
/opt is the typical linux location, my mac has a few things there now. J On Apr 13, 4:12 pm, Shannon wrote: > Hi -- I am working on a django-powered site on Leopard server.  Where > is the recommended/conventional deployment directory?  Every example I > see uses a

Re: how to use several different querysets in one single template(for a single url)?

2009-04-13 Thread John M
You might want to think about using the direct_to_template function instead, it uses the Request Context values, which allows you to take advantage of the login system, where as the render_to_response does not (by default). J On Apr 13, 7:16 pm, jason wrote: > using the

manage.py dumpdata app.model doesn't seem to work?

2009-03-06 Thread John M
I tried using the command $ python manage.py dumpdata app.model. where app is the name of my application and model is one of it's models, I didn't actually use the names app and model. I get the following error: django.core.exceptions.ImproperlyConfigured: App with labelapp.model could not be

Re: Cherrypy and view variables caching?

2009-03-05 Thread John M
On Mar 5, 6:33 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Thu, 2009-03-05 at 18:32 -0800, John M wrote: > > Malcolm, thanks for the reply and I figured that was my issue. > > > Which leads me to another question, does everyone put all view code >

Re: Cherrypy and view variables caching?

2009-03-05 Thread John M
wrote: > On Thu, 2009-03-05 at 14:54 -0800, John M wrote: > > I'm  having a strange problem with running django on a Cherrypy > > server. > > > in my views.py, I setup a variable called oneweekago, and set it to > > today() - (days=7) (it's obviously a date type variable),

Cherrypy and view variables caching?

2009-03-05 Thread John M
I'm having a strange problem with running django on a Cherrypy server. in my views.py, I setup a variable called oneweekago, and set it to today() - (days=7) (it's obviously a date type variable), then in my query, I ask for all records that are __LTE=oneweekago. This code works perfect the

Admin and 1-1 fields

2009-02-05 Thread John M
I tried to find this in the admin code, but was unsuccessful. If I have a model with a 1-1 relationship, and in my admin.py I specify that the 1-1 related model is in an INLINE, I notice that the admin interface is smart enough to add a new 1-1 related record when necessary. I'm wondering in

Re: Coming Soon

2009-02-03 Thread John M
django is probably the most updated doc and program I've used. If you watch the community section for feeds of all the blogs and postings, you'll find tons of great information. This group is your second best place to be. There are tons of django sites, etc. I think if you poke around, you'll

Re: simple record output

2009-02-02 Thread John M
er out spaces & carriage returns. > > -jake > > On Mon, Feb 2, 2009 at 3:41 PM, John M <retireonc...@gmail.com> wrote: > > > Grrr, I answered my own quesiton, if I remove all the CR's from the > > template, then it's OK. > > > So changing the templat

Re: simple record output

2009-02-02 Thread John M
output? Thanks On Feb 2, 12:57 pm, John M <retireonc...@gmail.com> wrote: > I'm trying to use the generic views and templates to get a very simple > text output of records. > > I don't want HTML, but need them available from a command line (via > curl). > > Here's my

simple record output

2009-02-02 Thread John M
I'm trying to use the generic views and templates to get a very simple text output of records. I don't want HTML, but need them available from a command line (via curl). Here's my URL setup. newhosts_dict = { 'queryset' : unixhost.objects.all().filter(hostsetting__userlist = False)

Re: new record - onetoonefield - create related record

2009-01-31 Thread John M
:15 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Fri, Jan 30, 2009 at 4:29 PM, John M <retireonc...@gmail.com> wrote: > > > Given the model's below, I'm trying to make it add the related 1-1 > > record automatically, but it's not working, what am i missing? >

new record - onetoonefield - create related record

2009-01-30 Thread John M
Given the model's below, I'm trying to make it add the related 1-1 record automatically, but it's not working, what am i missing? Thanks John class unixhost(models.Model): name = models.CharField(max_length=50) # short name fqdn =

Re: django-smtpd allows you to handle email messages just like Django processes HTTP requests

2009-01-24 Thread John M
Wow, very cool. How will this integrate on a production server? is this a true Mailto: link or something else. I mean it doesn't look like a real SMTP engine. I love the idea though! J On Jan 24, 8:29 am, nside wrote: > Hello, > > I just started a new project that

Re: Multithreaded development server

2009-01-24 Thread John M
Some threads on here have used CherryPy's django Plug-in and it's a full server too. You only need to account for Admin files via some well know workings. J On Jan 24, 4:08 pm, Almad wrote: > Hello, > > is there a way to run development server multithreaded, so it can > handle

Re: Form stays invalid even after required field has been set

2008-12-10 Thread John M
I had this same issue, and it turned out i was not showing a necessary field. My advice, try to recreate from the command line with the basic form object and see what it says is missing. Good Luck, John On Dec 10, 7:26 am, Berco Beute <[EMAIL PROTECTED]> wrote: > Here's the code: > >

VPS Hosting - Webkeepers

2008-12-04 Thread John M
Anyone tried this for django? http://www.webkeepers.com/index.html entry level is 6.95/mo, great for QA site I would think. Just curious Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: admin css, is this still supported?

2008-12-03 Thread John M
Thanks Malcom, I'll do what I can On Dec 2, 8:05 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-12-02 at 08:21 -0800, John M wrote: > > I've searched for theadminCSSguide, and found it deprecated (http:// > > docs.djangoproject.com/en/dev/obsolete/ad

admin css, is this still supported?

2008-12-02 Thread John M
I've searched for the admin CSS guide, and found it deprecated (http:// docs.djangoproject.com/en/dev/obsolete/admin-css/?from=olddocs), is there a replacement? Thanks, John M --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Adding delete button to a form.

2008-11-26 Thread John M
Dominic, Welcome to the django forum :) and welcome to django > Which I've tested and seems to be working ok. (The documentation, by > the way, didn't mention anything about requiring > foo_confirm_delete.html but I guess that's not too hard to figure out > from the error message) Actually,

Re: order_by function

2008-11-21 Thread John M
I wanted the same thing long ago, you have a couple of choices: 1. Use custom SQL functions (but kinda locks u in), 2. Use the python sort function. This basically takes ur queryset, turns it into a list and then sorts it. Since all querysets are just lists in python you can do this:

Re: Using just one custom manager

2008-11-21 Thread John M
Spoksss, I brought this up as a BUG? subject and got some traction from Malcom. Malcom opened a tracking ticket to get it fixed. I was able to work around it by sending some querysets to my view before, instead of using the related sets in the view. If you'd like to see my work around, please

Re: Bug? Related manager not working for custom manager?

2008-11-20 Thread John M
about the SQL. Perhaps some kind of caching is going on > where the manager is caching the results of it's queries? > > On Thu, Nov 20, 2008 at 11:21 AM, John M <[EMAIL PROTECTED]> wrote: > > > I have a model with a custom model manager used for related set > > filter

Re: Bug? Related manager not working for custom manager?

2008-11-20 Thread John M
a related manager, cause working with the records as Tasks directly, doesn't seem to have the problem. Thanks again John On Nov 19, 11:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-11-19 at 18:21 -0800, John M wrote: > > I have a model with a custom mod

Re: Using generic view to insert a simple model in the DB

2008-11-20 Thread John M
django writes about 90% of the form part for you. This was also an area for me (being new to HTML apps) that was confusing. You have two choices, you can use the {{form}} object in your html, or you can setup each field from the form individually.

Bug? Related manager not working for custom manager?

2008-11-19 Thread John M
I have a model with a custom model manager used for related set filtering, but it's not working as expected. See my models and test at http://dpaste.com/92327/ Can someone explain why my manager isn't doing what I think it should? Thanks John

Re: What happened to Documentation layout on djangoproject.com?

2008-11-18 Thread John M
Karen, As always, you're the best, thanks. John On Nov 18, 11:33 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 2:23 PM, John M <[EMAIL PROTECTED]> wrote: > > > I just noticed that the documentation layout change (for the bette

What happened to Documentation layout on djangoproject.com?

2008-11-18 Thread John M
I just noticed that the documentation layout change (for the better). Did I miss an announcement. Either way, I love it. John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: polls tutorial question

2008-11-14 Thread John M
What you see is what you get when it comes to templates in the Tutorial. There is no default CSS or anything like that. If you'd like to do CSS from a media file, you'll have to check the docs on serving static files via the builtin server. J On Nov 14, 12:19 pm, prem1er <[EMAIL PROTECTED]>

Templates - testing multiple things on IF line

2008-11-13 Thread John M
Does the IF tag allow for OR's or AND's? Thanks John --~--~-~--~~~---~--~~ 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

Model manager not working with related sets of records.

2008-11-10 Thread John M
I have the following model (http://dpaste.com/89869/). The model is for a status report application I'm trying to create at work (so I don't have to do powerpoints). So each report, has several tasks / milestones associated with it. My problem is when I use a related set, the custom manager

Re: Using just one custom manager

2008-11-07 Thread John M
ideas? Thanks John On Nov 7, 11:47 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 7, 7:13 pm, John M <[EMAIL PROTECTED]> wrote: > > > > > I wanted to get some feedback on how I'm using custom model managers. > > > I've put all my queries into

Re: Using just one custom manager

2008-11-07 Thread John M
Dave, Thanks for the quick reply, yea, I figured out what I needed to do, which turns out just what you said. I will change to the pythonic way of doing things, thanks. John On Nov 7, 11:47 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 7, 7:13 pm, John M <[EMAIL PROTE

Using just one custom manager

2008-11-07 Thread John M
I wanted to get some feedback on how I'm using custom model managers. I've put all my queries into one manager, each in a different method. Is this the right way to go? So for example: CHOICES_TASK = ( ("NO", "None"), ("GR", "Green"),

Re: Can I use more than one database handle with Django?

2008-11-06 Thread John M
Do you want to use more than one Database? Then NO, it's not available directly right now, that's supposed to be an upcoming feature. J On Nov 6, 4:28 pm, turbogears <[EMAIL PROTECTED]> wrote: > Hi, > Can I use more than one database handle with Django? > and how can I do it? > excuse my

Re: Getting non-related records

2008-11-06 Thread John M
WOW, I knew it would be easy, but that is ridiculous. Thanks Alex! John On Nov 6, 3:00 pm, "Alex Koshelev" <[EMAIL PROTECTED]> wrote: > Hi, John > > Try this: > > Category.objects.exclude(bulletpoint__report=r) > > On Fri, Nov 7, 2008 at 01:54, John M &l

Getting non-related records

2008-11-06 Thread John M
i have a model at http://dpaste.com/88760/ for a particular Report (r), I'd like to get all categories that aren't in it's bulletpoints. For example, If there are four categories: one, two, three, four. there is a report with bullet points for one and two, how can I get a list of three and

Re: Sort querysets by their data attribute values

2008-11-06 Thread John M
I had a similar need based on a calculated column, you'll have to turn it into a list (i.e. mylist = list(queryset) ) and then sort from there. You can still pass the list to a template a loop through it just like a regular queryset, since the objects in the list are just python objects. J On

Re: Design question : best way to show 1 .. N different categoried items

2008-11-06 Thread John M
ECTED]> wrote: > On 4 nov, 23:54, John M <[EMAIL PROTECTED]> wrote: > > > i have a model for status reports:http://dpaste.com/88760/ > > > The report has 1-N bullet Points, each bullet Point has a category. > > > What I want to figure out, whats

Design question : best way to show 1 .. N different categoried items

2008-11-04 Thread John M
i have a model for status reports:http://dpaste.com/88760/ The report has 1-N bullet Points, each bullet Point has a category. What I want to figure out, whats my best way to display this in a template, given that the category list is flexible. I mean, a report might have 1 or more categories.

Re: multiple models in object_list

2008-11-04 Thread John M
Thanks for the info. Turns out that I was looking at the wrong bit of code (gr), and wasted 2hrs of my day. John On Nov 4, 2:36 pm, "Matías Costa" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 8:37 PM, John M <[EMAIL PROTECTED]> wrote: > > > I'm

multiple models in object_list

2008-11-04 Thread John M
I'm trying to figure out how I can use more than one model with a call to object_list generic view. currently I have this.. objectlist_dict = {'queryset' : Report.reports.all(), 'extra_context' : {'category_list' : Category.objects.all() },

Re: update or add object?

2008-09-22 Thread John M
Dang, I knew there was something there! Thanks R. Gorman :) On Sep 22, 6:10 pm, "R. Gorman" <[EMAIL PROTECTED]> wrote: > get_or_create > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-cre... > > R. > > On Sep 22, 7:55

update or add object?

2008-09-22 Thread John M
Is there a method I can call in a view that given a key, it checks to see if that object exists and if it does returns that object, or if it doesn't, adds it to the DB and returns the new key? I could have sworn there was a shortcut for this. Thanks John

Re: Django -- very very basic query !

2008-09-21 Thread John M
I would suggest taking a couple of hours to do the tutorial, and it basically runs through most of what django can do. Since 1.0 is out, you just need to download, install and run through the tutorial. It runs on any platform. Have fun. John On Sep 21, 7:20 am, "[EMAIL PROTECTED]" <[EMAIL

vServer Image - Has anyone tried this?

2008-09-19 Thread John M
I stumbled on this today http://es.cohesiveft.com/ I've built a django server, and am going to try tonight. Has anyone tried this yet? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: keeping counts of verbs (downloads, comments, ...)

2008-09-17 Thread John M
Any reason why you wouldn't override the save() method of the model in question? When the model with the data you'd like to summarize is saved, you could recalc the data then? J On Sep 17, 4:20 am, "Bram de Jong" <[EMAIL PROTECTED]> wrote: > hello all, > > I have objects in the db which are

Re: Will the new Django 1.0 work better with IIS?

2008-09-05 Thread John M
I wouldn't say it's built for apache, it's just that non-MS based systems don't work 'as well' as IIS native stuff (go figure). I found two quick articles about doing it: http://forums.iis.net/t/1122937.aspx http://support.microsoft.com/kb/276494 Although, I seem to remember something about a

Re: getting max(field) with db-api

2008-09-02 Thread John M
i used that for mine and it always worked! Mine was for a list of child records by date, but child.objects.all()[0] always gave me the most recent object. J On Sep 2, 7:23 am, mwebs <[EMAIL PROTECTED]> wrote: > Hello, > > I want to perform a lookup an getting the object with the highest >

Re: Test Application Fails to Appear in Admin

2008-09-01 Thread John M
I'm assuming your link meant to point to this instead http://www.djangoproject.com/documentation/tutorial02/#make-the-poll-app-modifiable-in-the-admin. did the main admin site work first, but the Poll app doesn't work? Check the group, there are lots of cases where a typo may have caused it. J

Re: exporting apps and db from windows to ubuntu.

2008-08-25 Thread John M
from the command line / console / whatever... ./manage.py dumpdata http://www.djangoproject.com/documentation/django-admin/#dumpdata-appname-appname On Aug 25, 3:25 pm, KillaBee <[EMAIL PROTECTED]> wrote: > ok it is dumpdata and loaddata, but where does it go?  I searched for > *.json but

Re: Custom manager for many-to-many traversal

2008-08-25 Thread John M
Since my_book.auther_set.all() returns a QS, can't you just say something like ...all().filter(author__isalive=True) or something like that? I've never tried, but I thought that django would figure it out? J On Aug 25, 12:11 am, MrJogo <[EMAIL PROTECTED]> wrote: > How do I create a custom

Re: Boosting your productivity when debugging Django apps

2008-08-22 Thread John M
I tried eclipse with pyDev installed and it allows a pretty neat Visual Studio et al look and feel to it. John On Aug 22, 11:20 am, Delta20 <[EMAIL PROTECTED]> wrote: > This question is aimed at those of you who, like me, come from a Java > and C++ background and are used to being able to debug

Re: Changing the returned query set in the admin interface 'add' section depending on user permissions.

2008-08-19 Thread John M
I suspect you'll have to intercept one of the many signals django has in it's architecture. Sorry, not sure where to point you other than that. John On Aug 19, 4:19 am, chewynougat <[EMAIL PROTECTED]> wrote: > Hi, > > I have an admin add form that allows users to insert documents. I have > a

Re: django Tutorial for NFA has bugs

2008-07-21 Thread John M
Ticket 7861 created for this. John On Jul 20, 1:25 pm, "Chris H." <[EMAIL PROTECTED]> wrote: > On Jul 20, 3:21 pm, John M <[EMAIL PROTECTED]> wrote: > > > Given that the group has figured out that you need to run > > autodiscover() and register any model

Re: status of unicode support in 0.96?

2008-07-21 Thread John M
Any reason why you wouldn't just use the SVN version, given we're so close to 1.0? Also, not sure if they will update .96 anymore other than security fixes. It's very behind in features compared to SVN version. JOhn On Jul 21, 11:09 am, "Andrew D. Ball" <[EMAIL PROTECTED]> wrote: > Greetings.

Re: django Tutorial for NFA has bugs

2008-07-21 Thread John M
This has been fixed in the latest SVN release. J On Jul 20, 8:42 pm, John M <[EMAIL PROTECTED]> wrote: > Ticket 7861 created for this. > > John > > On Jul 20, 1:25 pm, "Chris H." <[EMAIL PROTECTED]> wrote: > > > On Jul 20, 3:21 pm, John M <[EMAI

django Tutorial for NFA has bugs

2008-07-20 Thread John M
Given that the group has figured out that you need to run autodiscover() and register any models you want to show in NFA Admin page, I wanted to point out that the tutorial has the same bug, somewhere in Tutorial 2, it tells you to un-comment the # for admin access, which DOES NOT show anything

Re: Creating a Scheduled Task

2008-07-12 Thread John M
I've seen previous posts which tell you to setup the CRON job with the correct settings, so you can just call django from the CRON job, since django is just python, as long as it finds the settings file you should be ok. J On Jul 12, 7:53 am, Chris <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a

Re: Django graphic designers

2008-06-09 Thread John M
There are a TON of free resources for all of that, let me see if I can post a few for u . http://www.cssbeauty.com/ http://www.templatesbox.com/ http://vyk1.spaces.live.com/Blog/cns!EBE3A761F939F926!1051.entry http://www-128.ibm.com/developerworks/library/wa-freeweb/ Good Luck On Jun 9, 3:37

Re: "intro to django" script -

2008-06-09 Thread John M
Also, the week in django has some really good webcasts, maybe we could get them to post it to your website? http://blog.michaeltrier.com/2008/6/9/this-week-in-django-25-2008-06-08 On Jun 9, 8:04 am, Carl Karsten <[EMAIL PROTECTED]> wrote: > I want to make ahttp://showmedo.com"Getting started

Re: Capturing full URL string

2008-06-05 Thread John M
Ticket 7379 http://code.djangoproject.com/ticket/7379 On Jun 5, 2:41 pm, John M <[EMAIL PROTECTED]> wrote: > How exciting, im actually getting involved (via Karen of course), > I'll submit today and put the ticket number back here. > > Thanks so much. > > John > &

Re: Capturing full URL string

2008-06-05 Thread John M
How exciting, im actually getting involved (via Karen of course), I'll submit today and put the ticket number back here. Thanks so much. John On Jun 5, 10:28 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 4:35 PM, John M <[EMAIL PROTECTED]>

Re: Capturing full URL string

2008-06-04 Thread John M
I can move on a continue my app. John On Jun 4, 12:59 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 2:03 PM, John M <[EMAIL PROTECTED]> wrote: > > Yes, I understand that, and I think it's a good thing, but when it > > redirects, it ma

Re: Capturing full URL string

2008-06-04 Thread John M
Yes, I understand that, and I think it's a good thing, but when it redirects, it mangles the parameters, would you agree? J On Jun 4, 10:35 am, Gregor Müllegger <[EMAIL PROTECTED]> wrote: > This is because Django will redirect you to a page with an appended > slash to your url if it's not

Re: Help with request encoding (again)

2008-06-04 Thread John M
Karen, I think I found my problem, and added a new post, maybe you can help? http://groups.google.com/group/django-users/browse_thread/thread/fc47edb1b9f8ec8f# Thanks again, you've really helped me see this through John On Jun 2, 1:01 pm, John M <[EMAIL PROTECTED]> wrote: > Karen, &

Re: Capturing full URL string

2008-06-04 Thread John M
F%BF%BD%EF%BF%BD%EF%BF%BD %EF%BF%BD%EF%BF%BD%EF%BF%BD%CC%84 Am I right in my observations? Is there anything I can do to avoid this in django? HELP, THIS IS REALLY HOLDING ME UP. In the mean time, I'll capture the slashes better. Thanks, John On Jun 4, 9:30 am, John M <[EMAIL PROTECTED]&g

Capturing full URL string

2008-06-04 Thread John M
I am running into some weirdness in an app im writing and so I thought I'd try to see how the basics of URL strings are handled. So I wrote a one line hello world app, and wanted to see how the dev server output it's results. I am still getting my feet wet with the whole web / http / HTML

appengine and django default filters

2008-06-03 Thread John M.
Hey guys... anybody had in luck getting the django default filters working with appengine When I include this line in my templates {% load filters %} I get the following error... 'filters' is not a valid tag library: Could not load template library from django.templatetags.filters, No module

Re: Help with request encoding (again)

2008-06-02 Thread John M
Karen, Thanks so much for keeping up on this. I'll run through the software to find the correct answer. This is a side project, and my time gets in bursts, sorry for the late reply. John On May 29, 9:13 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008

  1   2   >