Re: Generic relations and tags

2006-06-27 Thread Jay Parlar
On 6/27/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Tuesday 27 June 2006 18:06, Jay Parlar wrote: > > So I'm now trying the new generic relations out for tags, much like > > the example in the documentation. The problem I'm having is doing a > > filter

Re: syncdb error: django.contrib.markup: 'module' object has no attribute 'models'

2006-06-27 Thread Jay Parlar
s error is if; > 1) You are not running r3201 or greater on your powerbook > 2) settings.py on your powerbook is not including those two applications. > The answer is 1. Oops. I'm currently running Django on four different computers, guess I just forg

Re: Redirect to another location in case of 404 and 500

2006-06-29 Thread Jay Parlar
ard > 404 and 500 templates? > If you have files 404.html and 500.html in your base templates directory, those will get used whenever a 404/500 happens. Is that what you're looking for? Jay P. --~--~-~--~~~---~--~~ You received this message because y

Re: Django Boot Camp

2006-06-29 Thread Jay Parlar
e. > > Perhaps the initial one could be scheduled to coincide with and > cross-promoted with a conference? Would make a great PyCon event... Next year... Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: django.shortcuts.render_with_request_context() ?

2006-06-30 Thread Jay Parlar
On 6/30/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/30/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > I find that just about all of my HttpResponse objects have a > > RequestContext inside. How would people feel about adding another > > function to django.shortcuts parallel to render_to

Re: django.shortcuts.render_with_request_context() ?

2006-06-30 Thread Jay Parlar
On 6/30/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/30/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > That should be: > > > > context_instance=RequestContext(request)) > > Heh. Not sure how I got that wrong, considering I had it right in the

Re: Django friendly hosting in Canada?

2006-07-02 Thread Jay Parlar
heard of any Canadian sites yet that support Django, but that doesn't mean they're not out there. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Broken File Uploads

