Re: i18n escape-able quote marks

2009-03-22 Thread John Handelaar
On Mar 22, 11:55 pm, Malcolm Tredinnick wrote: > On Sun, 2009-03-22 at 21:38 +, JohnHandelaarwrote: > > 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 "{% t

Re: i18n escape-able quote marks

2009-03-23 Thread John Handelaar
2009/3/23 Malcolm Tredinnick : > To solve your particular problem here, though, it might be possible to > write your own version of the url template tag. Writing custom template > tags is easy enough (and documented). Writing a templtae tag that more > or less wraps another template tag is probabl

i18n template nightmare part two

2009-03-23 Thread John Handelaar
: {% load i18n %} {% get_current_language as LANGUAGE_CODE %} {{ LANGUAGE_CODE }} ... prints "en" even when the page renders in Spanish. Anybody got any ideas? Thanks for your time. John Handelaar --~--~-~--~~~---~--~~ You received this

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) and something wrong w

Re: serving a static file via nginx requiring authentication from django

2009-06-29 Thread John Hensley
internal; > } [...] > [1] http://wiki.nginx.org/NginxXSendfile I think the answer's in that document, actually. The value of X-Accel-Redirect should be your internal location's URL ('/media/books/') plus your filename (os.path.basename(ebook), in

Problem with Client()'s cookies in testing framework.

2009-07-20 Thread John Bean
I'm having a problem with the cookies from a Client() disappearing. Here is the example I'm working with (also on dpaste: http://dpaste.com/hold/69285/) # This method works as expected. It does not lose any # cookie information. def followRedirect_working(response, expected_url): """

Good OneToOneField design?

2009-08-14 Thread John M
save() method or should it be somewhere else in a view? What I'd love to hear are peoples examples of how they used 1-1 fields and implemented them in their code. Thanks so much John Matthew --~--~-~--~~~---~--~~ You received this message because you are subsc

DecimalField's and lots of math

2009-08-16 Thread John M
en you can't do this either: y = field1 / Decimal(a + b / 2.0) Am I missing something, or does the Decimal field just require a ton of typecasting to keep it sane? Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed

Displaying username on every page

2009-08-19 Thread John Barham
f you set the context_instance parameter to a RequestInstance. Is there a way I can access the user info from any page without having to do the above? John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Displaying username on every page

2009-08-19 Thread John Barham
render_to_response() wrapper. 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

Re: Displaying username on every page

2009-08-19 Thread John Barham
ave to pass it explicitly to render_to_response(). Is that the case? 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@googlegrou

Raw HTTP request processing?

2009-08-25 Thread John Baker
is on output as you create the response object yourself, but with a request? Thanks in advance, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

json serialization error on arrays

2009-08-25 Thread John Baker
., 0., 0., 0.]) is not JSON serializable What would you recommend I do to support arrays? Thanks in advance, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Temporary session directory

