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

2008-11-06 Thread John M
Bruno, Thanks for pointing me in the right direction, the only thing I needed to as was an order_by("category") to make sure all the bullet points were grouped by category. Again, thank you so much for getting me past this. John On Nov 5, 1:02 am, bruno desthuilliers <[EMAIL PROT

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 N

Getting non-related records

2008-11-06 Thread John M
three and four. This allows me to offer a user to add bulletpoints in those categories. I hope this makes sense :P John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

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 <

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 englis

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: 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

Re: Using just one custom manager

2008-11-07 Thread John M
Any 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 querie

Custom Inline Forms with InlineFormsets

2008-11-10 Thread John Boxall
set the form for the inline model. http://code.djangoproject.com/browser/django/trunk/django/forms/models.py Anyone have any luck with this? Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Custom Inline Forms with InlineFormsets

2008-11-10 Thread John Boxall
=None, fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=0, formfield_callback=lambda f: f.formfield()): On Nov 10, 12:47 pm, John Boxall <[EMAIL PROTECTED]> wr

Model manager not working with related sets of records.

2008-11-10 Thread John M
hing i'm doing wrong. 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 group,

Setting Up Django on Vista and Creating a Database

2008-11-10 Thread John Antony
I am currently using Vista OS I have installed Python in the path D:\Python26\ and extracted the tarred file downloaded from www.djangoprojects.com ie "Django-1.0.tar.gz" in the path D:\Python26\Django-1.0\Django-1.0 I am however unable to intall Django on typing the following command in command p

Re: Setting Up Django on Vista and Creating a Database

2008-11-12 Thread John Antony
o-admin.py' is not recognized as an internal or external command, operable program or batch file. what sholud i do now On Nov 11, 6:19 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 11, 2008 at 1:40 AM, John Antony <[EMAIL PROTECTED]> wrote

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 u

Re: Setting Up Django on Vista and Creating a Database

2008-11-13 Thread John Antony
Thank you Karen and Marcelo, I had actually not set the path for "django-admin.py". To set the Windows PATH in Vista click the following: Start>Control Panel>System>Advanced System Settings>Advanced>Environment Variable On Nov 13, 9:59 pm, Danny R <[EMAIL PROTECTED]

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]> wr

Re: Setting Up Django on Vista and Creating a Database

2008-11-17 Thread John Antony
", ".join(map(repr, available_backends)), e_user) django.core.exceptions.ImproperlyConfigured: 'MySQL' isn't an available database backend. Available options are: 'dummy', 'mysql', 'oracle', 'postgresql', 'post gresql_psycopg2

Re: Setting Up Django on Vista and Creating a Database

2008-11-18 Thread John Antony
hey thanks peter..I did not know abt MySQLdbgot it now... John On Nov 18, 12:11 am, "Peter Herndon" <[EMAIL PROTECTED]> wrote: > The other thing that comes to mind is, have you installed the MySQLdb > python library?  If you want to connect to a database from a Pytho

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 po

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

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? Th

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

2008-11-20 Thread John M
about as simple as it gets. Other than the above code IN YOUR TEMPLATE, you'll need to have the basic HTML and sections, you can find those on the web somewhere for examples. Once you have the above setup and happy, you should have what you're looking for to get started. HTH John On

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

2008-11-20 Thread John M
with the fact it's 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

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

2008-11-20 Thread John M
Ian, Thanks for the reply, yes I've verified via the db.connections option that something is definitely wrong. John On Nov 19, 6:33 pm, "Ian Lewis" <[EMAIL PROTECTED]> wrote: > John, > > Try checking the log output of the database server to see what is > diff

Re: Using just one custom manager

2008-11-21 Thread John M
lease let me know. In the mean time, checkout my new topic, which Malcom answered http://groups.google.com/group/django-users/browse_thread/thread/738460b50b0c96cd/65aa99bd3fcc9812?lnk=gst&q=bug%3F#65aa99bd3fcc9812 John --~--~-~--~~~---~--~~ You received thi

Re: order_by function