2006-07-02 Thread Jay Parlar
following in my urls.py: if settings.DEBUG: urlpatterns += patterns('', (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root':'/var/www/webcompiler/site_media/', 'show_indexes':True}),

Re: Avoiding restarts on the development server

2006-07-02 Thread Jay Parlar
a page is loaded. Maybe this doesn't apply for the Admin though. On a side note: What's your need for making changes to contrib/admin? What kind of functionality are you looking for that's not already provided? Jay P. --~--~-~--~~~---~--~~ You re

Re: Avoiding restarts on the development server

2006-07-03 Thread Jay Parlar
ou can't add and delete associated objects as people usually > think of it. So I want to add some javascript code to create a new > object for inline editing, and javascript code for deleting one. You know you can add custom javascript to admin edit pages without changing the Adm

Re: Best way to detect if a view is being rendered for the first time?

2006-07-03 Thread Jay Parlar
s like the kronos 'getEvent()' method might do it for you. Other than that, you'd probably have to store your "global variable" in the database, if you want consistency between the running Apache/FCGI instances of your app. Jay P. --~--~-~--~~-

Re: A small proposal to make it easier to find things

2006-07-03 Thread Jay Parlar
+1 I've already been doing that myself, tagging everything in del.icio.us with "django". Any particular reason you want django-tips? I don't mind changing (they make it easy to rename a tag), but was just curious. Jay P. --~--~-~--~~~---~--~---

Re: A small proposal to make it easier to find things

2006-07-03 Thread Jay Parlar
y full tutorials though. Jay P. --~--~-~--~~~---~--~~ 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, se

Re: save an object to the session and call back the object in another page

2006-07-04 Thread Jay Parlar
citly, do > u have any idea?? Not sure what you're asking here. Jay P. --~--~-~--~~~---~--~~ 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@goo

Re: Code exectution and persistent object question

2006-07-05 Thread Jay Parlar
like Steven said, it's not safe to do anything in the global namespace. If you need a per-session singleton, you can store it in request.session. If you need a per-application singleton, then you're going to have trouble... Jay P. --~--~-~--~~~---~--~~ You

Re: generic relations in the admin interface

2006-07-06 Thread Jay Parlar
ll just learning it. This is certainly not an ideal solution, but it's the best I could come up with for now. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Generic views and dates in the future

2006-07-06 Thread Jay Parlar
is that I'm missing? I don't mind writing a patch against date_based.py (if people are interested), but I'm not sure when I'll get the chance. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Generic views and dates in the future

2006-07-06 Thread Jay Parlar
On 7/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 7/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > What's the justification for the date based generic views not showing > > dates in the future? > > The justification is: The system was built for

Re: Deploying and set up on shared hosting?

2006-07-07 Thread Jay Parlar
;ve been really happy with Dreamhost.com so far, but I don't know how well it will hold up under heavy traffic. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Jay Parlar
On 7/7/06, Iain Duncan <[EMAIL PROTECTED]> wrote: > > > > Jay Parlar wrote: > > Probably WebFaction (formerly python-hosting.com) would be your best > > bet: http://www.webfaction.com/shared_hosting > > That looks sweet. Anyone else have any feedback on thes

Atomic value increment

2006-07-12 Thread Jay Parlar
w unique_id? I can't just use the autogenerated 'id' primary key as an unique identifier, because I have a list of legacy unique_id values which I have to initially populate the db with. Jay P. --~--~-~--~~~---~--~~ You received this message because

Re: Atomic value increment

2006-07-12 Thread Jay Parlar
On 7/12/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Jul 12, 2006, at 8:56 AM, Jay Parlar wrote: > > > > Is there a better way to do this? More specifically, an atomic way to > > generate and set the new unique_id? I can't just use the autogenerated > >

Re: Atomic value increment

2006-07-12 Thread Jay Parlar
On 7/12/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > why not use a GUID ? > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/163604 That's pretty neat, but I do need the values to increase by one everytime. Jay P. --~--~-~--~~~---~--~---

Re: Intermediary M2M admin troubles

2006-07-18 Thread Jay Klehr
= ( (None, {'fields': ('name',)}), ('Ingredients', {'fields': ('ingredient',), 'classes': 'collapse'}), ) Jay markguy wrote: > As would showing me how to collapse the M2Mi > fieldset. > -

Re: CSS and JavaScript manager

2006-07-21 Thread Jay Klehr
e idea). Though it seems like you have this issue covered with the long numeric file names, changing depending on the file's contents. Just my concerns. :) Jay [EMAIL PROTECTED] wrote: > I'm thinking about making a simple JavaScript and CSS manager that > would look like this

Re: Wondering about few 'burried' issues

2006-07-27 Thread Jay Klehr
the patch to Trac so the developers can review it and possibly get the fix in the next release? Be pro-active and help the community. The sooner patches get into these bugs (especially if they're easy) the sooner they'll get closed. Jay --~--~-~--~~~-

Re: Template widget size

2006-07-27 Thread Jay Klehr
ce, I haven't actually looked myself). Jay Matt the Destroyer wrote: > size=30 simply tells the browser to make the input field a size of 30 > characters wide. it has no bearing on input data or transmission. > > in the past, i have simply hard-coded my own input fields into my >

Re: Template widget size

2006-07-27 Thread Jay Klehr
Nagy Károly wrote: > And Jay, (afaik) CSS controls visual size of field, not the number of > characters you can type in (VARCHAR(30) field in 600px input widget > means 2/3 of a box is empty) > > Charlie. > Exactly, the visual size, which is the same as the "size"

Re: [Changeset] r3455 - django/trunk/docs

2006-07-28 Thread Jay Parlar
I'm not in the AUTHORS file. Not that I mind :) Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubs

Re: New versions of django break login_required

2006-07-28 Thread Jay Parlar
.4/notes/#what-s-new-in-python-2-4-alpha-3 Jay P. --~--~-~--~~~---~--~~ 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

Re: [Changeset] r3455 - django/trunk/docs

2006-07-28 Thread Jay Parlar
On 7/28/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 28, 2006, at 11:54 AM, Jay Parlar wrote: > > Not that I mind :) > > http://code.djangoproject.com/changeset/3477 > > > Ha, victory is mine! Thanks, Jay P. --~--~-~--~~-

Project when using multiple sites

2006-07-31 Thread Jay Parlar
in "foo", and by app3 in "bar". Where would I define it? I would guess I can arbitrarily choose to define it in either foo.models or bar.models. Or would it make any sense to define it somewhere else entirely, so it's not directly coupled to only one app? Thanks, Jay P. -

Re: Project when using multiple sites

2006-07-31 Thread Jay Parlar
Eww, the title of this thread was *supposed* to be "Project layout when using multiple sites". Gotta remember to proof-read the subject line before submitting! Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Tracking views or clicks

2006-07-31 Thread Jay Klehr
s" table in a join for every object load/hit). Even if no cache benefit can be gained, I like the ability to add a "views" property to ANY object that you please just by setting up a Generic foreign key though, it's much easier to add that functionality to any object

Re: VMWare image for running/developing Django

2006-08-01 Thread Jay Parlar
their own machine, fix things, and redeploy. It's worked very nicely so far. We had a Gentoo image running X and fluxbox, that compressed down to about 700 megs (using VMWare's 'shrink', and standard zip). Maybe CDs of a Django development environment could be given out at