2009-08-28 Thread John Barham
have to resort to cron? (I'm using the file-based session backend.) 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-us

No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
Hi all, I have some trouble with my Admin-URLs. When I set DEBUG=False (in the settings.py) I become this error (I've changed some lines in the file ../django/core/handlers/base.py to see the error in no-debug-mode): Using the URLconf defined in project.urls, Django tried these URL patterns, i

Re: No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:01:37 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 8:10 AM, Stephan John wrote: > > Hi all, > > > > I have some trouble with my Admin-URLs. When I set DEBUG=False (in the > > settings.py) I become this error (I've changed some line

Re: No admin-url match when DEBUG=False

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:28:28 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 9:19 AM, Stephan John wrote: > > I registered the models with: > > admin.site.register(Beitrag, BeitragAdmin) > > admin.site.register(Container, ContainerAdmin) > > > > It works fi

Re: How do I define choices in ChoiceField

2009-03-27 Thread Stephan John
Am Freitag, 27. März 2009 14:43:08 schrieb Joshua Partogi: > bel = forms.ChoiceField(choices=({'one':'one','two':'two'}) ) it must be tuples: bel = forms.ChoiceField(choices=(('one', 'one'), ('two', 'two' ) ) --~--~-~--~~~---~--~~ You received this message becau

Re: No admin-url match when DEBUG=False

2009-03-28 Thread Stephan John
Am Freitag, 27. März 2009 21:05:09 schrieb Karen Tracey: > On Fri, Mar 27, 2009 at 9:44 AM, Stephan John wrote: > > Your calls to admin.site.register should not be in your models.py file. > They should be in a file named admin.py and a call to admin.autodiscover() > ought to be i

Re: Admin interface question

2009-03-30 Thread John Smith
You need to give your ChangeLog model a __unicode__ method, then you'll get titles that make sense. On Mar 30, 12:45 pm, Phil Edwards wrote: > Hi All: > > First off, apologies if this message ends up appearing twice - I had a > minor problem getting Google to recognise that I'd subscribed... > >

RSS producing wrong link from get_absolute url

2009-04-02 Thread John Baker
I have a strange problem with simple RSS feeds. It works fine locally on my development machine but when I deploy to the test server running through mod_python on port :81 the blog item links miss out the port number and so don't work. Test server with new RSS code.. http://www.adrem.uk.com:81/fe

Re: upgrading django

2009-04-02 Thread John Baker
I did this over dec/jan for an inherited app.. it was an absolute nightmare.. i had to rewrite huge chunks of it.. It really would depend on how many hacks the original app had though. Unfortunately, I inherited lots of obscure shortcuts and extensions that became incompatible so most of it stopp

Re: RSS producing wrong link from get_absolute url

2009-04-03 Thread John Baker
changed your `Site` model entry to the proper port number? > > On Fri, Apr 3, 2009 at 2:23 AM, John Baker wrote: > > > I have a strange problem with simple RSS feeds. It works fine locally > > on my development machine but when I deploy to the test server running > > thro

File upload validation - not cleaned?

2009-04-07 Thread John Baker
I have a situation that is confusing me. I have a form to upload a file. From my understanding, when 'clean' is called on the form, the 'file1' field should have already been cleaned and available in cleaned_data. However, under some circumstances it is, sometimes not. But when calling is_valid I

Strange FileField behaviour

2009-04-10 Thread John Baker
I have a form that validates the size of a file and it works in one page but not another. This is very strange. The only difference between the two templates is that the working one has only a single form (below) and the non-working one has 3 forms (including the form below). For some reason, in a

Re: Strange FileField behaviour

2009-04-10 Thread John Baker
Thanks mucho Malcolm. It seems I did forget to set the form encoding in the one template but not the others! > The usual reason files aren't uploaded is because you forget to specify > the enctype attribute as a multipart/form-data encoding. > Seehttp://docs.djangoproject.com/en/dev/ref/forms/ap

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 common view function(ren

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 particular user's home direct

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 framework, Linux environment. > D

Re: Is Django the Right Choice?

2009-04-24 Thread John Crawford
simplejson), Python, and YAML... I don't use the XML side of it, but the JSON works quite nicely for me, with the jQuery Javascript library on my client-side to transfer/decode the data. Although I agree with the others, I'm not sure what exactly your app is

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. --~--~-~--~~~---~--~~ You received this m

Re: How to handle view/url situation (Newbie)

2009-05-04 Thread John Crawford
if he hit the browser-refresh button, the page would display correctly. So the redirect is causing the browser to consider it as a new page, and thereby refreshes it. Is this what's going on, or is there something more complex that I am missing? :) John C> --~--~-~--~~-

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 (th

Re: Trouble Starting Up with runserver

2009-05-07 Thread John Crawford
I'm not sure why your address is all zeros, did you give a specific host number parameter to runserver? Generally 127.0.0.0:8000 would be your localhost, and that is the default for runserver. Use that instead (or don't give it any parameters), see what happen

Re: Trouble Starting Up with runserver

2009-05-07 Thread John Crawford
Arg - I meant 127.0.0.1:8000 Is there a way to edit messages that I dont see here? :) John C> On May 7, 10:17 am, John Crawford wrote: > I'm not sure why your address is all zeros, did you give a specific > host number parameter to runserver? > > Generally 127.0.0.

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. > > Why django default uses ca

Implementing A/B Testing in Django

2009-05-16 Thread John Boxall
templates to users in a pluggable way while at the same time measuring what template the user sees? Cheers, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Implementing A/B Testing in Django

2009-05-18 Thread John Boxall
Thanks Tino, I am aware of GWO - just thought it would be a cool project to try! It looks like the local threads / request object available in the template loader trick is going to work - just gotta clear up some possible caching issues then it'll be ready for release. Cheers, John On M

Re: Implementing A/B Testing in Django

2009-05-18 Thread John Boxall
Using template_loader idea I've developed a little pluggable app for conducting basic A/B tests. You can grab it here: http://github.com/johnboxall/django-ab/tree/master John On May 16, 9:04 pm, John Boxall wrote: > I've got a new home page and I'd like to test it's p

Switching backend database on the fly?

2009-06-08 Thread John Baker
f the app would be quick to put together with django but am a little concerned about how these requirements fit with the model engine. Any advice? Thanks in advance, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Basic cms in Practical Django Projects

2009-06-12 Thread John Allen
Have a look at this site: http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html On Jun 11, 1:06 am, jayvandal wrote: > Hi, > I bought the book and started the first project. displayed the Flat > Page. I then downloaded the Tiny0MCE and can't get it to work. are > there any pla

Will it lost some features(middleware/contextprocessor) of Django when using Jinja2 ?

2009-10-03 Thread John Wang
which allow DRY in template. i am a newbie to Django , if django template can archive the same,please point out. I know i can write custom tag in django, but i dont like to bother python programming when need some reusable block of template. Many thanks. John

Re: Will it lost some features(middleware/contextprocessor) of Django when using Jinja2 ?

2009-10-05 Thread John Wang
Thanks Kristaps , I finally found the http://github.com/dcramer/coffin coffin package is just what i need. It works well as far as context processor and middleware are concerned. Kristaps Kūlis wrote: > > Hi! > You can use RequestContext (and also middlewares and context processor). > Just

Help with splicing models to a legacy DB, please

2009-10-19 Thread John Handelaar
mewhere? c) Somewhere else? Any help gratefully received. Cheers John Handelaar --~--~-~--~~~---~--~~ 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

Migrating a Wordpress website to Django

2009-11-02 Thread John K
? Thanks in advance 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, send email to dj

Re: Migrating a Wordpress website to Django

2009-11-02 Thread John K
Hey thanks for the links. It would be great to discuss personal experiences with the group. On Nov 2, 1:47 pm, creecode wrote: > Hello John, > > A quick search on Google shows some folks have done WP to Django > migrations.  Following are a few links. > > http://www.nbrightsid

Re: Migrating a Wordpress website to Django

2009-11-02 Thread John K
Thanks. Django redirect looks very useful. I'm hoping for a 1 to 1 conversion of URL's and avoid redirects all together. The redirect app would be a great last resort. On Nov 2, 2:32 pm, Antoni Aloy wrote: > 2009/11/2 John K : > > > > > Hey thanks for the links.

Preventing JOIN while checking if a self referencing FK is null

2009-11-04 Thread John Boxall
ll=True) ... # Returns a queryset which causes a join people_with_bffs = Person.objects.filter(bbf__isnull=False) # Returns a queryset which causes a join people_with_bffs = Person.objects.filter(bbf__pk__isnull=False) # Returns a queryset which doesn't cause a join? people_wi

Re: Building Q queries

2009-11-04 Thread John Boxall
idea: http://github.com/alex/django-filter Cheers, John On Nov 4, 8:00 am, mettwoch wrote: > Hi, > > I wonder if I can use the Q object to build queries interactively and > store them for repeated use. I imagine building up the tree of the Q > object in a simple web interface

Re: Preventing JOIN while checking if a self referencing FK is null

2009-11-04 Thread John Boxall
Both of these will raise a FieldError: people_with_bffs = Person.objects.filter(bbf_id__isnull=False) people_with_bffs = Person.objects.filter(bbf_pk__isnull=False) Cannot resolve keyword 'bbf_pk' into field. Choices are 'bbf'. Thanks for the suggestion though! jb On Nov 4, 11:13 am, Javier G

Re: Preventing JOIN while checking if a self referencing FK is null

2009-11-04 Thread John Boxall
re is an optimization to be made at the Django ORM level? jb On Nov 4, 11:32 am, Daniel Roseman wrote: > On Nov 4, 7:22 pm, John Boxall wrote: > > > Both of these will raise a FieldError: > > > people_with_bffs = Person.objects.filter(bbf_id__isnull=False) > > people_w

CSRF Flatpages

2009-11-28 Thread John Leith
I have a problem with the CSRF framework, and i'm just checking here to see if anyone else ran into this problem and hopefully found a solution. Here is my problem: I have a login form on the base template of my site. The home page is just a flatpage. My login processor is csrf protected. I have t

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 be

Re: Installation Problem on Mac OS Leopard

2009-11-29 Thread John M
udo? What version of OSX? I wonder what version of Python you have? Maybe that's the issue? HTH John On Nov 27, 1:15 pm, Christophe Pettus wrote: > On Nov 27, 2009, at 1:01 PM, Eric wrote: > > > Why doesn't > > Mac have an easy way to install stuff. > > I think

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 post here andi  am new to dj

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, > > I need a little custom

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: 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 http://docs.djangoproject.com/en/dev/howto

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 at

Re: A Design Question

2009-12-01 Thread John M
e of these attributes are, searching, reporting, calculations, etc and that should help you determine if you need more than one 'extra' table. HTH John On Nov 29, 10:36 am, Ramdas S wrote: > This is probably outside Django. But I am checking out since I am building > it with Djang

How can I know the foreign key model at runtime ?

2009-12-03 Thread John Wang
Hi all, Given the following simple models: from django.db import models class A(models.Model): att=models.CharField(max_length=256) class B(models.Model): fk = models.ForeignKey(A) My question is , if I have a variable of B class, how can I know what is the model its 'fk' is refering t

Re: How can I know the foreign key model at runtime ?

2009-12-03 Thread John Wang
access the manager of A through class B? e,g I want to: >>> manager_of_a = B.some_api_i_dont_know >>> queryset_a = manager_of_a.all() Any idea ? On Dec 3, 6:39 pm, John Wang wrote: > Hi all, > > Given the following simple models: > > from django.db

Re: Re: How can I know the foreign key model at runtime ?

2009-12-03 Thread John Wang
his successfully get the queryset of A Thank you again. John Wang 2009-12-04 - From: Russell Keith-Magee Date: 2009-12-04 10:11:16 To: django-users Cc: Subject: Re: How can I know the foreign key model at ru

Re: newbie following intro-tutorial01 snag -- mysql login fails from python manage.py syncdb

2009-12-09 Thread John Griessen
The problem logging in to mysql was with how I created the new user. Nevermind :-) JG -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send

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 wrote: > Can anyone poi