2008-11-21 Thread John M
: orderedlist = list(querysetX). orderedlist.sort... or something like that, you'll have to play with the syntax. But you can't use the Order_by on the queryset, because that translates directly into SQL and that's not available. John On Nov 21, 6:56 am, Luke Seelenbinder <[EMAIL PROTEC

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, a

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 t

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/obsole

HttpResponse.set_cookie defaults?

2008-12-03 Thread John Boxall
roject.com/en/dev/ref/settings/?from=olddocs#session-cookie-domain Does set_cookie use these settings as defaults? Or do I need to pass them in? Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: HttpResponse.set_cookie defaults?

2008-12-03 Thread John Boxall
To answer my own question - the SESSION_COOKIE_* variables are not used in set_cookie. You'll have to pass in these things yourself! John On Dec 3, 3:02 pm, John Boxall <[EMAIL PROTECTED]> wrote: > From the documentation it's not obivous what the defaults are f

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

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

Re: RHEL 5.2 + mysql + Django 1.0 => Django 0.95.4

2008-12-12 Thread john Moylan
It should work if you install the egg. J 2008/12/12 Rachel Willmer : > > I'm installing Django on a customer's machine which is running Red Hat > Enterprise Linux Server release 5.2. > > Django 1.0 complains about the version of mysql-python available, > which is 1.2.1-1, where it needs 1.2.1p2.

adding default inline items on a model/add page in the admin

2008-12-28 Thread John Beaver
Hi, I'm trying to figure out how to customize a model/add page so that it includes zero or more default items in an inline list. More specifically, the following code produces almost what I need, but I'd like to be able to add some default entries to the inline Roles list on (only) the meetings/a

Cannot resolve keyword 'user' into field. Choices are: id, job, name

2009-01-12 Thread John Baker
I cannot delete an object that has a foreign key to a user. The error given is: Cannot resolve keyword 'user' into field. Choices are: id, job, name # the model class Candidate(models.Model): user = models.ForeignKey(User) ... # later in code trying to delete candidate.delete()

Re: Cannot resolve keyword 'user' into field. Choices are: id, job, name

2009-01-12 Thread John Baker
candidate again and delete it but I don't see why this doesn't work? On Jan 12, 2:43 pm, Szymon wrote: > On 12 Sty, 15:40, John Baker wrote: > > > # later in code trying to delete > > candidate.delete() > > > Any clues? (Django 1.0.2 final) > > You need to

Re: Cannot resolve keyword 'user' into field. Choices are: id, job, name

2009-01-12 Thread John Baker
43 pm, Szymon wrote: > On 12 Sty, 15:40, John Baker wrote: > > > # later in code trying to delete > > candidate.delete() > > > Any clues? (Django 1.0.2 final) > > You need to provide how you fetch objects, I mean code before > cadidate.delete(). --~--~-~

django Tutorial for NFA has bugs

2008-07-20 Thread John M
s.py: from django.contrib import admin admin.autodiscover() This will make the admin site work the way it used to. Thoughts? Thanks john --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

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

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 PR

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

Form.clean() and custom error handling

2008-07-22 Thread John-Scott
the same Form.clean() method and expect both of these errors to be returned can I? Thanks, John-Scott [1] http://www.djangoproject.com/documentation/forms/#custom-form-and-field-validation --~--~-~--~~~---~--~~ You received this message because you are subscribed to

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 ins

Re: Admin mass change screen

2008-08-22 Thread John Shimek
my questions. The part I don't have done yet is saving the new order. That will take adding a button and a method to process/save the objects. I hope this helps. [1] http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddanextracolumntothechangelistview John --~--~-~--~~-

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 a

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 manag

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 noth

Re: value taken through textarea is being displayed in one line

2008-08-26 Thread John Lenton
ne breaks specifically. Luckily Django has a filter to do > this: linebreaks. So you just do {{ comment|linebreaks }} > > -- > DR > > > -- Sent from Gmail for mobile | mobile.google.com John Lenton ([EMAIL PROTECTED]) -- Rando

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: 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 > integ

Re: 'Django in Under a Minute' screencast, requesting feedback before v1-final is ready