Re: VMWare image for running/developing Django

2006-08-01 Thread Jay Parlar
session into the player, I would type "vmware-toolbox" (or something like that), and a little GTK app would pop up, and give me the option to shrink. I'll try to get more details tomorrow when I'm at work, where I have it documented. I was able to get a 3 gig uncompres

Re: Project when using multiple sites

2006-08-02 Thread Jay Parlar
st can't seem to find any guidelines for configuring settings.py properly to use the Sites framework. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Project when using multiple sites

2006-08-02 Thread Jay Parlar
nf with so that it uses new-settings.py on your host. Perfect. These steps (and the SESSION_COOKIE_NAME) are exactly what I've been looking for. Thanks Ian. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: What is the proper way to apply a patch to the release version

2006-08-02 Thread Jay Parlar
le and applies it to your Django install. Note that since this is Python, you don't need to "compile the changes". Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Is AJAX Alone Reason to Use TG?`

2006-08-02 Thread Jay Parlar
p://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1 He shows the steps you have to take, and even better for you, he uses YUI. You'll have to wait for the second part to see the complete implementation, but he makes it look pretty easy so far. Jay P. --~--~---

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
I would avoid the Wiki tutorial completely and use Jeff Croft's guide: http://www2.jeffcroft.com/2006/may/11/django-dreamhost/ I've setup a couple sites flawlessly using his tutorial. Jay P. --~--~-~--~~~---~--~~ You received this message becau

Off Topic: Why does IE hate me?

2006-08-03 Thread Jay Parlar
eone more knowledgeable than myself could take a quick look at the HTML, and suggest what I'm doing that IE hates so much? My problems are compounded by the fact that I have no Windows machines, so my only means of checking right now is the 24 free trial on browsercam.com, and that&#x

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
m the command prompt, type: echo $PATH and let us know what it says. Jay P. --~--~-~--~~~---~--~~ 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@goo

Re: Creating User Accounts

2006-08-03 Thread Jay Parlar
. class Article(models.Model): body = models.TextField() body_html = models.TextField(blank=True, editable=False) def save(self): self.body_html = markdown(self.body) super(Article, self).save() So you could create the new User in the 'save' method. Will th

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
django-admin.py startproject myproject > Wait... Were you trying to run 'django-admin.py startproject myproject' from your Windows machine? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Anybody set up Django using Dreamhost?