Cross tabulation in template

2009-12-10 Thread John M
v__count': 1, 'env': u'stage'} {'status': u'H', 'env__count': 4, 'env': u'stage'} {'status': u'I', 'env__count': 59, 'env': u'stage'} {'status': u'N', 'en

Howto output rows as HTML columns instead?

2009-12-13 Thread John Handelaar
into the horizontal space of the average browser window. Tips (which don't involve creating a dozen new semantically-much-less-meaningful models) gratefully received... Thanks John Handelaar -- You received this message because you are subscribed to the Google Groups "Django users

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 that I can use > fo

GUI builder for django

2010-04-21 Thread John Finlay
it it with django template tags? 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-us...@googlegroups.com. To unsubscribe from this group, send email to django

Re: GUI builder for django

2010-04-21 Thread John Finlay
easy to create the views from the basic widgets without having to program a lot of low level code. Are you saying there isn't an equivalent type of development tool in the web design space? Thanks John On 04/21/2010 03:10 PM, andres osinski wrote: No, and it's not a good idea to

Django-tinyMCE and django-filebrowser js error

2010-04-30 Thread John Wesonga
I've set up django-filebrowser in my app without any bugs, I already had django-tinymce set up and it loads the editor in the admin forms. I now want to use django-filebrowser with django-tinymce, but I keep getting a weird javascript error when I click on "Image URL" in the Image popup: r is unde

Re: Django-tinyMCE and django-filebrowser js error

2010-05-01 Thread John Wesonga
Fixed this.. On Apr 30, 3:06 pm, John Wesonga wrote: > I've set up django-filebrowser in my app without any bugs, I already > had django-tinymce set up and it loads the editor in the admin forms. > I now want to use django-filebrowser with django-tinymce, but I keep > getting a

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 called "action". > > How do I

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 parent

Re: Model inheritance and simple access

2010-06-08 Thread John M
bjects.get(id=1) p.child.basemethod() django would know what p.child is (either ChildA or ChildB) and I wouldn't need to know. Is that available? J On Jun 8, 11:09 am, Dejan Noveski wrote: > http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 > > select_related() > > >

Re: Model inheritance and simple access

2010-06-08 Thread John M
t; 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 > > On Jun 8

Re: Django fcgi deployment on bluehost

2010-06-10 Thread John Shaver
I know a bit about setting it up on bluehost. Have you already tried following their helpdesk article? http://helpdesk.bluehost.com/index.php/kb/article/000531 Are you installing your own python, or are you using the already installed one? You should have python 2.6 already installed (/usr/bin/

How does buildout determine paths needed? (for django-page-cms)

2010-06-29 Thread John Griessen
I made a buildout with the config below that didn't work right and found it needed to have some extra paths added. Here is the extra path I needed: '/home/john/buildout/eggs/django_page_cms-1.1.3-py2.6.egg', '/home/john/buildout/eggs/django_page_cms-1.1.3-py2.6.egg/p

Re: How does buildout determine paths needed? (for django-page-cms)

2010-06-29 Thread John Griessen
ngo-page-cms as source and it behaved differently. I still needed project_root/media/ and subdirs, but it started finding templates. Thanks for the hints. John -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

WSGI trouble

2010-07-06 Thread John Griessen
m.settings import * DEBUG=True TEMPLATE_DEBUG=DEBUG bin/django.wsgi has the same path as bin/django There is much more on the python path, presumably imported with import djangorecipe.wsgi Error and data below. Any ideas appreciated. Thanks, John - http://dpaste.

Re: WSGI trouble

2010-07-06 Thread John Griessen
John Griessen wrote: What causes the wsgi version of a buildout to have a problem with TIME_ZONE? I found that my libapache2-mod-wsgi package was too old. Perhaps a buildout for django needs to build specific versions of apache2 and wsgi also? John -- You received this message because you

debugging methods

2010-07-07 Thread John Griessen
id he mean when he said, "If I was you, I would try to debug the the list_page method here: http://github.com/batiste/django-page-cms/blob/master/pages/admin/__init__.py#L306 Try to print the context before rendering to see if everything is correct here." Thanks, John python novice

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 of monthly archive, pa

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 someone help me with tha

Re: Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee

2010-07-11 Thread John Handelaar
On 11 July 2010 14:17, Tech Scout wrote: >  Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee FTE > opportunity > View, Refer or Apply confidentially here: http://bitURL.net/3df > Tech Scout Why you just got spam filtered: 1) Posting in HTML 2) No name 3) No phone number 4)

Re: mod_wsgi problem with installation

2010-07-11 Thread John Griessen
tazimk wrote: hi, Trying to figure out why make gives following errors . What is wrong with installation ? Saw similar with buildout when a package could not be found. How are you installing? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Admin site not formatted

2010-07-11 Thread John Griessen
Darren wrote: I have had that happen a long time ago. I think my problem was that apache didn't gave permission to the CSS. I know that's not much to go on. But, maybe it will help. Or it can be lack of an alias in the apache2 config. John -- You received this message becau

debugging CSRF trouble

2010-07-11 Thread John Griessen
n together several times. Any ideas what is happening? settings with MIDDLEWARE_CLASSES that cause error: http://dpaste.com/217074/ error traceback: http://dpaste.com/217075/ John -- You received this message because you are subscribed to the Google Groups

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 = Game.objects.filter(date__gt=today).order_by('date')[:1] > > I need to use .g

I did something wrong while registered

2010-08-09 Thread John Fabiani
Hi, I recently registered for the group and I must have done something wrong because I am receiving every posting twice (duplicates). Can someone fix the problem or direct me to where I can fix it. Thanks in advance Johnf -- You received this message because you are subscribed to the Google

schema support

2010-08-11 Thread John Fabiani
Hi, I think support for postgres schema's is coming in 1.3 but I wonder is it possible to support schema in 1.2.1? If it can - could someone provide the how? or maybe a link. Thanks in advance, Johnf -- You received this message because you are subscribed to the Google Groups "Django users"

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 li

Re: Different Django instances running on the same server

2010-08-13 Thread John Pencola
env. Here are a couple good related posts that will get you up and running: http://blog.ianbicking.org/2007/10/10/workingenv-is-dead-long-live-virtualenv/ http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/ Hope that helps. John Pencola On Aug 12, 12:18 pm, Rick Caudi

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 learning Django and Python

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 wrote: > I h

Re: Django Country->State->City Dropdown list

2010-11-02 Thread John Matthew
Sounds like AJAX is your answer, there are lots of AJAX libraries out there that have examples on this. J On Nov 2, 10:31 am, d wrote: > URGENT! > The following is my django code. I would like to have 3 column drop- > down list. > > a member can select his location. > when a country is selected,

change the color of messages fr .validate

2010-11-09 Thread John Fabiani
Hi, Newbie here! Therefore I'll need a little detail (like show the code). How in the heck can I change the color of the messages from jquery.validate.js Here's my code: $("#registration_form").validate({ rules: { first_name : "required", last_name :

OT: getting strange attempted gets

2010-11-14 Thread John Fabiani
Hi, I'm a newbie to not only django but web programming in general. I have noticed that when I run my "python mange.py runserver" command I see strange entries that have nothing to do with my programming efforts. GET some URL (not mine) returns 404 or CONNECTION some IP address (not on my netw

Re: OT: getting strange attempted gets

2010-11-14 Thread John Fabiani
On Sunday, November 14, 2010 09:19:01 am Shawn Milochik wrote: > It's definitely possible. I've seen that myself before. > > Shawn While in this runserver mode is my database password exposed? Johnf -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Newbie: can't login as user via standard admin login page

2010-11-17 Thread john doe
On Wed, Nov 17, 2010 at 5:48 PM, Thomas Schreiber wrote: > Are you sure the user has been marked as is_staff or is_superuser? > > http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_staff > > No the user is not marked as either because it is my goal to set up a no

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