2008-09-04 Thread John M
I never thought I'd say this, but it's a little TOO QUICK. Maybe 3min ? It's not long enough to really get me interested, but I don't want to take too much time / detail that I start learning the product. Overall though, the quality and idea are awesome, keep it up. Joh

Re: What do you use for a user manager in Django?

2008-09-05 Thread John M
I think now that the Admin refactor in 1.0 is there, you can just sub- class the user model and use admin that way, no? On Sep 5, 1:28 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > What do you use for a user manager in Django?  When I used Django it > was nice, but I couldn't find a way to use it f

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

2008-09-05 Thread John M
to remember something about a .NET version of python, I could be wrong. Found it .http://www.codeplex.com/Wiki/view.aspx? ProjectName=IronPython John On Sep 5, 1:26 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > I know Django is made primarily for Apache, but does anyone know if >

[SOLVED] Re: get_absolute_url with flatpages doesn't give a complete path

2008-09-17 Thread John Allen
e_tag(flatpage_menu) This assumes that SITE_ID is correctly set in the settings.py file for the project. John Allen Bofferdange, Luxembourg On Sep 15, 11:49 pm, allenlux <[EMAIL PROTECTED]> wrote: > I'm a newcomer to django but so far most things seem to work nicely. > > One d

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 bei

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&

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]&quo

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

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 pm, John M <[E

Re: How to View Raw Generated SQL

2008-09-24 Thread John Allen
The FAQ recipe (when run from a manage.py shell) didn't produce anything in my application. I found this which might help: http://blog.michaeltrier.com/2007/8/11/display-the-sql-django-orm-is-generating On Sep 25, 5:45 am, Chris <[EMAIL PROTECTED]> wrote: > I'm trying to debug a usage of callpro

Something I don't understand when using get_absolute_url()

2008-10-01 Thread John Allen
strftime("%d"), 'slug': self.slug }) get_absolute_url = models.permalink(get_absolute_url) I'm obviously not understanding something here - can anyone help? John --~--~-~--~~~---~--~~ You

Re: mptt + contrib.comments?

2008-10-01 Thread john Moylan
Hi Chris, I'd love to see your finished code - if you can/want to share? J 2008/9/30 Chris Stromberger <[EMAIL PROTECTED]> > OK, nevermind on the admin page issue. Was being caused > by TEMPLATE_STRING_IF_INVALID being set to something other than ''. > Would still love to see an example of con

Re: Something I don't understand when using get_absolute_url()

2008-10-01 Thread John Allen
On Oct 1, 10:25 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > I think this has to do with '/cms/' being defined in both your domain > name and your apache conf's location directive. Since you tell Django > the django.root is /cms/, it must add it to build an effectively > *absolute* url - t

Re: Something I don't understand when using get_absolute_url()

2008-10-01 Thread John Allen
Bruno, Thanks, this helps a lot. > > > While we're at it : what's your use case for adding the domain name to > > > the url ? > > > I'm doing this in a custom tag to produce a sidebar menu of recent > > posts. > > Recent posts belonging to the same site ? I assume so, since you use > sites.objects

Re: Something I don't understand when using get_absolute_url()

2008-10-02 Thread John Allen
On Oct 2, 10:27 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > > You are right, it wasn't necessary to add the domain name explicitly. > > I had only done this because of some earlier issues with flatpage URLs > > (where it was necessary to add the domain name). > > ??? I never used flatpage

Re: Flatpages, get_absolute_url() and ABSOLUTE_URL_OVERRIDES

2008-10-05 Thread John Allen
Erik, Malcolm, Thanks for two very interesting answers - but which one is correct? Malcolm, you are saying, in effect, that the code in Erik's post can never work in the settings file? John --~--~-~--~~~---~--~~ You received this message because yo

Re: Flatpages, get_absolute_url() and ABSOLUTE_URL_OVERRIDES

2008-10-05 Thread John Allen
and others suggesting that using reverse() is generally a good thing to do. 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

Re: Flatpages, get_absolute_url() and ABSOLUTE_URL_OVERRIDES