2006-08-03 Thread Jay Parlar
On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Im using Putty on a windows machine yep. Following Jeff's tutorial my > paths are all wrong now, as myproject in now in the 'bin' directory. > Did

Re: Off Topic: Why does IE hate me?

2006-08-04 Thread Jay Parlar
Cool, thanks a lot! So what part exactly was wrong with my original design that IE didn't like? Was it that I only floated the sidebar, and not the main content area? Does IE always reject that kind of design? Jay P. --~--~-~--~~~---~--~~ You received this mes

Re: Off Topic: Why does IE hate me?

2006-08-04 Thread Jay Parlar
On 8/4/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 04-Aug-06, at 6:40 PM, Jay Parlar wrote: > > > > > So what part exactly was wrong with my original design that IE didn't > > like? Was it that I only floated the sidebar, and not the main con

Re: VMWare image for running/developing Django

2006-08-04 Thread Jay Parlar
ld be: http://www.rhonabwy.com/wp/2006/08/04/making-a-django-development-image-for-vmware/ (you had forgotten the "a" in "image", but I'm sure most people can figure that out). Jay P. --~--~-~--~~~---~--~~ You received this message becaus

get_for_model building bad SQL?

2006-08-04 Thread Jay Klehr
ate sql similar to above, but "quartz" would be replaced with "mymodel". I suspect I shouldn't be using it this way, but seeing SQL like that being run also concerned me. Any ideas? Jay --~--~-~--~~~---~--~~ You received this message bec

Re: get_for_model building bad SQL?

2006-08-05 Thread Jay Klehr
ugh. ;) I created a ticket: http://code.djangoproject.com/ticket/2488 Thanks, Jay Malcolm Tredinnick wrote: > Hi Jay, > > Please start a new thread for a new topic, rather than replying on an > existing thread. Makes things easier to track both in threaded email > clients an

Re: Why 404?

2006-08-07 Thread Jay Parlar
he other day (archive_day wasn't working) and a switch to MySQL fixed it. Jay P. --~--~-~--~~~---~--~~ 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: Which caching method to use in shared hosting?

2006-08-07 Thread Jay Parlar
be as fast, but since Dreamhost gives SO much disk space, you might as well. They're a little vague on how much processor you're allowed, so I'd try to cut as many layers out as possible that require CPU. That's really just a guess though. An answ

Re: DreamHost

2006-08-08 Thread Jay Parlar
utes ago, and my Dreamhost site is working just fine. I used Jeff Croft's tutorial to get going. You're going to have to be a bit more helpful with what you're seeing though. Any error output? Any output at all? Is your .htaccess file setup properly? Did you remember to '

Re: DreamHost

2006-08-09 Thread Jay Parlar
Could you maybe post your .htaccess and django.fcgi files? Jay P. --~--~-~--~~~---~--~~ 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@googlegro

Re: Google-like API keys

2006-08-11 Thread Jay Klehr
andom string is all you need to do, but MD5 and SHA make that step easier. . No matter what you do there is always a chance for a duplicate key to come up (something you should check in your system before assigning), but the longer the key, the less lik

Re: Admin pages for anonymous user

2006-08-11 Thread Jay Parlar
ever priviledges you require. Jay P. On 8/11/06, jarpis <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm trying to allow admin generated pages for unauthenticated > (anonymous) users. This is for intranet app and I'd only need to open > some models. I'm using

Compress images on upload?

2006-08-11 Thread Jay Parlar
Anybody have any code lying around to automatically compress JPEGs that are uploaded in the Admin via a FileField/ImageField? Many of my users aren't in a position to know how to compress images themselves, and our site certainly doesn't need full quality JPEG

Re: Compress images on upload?

2006-08-11 Thread Jay Parlar
And just to note, I tried doing compression with PIL in my model's save() method. The problem is that files aren't written to disk until *after* the save() method is complete. Jay P. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: memcached equivalent in python

2006-08-11 Thread Jay Parlar
On 8/12/06, a <[EMAIL PROTECTED]> wrote: > > dont know perl... You don't need to know Perl to run memcached. You just install it and use the Python bindings. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Compress images on upload?

2006-08-13 Thread Jay Parlar
On 8/13/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > Optional parameter for JPEG quality added :) > > http://www.verdjn.com/wiki/PhotoField Beautiful, now it's worth my time ;-) Seriously, thanks a lot. Jay P. --~--~-~--~~~---~--~~ Yo