2008-10-05 Thread John Allen
Small postscript to the above: On 21 August, Jannis Leidel (http://jannisleidel.com/) posted that he was using something like Erik's code: from django.core.urlresolvers import reverse ABSOLUTE_URL_OVERRIDES = { 'coltrane.entry': lambda o: reverse('coltrane_entry_detail', kwargs={

Re: No FlatPage matches the given query.

2008-10-05 Thread John Allen
Have you looked at these notes on how to get the Practical Django Projects examples to work: http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Flatpages, get_absolute_url() and ABSOLUTE_URL_OVERRIDES

2008-10-06 Thread John Allen
There are a few fairly recent threads touching this issue - including one of mine - but I'd like to ask a new question. The FlatPage model requires an explicity defined - ie hard-coded - URL and get_absolute_url() is set equal to this hard-coded URL (eg "/ about/"). For my purposes I needed to a

Multiple static media roots?

2009-01-24 Thread John Baker
I need to separate static media roots into "static" (belonging to application - css, images etc) and "dynamic" (uploaded by users with filefields etc). The point is that truly "static" media doesn't change and is part of the deployed code. Dynamic "static" media is uploaded and kept in a separate

Re: Multiple static media roots?

2009-01-24 Thread John Baker
> write a custom file storagehttp://docs.djangoproject.com/en/dev/topics/files/ Thanks. However, I know I can store them somewhere else but my problem is serving them up again in the local development environment. The django.views.static.serve doesn't take an argument for serving from a differen

Re: Multiple static media roots?

2009-01-24 Thread John Baker
OK thanks and yes it does but that's half the story. I haven't made myself very clear. The ImageField still tries to append /media/ to the image upload_to path rather than /uploads/ which would retrieve them from the dynamic media root rather than the application media. My point was how do I get

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 recurring reques

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 basically allows you to wr

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 = m

Re: new record - onetoonefield - create related record

2009-01-31 Thread John M
it's just when I try to create a new record from the shell, using the above model code, it doesn't work. I'm thinking I'm missing something simple? I wonder if I should create the child record with : hs = hostsetting(host=h) hs.save() ? I hope this helps you find my bug. T

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: simple record output

2009-02-02 Thread John M
plate effect my output? Thanks On Feb 2, 12:57 pm, John M 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

Re: simple record output

2009-02-02 Thread John M
BRILLIANT, that's what I was looking for , thanks Jake! On Feb 2, 2:19 pm, Jake Elliott wrote: > hi john - > > you can use the 'spaceless' tag in your > template:http://docs.djangoproject.com/en/dev/ref/templates/builtins/#spaceless > > to filter out spaces &am

Re: Coming Soon

2009-02-03 Thread John M
nd, you'll find that you've made an excellent choice! Have fun! John On Feb 3, 5:57 pm, timlash wrote: > Hello! > > Just finished the four part tutorial and I'm excited to learn more.  I > can't help but notice that both the 0.96 and latest version of the > tut

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 the

Re: Geos (geos-3.1.0rc2) wont 'make' on Ubuntu 8.10

2009-02-12 Thread John Handelaar
2009/2/12 Rhoel_in_Asia : > > Okay, will give that a try - did wonder if its a script error in the > latest version. Your make failure says pretty clearly that the right compiler is missing. Make sure on Ubuntu you have previously installed build-essential, g++ and python2.5-dev before trying to

Re: Static file serve with prior authentication?

2009-02-25 Thread John Hensley
mes in this group: http://groups.google.com/group/django-users/search?group=django-users&q=sendfile&qt_g=Search+this+group Links: http://tn123.ath.cx/mod_xsendfile/ http://blog.lighttpd.net/articles/2006/07/02/x-sendfile http://wiki.codemongers

Can't run django on Apache

2009-03-04 Thread John Maines
Hello: I've installed Django 1.0 on Ubuntu and am trying to get it to run on Apache. Apache is installed, working fine, with mod-python also in place. I'm new at everything Linux. But when I try to run my app (a test blog), Apache gives an ImportError message (below) I have come across NUMEROUS

RE: Can't run django on Apache

2009-03-04 Thread Maines, John
Thanks. That's one of the about 50 variables I have tried with the path settings ... still no luck. -- John -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]on Behalf Of xankya Sent: Wednesday, March 04, 2009 4:28 PM To: Django users Su

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 day

Django Pluggable application for invoicing / accounts?

2009-03-05 Thread John Boxall
earching in the usual places but haven't found anything yet. Has anyone seen any Django pluggable apps for maintaining billing history for users? Thanks, John http://github.com/johnboxall --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Cherrypy and view variables caching?

2009-03-05 Thread John M
Malcolm, thanks for the reply and I figured that was my issue. Which leads me to another question, does everyone put all view code into views.py even though a simple generic view is all that's used? THanks again John On Mar 5, 4:05 pm, Malcolm Tredinnick wrote: > On Thu, 2009-03-05

Re: Cherrypy and view variables caching?

2009-03-05 Thread John M
7; code into views.py eitherway. J On Mar 5, 6:33 pm, Malcolm Tredinnick 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: Django Pluggable application for invoicing / accounts?

2009-03-06 Thread John Boxall
.com/lincolnloop/django-beancounter/blob/736b627c337fdc2cab41f45375fd4eecbdd55526/beancounter/models.py Thanks, John On Mar 5, 4:36 pm, Malcolm Tredinnick wrote: > On Thu, 2009-03-05 at 16:23 -0800, John Boxall wrote: > > Hey everyone, > > > I'm building a Django app that ch

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

2009-03-06 Thread John M
uld not be found. I'm running 1.1 alpha 1. Thoughts? I'd love to be able to dump the data for just one table and then reload it. Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Trouble with Chapter 7 in Version 1.0 book

2009-03-11 Thread John Maines
Hello, We are making our way through the Django book, web version, for 1.0. We hit a road block at chapter 7, Forms. In the part subtitled "A Simple Form Handling Example", there are some very basic instruction on building a form that include making a view, adding some code to urls.py, and crea

Re: Trouble with Chapter 7 in Version 1.0 book

2009-03-12 Thread John Maines
On Mar 12, 12:00 am, Karen Tracey wrote: > On Wed, Mar 11, 2009 at 8:37 PM, John Maines wrote: > > We are making our way through the Django book, web version, for 1.0. > > We hit a road block at chapter 7, Forms. > > > In the part subtitled "A Simple Form Hand

Snap and SCT - any reviews?

2009-03-13 Thread John Crawford
Hello, I have been looking for Django-based forum-building software, and so far, the two best candidates are Snap and SCT. Does anyone have any experience with either, and willing to comment on them? Or are there other apps that might be better than those? Thanks. John C

Re: Snap and SCT - any reviews?

2009-03-15 Thread John Crawford
Anyone? Anyone? Bueller? John Crawford wrote: > Hello, I have been looking for Django-based forum-building software, > and so far, the two best candidates are Snap and SCT. Does anyone have > any experience with either, and willing to comment on them? Or are > there other apps t

Re: Snap and SCT - any reviews?

2009-03-16 Thread John Crawford
be funny :) Sorry again. John C> Jacob Kaplan-Moss wrote: > On Sun, Mar 15, 2009 at 5:40 PM, John Crawford wrote: > > Anyone? Anyone? Bueller? > > That's rude. > > Please don't take the amazing work of the volunteers on this board for > granted. Nobody here

Re: Sending attachments with django-contact-form

2009-03-16 Thread John Hensley
ook at using the EmailMessage directly instead of via send_mail. Have a look at: http://docs.djangoproject.com/en/dev/topics/email/#the-emailmessage-and-smtpconnection-classes John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

i18n escape-able quote marks

2009-03-22 Thread John Handelaar
Hello So if my translation string in a template currently looks like this: A book called "Gulliver's Travels" ...how do I convert that into something starting with "{% trans" ? jh --~--~-~--~~~---~--~~ You received this message because you are subscribed t

<    1   2   3   4   5   6   7   8   9   10   >