Re: Django 0.95 on Dreamhost

2006-08-13 Thread Jay Parlar
such as when you get that error. Also, your various urls.py files would help. Oh, and it's probably not a good idea to post your SECRET_KEY to the public :) Maybe change it before you go live. Jay P. --~--~-~--~~~---~--~~ You received this message because you ar

Re: Django neophyte question.

2006-08-14 Thread Jay Klehr
When I run the dev server from my remote server, I do it like this: python manage.py runserver my.domainname.com:8000 Then I can access it through http://my.domainname.com:8000 my.domainname.com isn't setup anywhere else either (like in Apache or anything), but www.domainname.com is.

Re: FileField not getting populated back to the form.

2006-08-15 Thread Jay Parlar
really annoying as the User needs to re-browse for > the file again. What does your form look like? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Sorting entries using generic views

2006-08-15 Thread Jay Parlar
#x27;,)) pub_date = models.DateTimeField('date published', auto_now_add=True) body = models.TextField() class Meta: ordering = ('-pub_date',) Then all you have to do is use a generic view like you might normally do, with Post.objects.al

Re: How do I store project in subversion?

2006-08-15 Thread Jay Klehr
e already versioning the source file that the compiled version came from). I'm still new to Python, but that's what I've observed so far. :) Jay alex kessinger wrote: > I want to thank you for all your anwsers it has been very helpfull. I > also have another question. I am new

Re: Custom file handling

2006-08-15 Thread Jay Parlar
a feature I really want too, and someday I'll try to find some time to put together an acceptable solution. Until then... If you want a custom upload_to, and you're *not* using the admin, you can try my old patch: http://code.djangoproject.com/ticket/1994 It lets you set th

Re: Custom file handling

2006-08-16 Thread Jay Parlar
On 8/16/06, Nathan Ekstrom <[EMAIL PROTECTED]> wrote: > > Saving with the same name is fine I just need a custom way to specify > the directory. Well, my patch gets you that, but again, not from the Admin. Jay P. --~--~-~--~~~---~--~~ You receiv

Re: check for yourself (((;

2006-08-18 Thread Jay Klehr
Seems to me that robots.txt is the first place I'd look if I was looking to cause some trouble. :) Jay Ian Clelland wrote: > I always > assumed that all they would do is connect over port 80, and try to > retrieve something like /admin/, or another platform-specific resource &g

Re: real-world Django examples

2006-08-19 Thread Jay Parlar
Ian Holsman makes the source of zyons.com available. As well, Jeff Croft makes the source for lost-theories.com available (http://www2.jeffcroft.com/2006/jun/06/lost-theories-with-source-code/) Lost-theories.com is a bit smaller in scope, so I'd recommend looking at that too.

Re: Custom upload fields and filters

2006-08-23 Thread Jay Parlar
biz/djangoutils/wiki/Thumbnail > > If someone's insterested, I can share the code. > Could you post the code to the Django Wiki? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: upload files to another server

2006-08-23 Thread Jay Parlar
ike a separate server, not a machine. > > Like using apache to run Django and lightTPD to serve the media files. > If you do want to send to a completely different machine, you'll need to write your own views that can copy files (using scp, or something similar). Jay P. --~--~-~

Re: admin, users, groups and permissions

2006-08-23 Thread Jay Parlar
gt; definitions in the admin urls file? Get this problem fixed first, because from that link is where you set a user's permissions/groups/etc. As of relatively recent Django code, you can add a new user straight from the Admin. Jay P. --~--~-~--~~~---~--~~ Yo

Re: upload files to another server

2006-08-24 Thread Jay Parlar
NFS going. And there won't be any docs on setting up NFS with Django. Your Django won't know you're running NFS, and NFS won't know you're running Django. They're unrelated to each other. There should be a ton of good docs on setting up NFS. Jay P. --~--~-

Re: Database Migration

2006-08-24 Thread Jay Parlar
on your own. There is a Summer of Code project for Django schema migration, which should do the above steps automatically. Not sure of the current progress of it (though I'd guess it'll be done soon). Jay P. --~--~-~--~~~---~--~~ You received this message b

Re: Unicode, unicode, more unicode

2006-08-25 Thread Jay Klehr
7;m currently displaying Unicode strings in my Django site, but haven't messed with editing the strings yet. I'm no Unicode expert though, and I trust that the Django devs (and contributors) are much more familiar with the issues at hand than I am. Just wanted to chime in with my own

Re: Stumped on how to implement flatpages

2006-08-25 Thread Jay Parlar
eware', 'django.contrib.csrf.middleware.CsrfMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',

Re: Admin: linking to foreignKey / m2m tables

2006-08-25 Thread Jay Parlar
Is the edit_inline option to ForeignKey what you're looking for? Jay P. --~--~-~--~~~---~--~~ 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@goog

Re: User Registration weirdness. Ian, help!

2006-08-25 Thread Jay Klehr
line. An email client capable of reading that encoding (most should be) should interpret it properly and join the lines that it has split like that. Do you have the headers of the email? Jay [EMAIL PROTECTED] wrote: > OK, the code I'm using came from Jeff Croft's Lost-Theories sou

Re: User Registration weirdness. Ian, help!

2006-08-25 Thread Jay Klehr
t it more, that random bit at the end of your URL, is it possible to have equal signs there? Here's some info on the encoding, which mentions the 76 character line limit: http://en.wikipedia.org/wiki/Quoted-printable Jay [EMAIL PROTECTED] wrote: > Not handy, but maybe I'll try sho

Re: Debugging a return HttpResponse message

2006-08-27 Thread Jay Parlar
The problem is your indentation of the last two lines. You have them inside of the 'if request.POST'. Take them each back four spaces, and you should be fine. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: python syntax errors

2006-08-28 Thread Jay Parlar
site error log. > What's up ? I don't remember where they go when running with Apache, but why not use the development server when doing your *development*? Then you see all the errors, and it *quickly* auto-reloads when you change files, etc. e

Re: python syntax errors

2006-08-28 Thread Jay Parlar
. > I want track errors from logs after deployment, because fixes on live server > should be possible. I believe there's a system that all uncaught exceptions will be mailed to the users listed in ADMIN. And FYI, the development server runs on port 8000 by default, an

Re: python syntax errors

2006-08-28 Thread Jay Parlar
On 8/28/06, Ilia Kantor <[EMAIL PROTECTED]> wrote: > > my settings.py starts with > > DEBUG = True > TEMPLATE_DEBUG = DEBUG > Are you listed in ADMINS? Is your system properly configured to send email? (ie.on my setup, I needed to configure the EMAIL_HOST and SERVE

Re: python syntax errors

2006-08-29 Thread Jay Parlar
n is to do all your main development with the Django server. When you're completely happy with how it runs, start testing with Apache. When you're happy with how that runs, switch to production. Jay P. --~--~-~--~~~---~--~~ You received this message because you

Re: python syntax errors

2006-08-29 Thread Jay Parlar
py with how it runs with the dev server, start testing with Apache. Jay P. --~--~-~--~~~---~--~~ 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.

Re: Problem accessing users and groups in Admin

2006-08-29 Thread Jay Parlar
On 8/29/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > > Hi, > > I posted this on Saturday, but since I had no replies, I'm reposting it. > > What should I look for to solve this problem: > > When I access http://127.0.0.1:8000/admin/ I get > Groups > Users > in the Autho Fieldset. > > > If I cli

Re: Problem accessing users and groups in Admin

2006-08-30 Thread Jay Parlar
code). You've read the migration document? http://code.djangoproject.com/wiki/RemovingTheMagic http://code.djangoproject.com/wiki/MagicRemovalCheatSheet Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: SVN 3676 unexpected keyword argument 'maxfield'

2006-08-30 Thread Jay Parlar
m/documentation/tutorial1/ > Error: unexpected keyword argument 'maxfield' > You mistyped, it's supposed to be "maxlength" Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Django on shared hosting - no effect until restart

2006-08-30 Thread Jay Parlar
ve same results- no effect until restart. > Is this FastCGI problem or I have to look somewhere else? > With FCGI, do a touch on your .fcgi file. That always works for me. Easier way of course is to develop with the built-in development server, and only start Apache when

Re: Admin so nearly does what I want.

2006-09-03 Thread Jay Parlar
we might be able to help. For instance, you can run custom JavaScript in your Admin pages. Will that get you enough? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Strange socket problem

2006-09-05 Thread Jay Parlar
in flush > self._sock.sendall(buffer) > error: (10053, 'Software caused connection abort') > I tend to see this error when doing development with the dev server, and adding a related entry in the Admin (ie. clicking on the green "plus", adding something in t

Re: Strange socket problem

2006-09-06 Thread Jay Parlar
ed much about it, because it doesn't hinder my development. And everything works ok once I've deployed with Apache. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Ordering with get_profile/AUTH_PROFILE_MODULE

2006-09-06 Thread Jay Parlar
;Unknown column 'auth_user.last_name' in 'order clause'") Any thoughts on this? Is this simply not possible with get_profile/AUTH_PROFILE_MODULE Thanks, Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Ordering with get_profile/AUTH_PROFILE_MODULE

2006-09-06 Thread Jay Parlar
On 9/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Wed, 2006-09-06 at 14:28 -0400, Jay Parlar wrote: > > So to fix this, I tried going the other direction, by filtering on > > UserProfile, and then ordering the results on User, doing this: > >

Re: Ordering with get_profile/AUTH_PROFILE_MODULE

2006-09-06 Thread Jay Parlar
ed: UserProfile.objects.filter(board_member=True).order_by('user__last_name') and I also tried UserProfile.objects.select_related().filter(board_member=True).order_by('user__last_name'), and they both gave me: OperationalError: (1054, "Unknown column 'members_userpro

Re: Ordering with get_profile/AUTH_PROFILE_MODULE

2006-09-06 Thread Jay Parlar
Ahh, thanks for the effort guys. The select_related() and the dots are what made it work: UserProfile.objects.filter(board_member=True).select_related().order_by('auth_user.last_name') Jay P. --~--~-~--~~~---~--~~ You received this message becau

Backwards relation (ie XXX_set) across apps

2006-09-06 Thread Jay Parlar
only reason I can guess is that because the two models are defined in separate applications. Am I missing something here? Jay P. PS. An interesting (and perhaps related) sidenote: In my INSTALLED_APPS, I *have* to have the 'stockphoto' app appear before the 'articles' app, otherwise I

Re: Creating graphs in Django application

2006-09-07 Thread Jay Klehr
If you don't mind using Flash as the output medium you could try this: http://www.maani.us/xml_charts/ Works with anything that is able to output XML, I've used the PHP version a bit and really like a lot of the options. Jay Devraj wrote: > Hi everyone, > > I am attempti

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
hoto and Article from the admin. In the shell, there was no 'article_set' attribute. However, staying in the shell, I created (and saved) a *new* Article instance, giving it the Picture instance that was created in the Admin. After that, I *would* have an 'article_set' attribute, th

<    1   2   3   4   5   6   >