Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread James Gregory
this problem? I was reading through the source but can't see anything obvious. 3. If it is not a bug but Django's own wrapper doesn't deal with this problem, how do I deal with it? Should I simply create a new database connection for every single web request? James --~--~-~

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread James Gregory
> Connections aren't thread safe - you have to ensure every thread gets > its own connection. You can create a new connection every request or > use a thread-local to cache connections. > Ok, thanks for the explanation/co

Re: urls spanning different apps

2009-06-17 Thread James Gregory
calhost/Roald_Dahl? > > I could probably hardcode "redirects" in the urls file, but there are > too many possible urls and they change too often. How can I make this > more dynamic? > > Thanks > Casper Just out of interest, under what circumstances might someon

Re: Please help me give mod_wsgi to function as runserver

2009-06-19 Thread James Gregory
The documentation for this possibility is here: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode James On Jun 19, 3:16 pm, murd3r1ch wrote: > 1. When I edit my files (views.py, urls.py etc) runserver used to > restart to  reflect changes but apache/mod_wsgi do

Re: Can all of unicode be slugified?

2009-09-13 Thread James Bennett
On Sun, Sep 13, 2009 at 8:25 PM, W.P. McNeill wrote: > Is this expected behavior?  I can see some discussion on the web that > references unicode support for slugification, but I can't tell if that > unicode support works for any arbitrary unicode characters, or Django > has hand-crafted slugific

Re: Variable variables

2009-09-16 Thread James Punteney
the logic for one template/view then I'd recommend processing the data in the view function to turn it into simple list or similar object that you can easily loop through in the template without all the additional logic. --James --~--~-~--~~~---~--~~ You receive

Re: djangorecipe questions

2009-09-17 Thread James Bennett
On Thu, Sep 17, 2009 at 5:23 AM, Chris Withers wrote: > Well, I'm certainly not setuptools-happy, but Django appears to be > wrapped up as a standard distribution on PyPI (sorry, should have said > distro, not egg), so it would make sense to use that... Putting on my release-manager hat for a mo

Re: djangorecipe questions

2009-09-17 Thread James Bennett
On Thu, Sep 17, 2009 at 6:01 AM, Chris Withers wrote: > All of your problems seem to center on zipped eggs. These are evil > things anyway, and can be avoided by simply putting zip_safe=False as a > parameter to setuptools (whether it actually comes from setuptools, or > if it comes from the main

Re: Management commands not detected in all packages under a namespace?

2009-09-18 Thread James Bennett
On Fri, Sep 18, 2009 at 10:36 PM, Kyle MacFarlane wrote: > Everything works fine except when detecting management commands. It > will only detect commands in the first package in sys.path underneath > "company.*". Once it has checked one package in the namespace it does > not look inside any othe

Re: How to establish foreign key contraints across models living in different applications

2009-09-27 Thread James Bennett
On Sat, Sep 26, 2009 at 3:21 PM, djfis...@gmail.com wrote: > It is possible to have a model in one application have a foreign key > to another application as of Django 1.0. It's always been possible to point relationships at models in other applications. The bit you're linking to is a special al

Re: TinyMCE in Admin (Practical Django Projects book)

2009-09-27 Thread James Bennett
On Sun, Sep 27, 2009 at 6:48 AM, Erik Kronberg wrote: > I'm on chapter 3 of James Bennett's Practical Django Projects. My > problem is that TinyMCE isn't showing up in the Admin -> New Flatpage > text area. Using Linux (Ubuntu 9.04) First thing I'd recommend is

Re: Is Django thread safe?

2009-09-28 Thread James Bennett
On Mon, Sep 28, 2009 at 4:34 AM, Torsten Bronger wrote: > Can it be safely used with Apache's Worker MPM? The answer is, basically, "it depends on what *you*, the programmer, do". The current stable releases of Django -- 1.0.3 and 1.1 -- don't by themselves do anything which is known to cause t

Re: regex infinite loop with 100% cpu use in django.forms.fields.email_re - DOS hole?

2009-10-09 Thread James Bennett
Yes. We've confirmed the problem. We're working on a patch. In the meantime, everybody go meditate on the documentation for how to report security issues. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ Yo

ANN: Critical security updates to Django 1.0 and Django 1.1

2009-10-09 Thread James Bennett
Today the Django project is issuing a set of releases to remedy a security issue. This issue was disclosed publicly by a third party on a high-traffic mailing list, and attempts have been made to exploit it against live Django installations; as such, we are bypassing our normal policy for security

Re: Django Developer Position in New York City, Urgent Stuff

2009-10-14 Thread James Matthews
Posting here more makes this persons vulgar comment more popular. Please also post your job offering on djangogigs.com so you may have maximum exposure. On Wed, Oct 14, 2009 at 2:31 PM, Shaun Hinklein (Sysmind L.L.C) < shaunhinkl...@gmail.com> wrote: > > What does this even mean? > "Mother fucker

Re: About Django Notify

2009-10-19 Thread James Bennett
On Mon, Oct 19, 2009 at 12:12 AM, aju wrote: > I installed django-notify. But in that django-notify folder it does > not contain the file notify_user.py. I need this file. Plese send me > the file notify_user.py It is likely that you will get a better response by contacting the author of the app

Re: Does anyone know what happened to djangopluggables.com?

2009-10-21 Thread James Bennett
If anyone knew what had happened to it, it's likely they'd have responded in one of the multiple other threads asking this question. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message

CheckboxSelectMultiple checked_by_default

2009-10-30 Thread james spencer
red=False, widget=forms.CheckboxSelectMultiple ) The behavior I want is for each input in the checkbox list to default to checked unless the form is rendered with submitted data which would override this default value. Thanks! James --~--~-~--~~~---~--~~

Re: My Dear Children

2009-10-30 Thread James Matthews
Quiet annoying! On Fri, Oct 30, 2009 at 3:51 AM, Russell Keith-Magee wrote: > > On Fri, Oct 30, 2009 at 6:18 PM, Crispin Wellington > wrote: > > > > In my book, posting this kind of thing to a mailing list not about > > religion constitutes a one way ticket to hell. > > FYI - django-users is a

Re: Legacy database - does every table need an id column?

2009-11-01 Thread James Bennett
On Sun, Nov 1, 2009 at 10:56 PM, Nick Arnett wrote: > As I ask the question, it now seems clear to me that the column is > needed. There must be a field on the model with "primary_key=True". If a model is defined without such a field, Django assumes an implicit auto-incrementing field named "id"

Re: render_to_response taking 50 seconds!

2009-11-02 Thread James Bennett
On Tue, Nov 3, 2009 at 1:17 AM, Low Kian Seong wrote: > There is a query page where the start_date and end_date is being sent. > Then the do_defender_advanced will process it and generate an Excel > using the template. For each object you are displaying the values of four foreign keys. Each time

Re: render_to_response taking 50 seconds!

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 1:17 AM, Low Kian Seong wrote: > There is a query page where the start_date and end_date is being sent. > Then the do_defender_advanced will process it and generate an Excel > using the template. One other thing is that the Django template system isn't really optimized for

Re: why deliver .csv when you want to be delivering .xls?

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 3:22 AM, Chris Withers wrote: > ...or you could just use xlwt and deliver the real deal ;-) I generally prefer CSV because it's readable by more than just Excel -- any decent programming language can read it, most databases can import directly from it, and in a pinch even

Re: why deliver .csv when you want to be delivering .xls?

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 3:22 AM, Chris Withers wrote: > That said, I'd be surprised if the templating is the problem here, it'll > be the interaction with the database that's taking the time... Depends. The {% for %} tag can be relatively expensive, performance-wise, due to all the context manipu

Re: Accessing 'bytea' field using django.

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 11:27 PM, ds99 wrote: > I am using django with postgres as backend. Some of the fields in the > table are of type "bytea"(bytearray). Which django fields should I use > while defining a model for such tables? You should write a field which does this. There is no field buil

Re: Class definition in the tutorial

2009-11-08 Thread James Bennett
On Sun, Nov 8, 2009 at 10:00 AM, Zeynel wrote: > I am just learning Object Oriented terminology as I go along. Please > help me to understand what each word means in the class definition in > the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/ . You may experience better results

Re: Feedback on Django1.1.1

2009-11-10 Thread James Bennett
2009/11/10 Evgeny : > sometimes there is this error after upgrade to 1.1.1: > > http://groups.google.com/group/django-users/browse_thread/thread/c6a61a3788138745 >From the sound of it, this was a configuration problem on your system, and not an issue with Django (any time deleting an older copy o

Re: tiny_mce TypeError

2009-11-10 Thread James Bennett
On Tue, Nov 10, 2009 at 9:47 PM, neridaj wrote: > I'm just following "Practical Django Projects" and was curious if > anyone else was able to fix a TypeError when trying to add tiny_mce to > the admin for flatpages, or is this something buried in the > tiny_mce.js file? Compare to this, which is

Re: no such column: blog_link.slug

2009-11-15 Thread James Bennett
On Sun, Nov 15, 2009 at 8:19 PM, neridaj wrote: > I'm getting this error even though I have added slug field for this > model - Link. I ran syncdb a few times and I still get the error. Any > suggestions? Quoting the documentation: http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb "

Re: autogenerated 'id' field from Django model doesn't autoincrement?

2009-11-19 Thread James Bennett
On Thu, Nov 19, 2009 at 1:57 PM, Ken MacDonald wrote: > So, a couple questions: > > 1) is it a bug that 'id' is generated as an 'integer' rather than 'serial' > type? I'd be curious as to how your DB got set up that way, since Django's table-creation routines map AutoField to SERIAL: http://code

Re: OperationalError server closed the connection unexpectedly

2009-11-20 Thread james...@gmail.com
On 11 nov, 14:17, Janusz Harkot wrote: > Request Method: GET > Request URL:    http://localhost/ > Exception Type: OperationalError > Exception Value: > server closed the connection unexpectedly >         This probably means the server terminated abnormally >         before or while processing t

Help with installing MySQLdb package for Django on OS X Snow Leopard

2009-12-01 Thread James Dekker
need to change any other settings before installing this Python MySQL driver? Happy programming, James -- 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 unsubscr

Re: Help with installing MySQLdb package for Django on OS X Snow Leopard

2009-12-01 Thread James Dekker
Gene, That link / URL you sent me redirects to the Zope MySQL Adapter (same one I was using)... Thanks for the e-mail, James On Tue, Dec 1, 2009 at 7:35 PM, Gene wrote: > You may have the wrong package- ZMySQLDA is an adapter for zope. > > I believe you want this > http://sou

Re: Help with installing MySQLdb package for Django on OS X Snow Leopard

2009-12-01 Thread James Dekker
e) Reading http://pypi.python.org/simple/ No local packages or download links found for MySQLdb error: Could not find suitable distribution for Requirement.parse('MySQLdb') On Dec 1, 2009, at 7:47 PM, James Dekker wrote: > Gene, > > That link / URL you sent me redirects to the Zope MyS

Re: Help with installing MySQLdb package for Django on OS X Snow Leopard

2009-12-02 Thread James Dekker
Daniel, Under the Files tab, the only ones that are available are for Linux not OS X Snow Leopard... -James On Wed, Dec 2, 2009 at 1:37 AM, Daniel Roseman wrote: > On Dec 1, 11:23 pm, James Dekker wrote: > >> My problem, however, is that I can't seem to figure out h

contributing code legalities

2009-12-14 Thread Wes James
Say a user contributes code to the django project but they have already signed a contract at their company that says all code they write at work belongs to the company. The company then finds out the user has given this code to the django project. They come after the django project. How does the

Re: contributing code legalities

2009-12-14 Thread Wes James
Ah, thx for pointing this out. -wes On Mon, Dec 14, 2009 at 8:58 AM, David De La Harpe Golden wrote: > http://www.djangoproject.com/foundation/cla/ > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email

Re: problems downloading django

2009-12-16 Thread James Bennett
On Wed, Dec 16, 2009 at 2:13 PM, Michael K wrote: > Should I take the silence to mean I should open a bug report? I clicked the "download" link for Django 1.1.1, and the package downloaded. On finishing the download, I was able to checksum it and get the same results as the signed checksum docume

Re: authentication security

2009-12-18 Thread James Bennett
On Fri, Dec 18, 2009 at 6:58 PM, macdd wrote: > plain text then it isn't very secure. Okay so https comes in. What I > don't understand is when to use it and when not to. It seems like if > you authenticate over https just for user credentials and then go back > to http (like yahoo) than someone c

Re: Hosting for django?

2009-12-22 Thread James Bennett
On Tue, Dec 22, 2009 at 12:59 PM, yummy_droid wrote: > Has anyone had good experiences with hosting companies that I can use > for production django apps, with backups, etc.? http://djangofriendly.com/hosts/ -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --

Re: "view on site" erroring without sites framework

2010-04-25 Thread James Bennett
On Mon, Apr 26, 2010 at 12:59 AM, Francis Gulotta wrote: > The latest patch in that ticket's comments seems to work for me. Being new > to the project may I ask, is this ticket not closed due to lack of tests or > have a stumbled upon a design disagreement? The latest patch attached is lacking te

Re: Error with django-registration

2010-04-28 Thread James Bennett
On Wed, Apr 28, 2010 at 2:46 AM, andy saksena wrote: > (111, 'Connection refused') As a Google search would have told you, this is the error Python's smtplib module will raise when you tell it to connect to a mail server and it can't. Which means you need to go double-check the settings you've gi

Django 1.2 release candidate available

2010-05-05 Thread James Bennett
Tonight we're proud to announce, finally, the first Django 1.2 release candidate. If all goes well, it will also be the *only* release candidate, and Django 1.2 final will release one week from today. For more information, consult: * The Django project weblog: http://www.djangoproject.com/weblog/

Re: choices based on existing entries

2010-05-11 Thread James Bennett
On Tue, May 11, 2010 at 4:11 PM, Preston Holmes wrote: > Now I can think of several ways to do this in a form field init, but > it seems like there should be a more reusable way to do it with a > custom field type or mixin by overriding get_choices on the field > object. There is an easy way -- a

Re: Spammer named 'Ashley J. Sands' who harvested everyone's email from djangopeople.net

2010-05-15 Thread James Bennett
This entire discussion is inappropriate for this list. If either of you wish to continue it, do so elsewhere. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Spammer named 'Ashley J. Sands' who harvested everyone's email from djangopeople.net

2010-05-15 Thread James Bennett
Once again: This discussion is inappropriate for this list; take it to personal email. There will not be a third warning. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You received this message because you are subscribed to the Google Groups "Django use

ANN: Django 1.1.2 and Django 1.2 released

2010-05-17 Thread James Bennett
We're pleased today to announce the release of both Django 1.1.2 -- the second bugfix release in the 1.1 series -- and the long-awaited Django 1.2. More information is available over at djangoproject.com: * Django 1.1.2 release announcement: http://www.djangoproject.com/weblog/2010/may/17/112/ *

ANN: Django 1.2.1 released

2010-05-24 Thread James Bennett
Following up on last week's Django 1.2 release, today we'd like to announce Django 1.2.1, the first bugfix release in the 1.2 series: * Announcement blog post: http://www.djangoproject.com/weblog/2010/may/24/121/ * Download: http://www.djangoproject.com/download/ * Checksums: http://media.djangopr

Re: Having to rstrip the " [] " from the end of your Key when posted?

2010-05-28 Thread James Bennett
On Fri, May 28, 2010 at 7:41 PM, pyfreak wrote: >  However, I also need to use "key".  But when I'm sending over stuff > from javascript like above, > the key has a "[]" tacked on the end of it, like "stringkey[]" You are most likely running into this, or an issue similar to it in another JavaScr

Re: searching by slug not working in cases with spaces (that really rolls off the tongue)

2010-06-06 Thread James Gregory
The regex class "\w" doesn't include spaces, so maybe you need (r'^brewery/([\w ]+). Then again spaces in urls are represented as "%20", so maybe you need (r'^brewery/([\w%]+), can't be bothered to test right now. Or maybe I'm totally wrong. James O

Re: searching by slug not working in cases with spaces (that really rolls off the tongue)

2010-06-06 Thread James Gregory
or, if there's nothing that comes beneath brewery, just (r'^brewery/(. +) On Jun 7, 3:17 am, James Gregory wrote: > The regex class "\w" doesn't include spaces, so maybe you need > (r'^brewery/([\w ]+). Then again spaces in urls are represented as > &q

Re: Unsubsubscribe

2010-06-06 Thread James Gregory
Assuming you are subscribed via google groups, then go to http://groups.google.com/group/django-users and then click on "edit my membership" on the right hand side of the page. James On Jun 7, 3:11 am, Jim Norman wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

Thinking of Patterns

2010-06-10 Thread James O'Connor
I've been toying with the idea of building some higher level components for Python. More of business frameworks for solving certain kinds of problems. Most of the frameworks I see for Python and Django are fairly horizontal and low level, for which I think there is a great need, but my interest i

Re: Thinking of Patterns

2010-06-11 Thread James O'Connor
27;ve been wondering if this is a bit idealistic or whether it could be of use to anyone (yeah, I can write it, I've done it before :) would anyone use it? ) Take care, Jay On Jun 10, 2:05 pm, Erkan Özgür Yılmaz wrote: > Hi James, > > I've been searching for a good way of devel

Re: Tutorial Help

2010-07-06 Thread James Bennett
On Tue, Jul 6, 2010 at 10:56 AM, Bradley Hintze wrote: > Error: No module named pollsdjango.contrib.admin Look at your INSTALLED_APPS setting. You're missing a comma between the polls app and the admin app. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- Y

django mailing list app

2010-07-18 Thread James Hancock
I am looking for an app that can manage subscriptions to a mailing list for a web app I am making. For those who are curious I am creating a web app for managing free english classes in japan. The current site is goeigo.org. Features: allow users to subscribe and unsubscribe to the list. Allow ad

Re: django mailing list app

2010-07-22 Thread James Hancock
; On Jul 18, 10:34 am, James Hancock wrote: > > I am looking for an app that can manage subscriptions to a mailing list > for > > a web app I am making. For those who are curious I am creating a web app > for > > managing free english classes in japan. The current site is goe

Using methods to filter in the Admin Interface.

2010-07-22 Thread James Hancock
Hello, I have been creating a English class manager for a national free english program in Japan. Here is a little rundown of how the code works. A english class has a prefecture and each prefecture has a mission. I want to be able to filter in the django admin the english classes based on what m

Re: Get request path without having a request object

2010-07-31 Thread James Bennett
On Sat, Jul 31, 2010 at 12:37 PM, cootetom wrote: > Thanks Carlos but I'm trying to achieve getting the path without > having to pass the request object. In a word: don't. Instead, design your system to pass the information you need where and when you need it. This doesn't mean everything always

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread James Bennett
On Tue, Aug 3, 2010 at 9:19 AM, didier rano wrote: > What do you think about this post > ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay I think... * A community, but it is not so easy to find developers compared to Java or .NET True, but finding *good* developers in any language, which

Front-End Python/Django Web Developer role in the Bay Area

2010-08-06 Thread Donald James
unds interesting to you, please feel free to respond to me directly, and I’ll answer any questions that you may have. Thanks, everyone. -Donald -- ** *Donald James* *Recruiter* *Office:* 310-414-6808 *Fax:* 310-414-6804 www.digitalartistmanagement.com www.linkedin.com/in/dkjames www.twitter

[JOB] Front-End Python/Django Web Developer role in the Bay Area

2010-08-06 Thread Donald James
Hello, all; I wanted to reach out to the list regarding a full-time Front-End Web Development role that I have with a stealth-mode startup that is looking to change the way that people are protected online. They’re well & recently funded, and have a small core group in place, so this is very good

Re: CSRF verification failures (admin)

2010-08-17 Thread James Saxon
I've run into a similar situation where I'm getting CSRF errors inconsistently. I made sure I had the token and that I was using RequestContext. I haven't found out exactly what's wrong yet... I have not run into the situation in the admin but I have not tried it much but I haven't changed any a

Re: Using databrowse with a different ORM?

2010-08-19 Thread James Chiang
Hi, I'm new to django too, but I was able to define models for a legacy database and specifying the primary keys using "primary_key=True". Our tables have composite PKs, so I just added that option for all the columns that were appropriate. I don't know whether django does anything with the compo

Re: Django + GAE, Changing Auth from userid/password to email/password

2010-08-25 Thread James Saxon
I'm curious too about both questions. The only answer I got at one point was to capture email and not username on registration, and then set username to the email either in the view (which I believe you'd have to do before the registration signal gets sent???) I haven't implemented it yet. J On

Re: potential issue re in memory django file uploading.

2010-09-03 Thread James Bennett
On Fri, Sep 3, 2010 at 2:04 PM, dave b wrote: > Ok no movement :) Nor is there likely to be. Insofar as you've identified a problem at all, it's a problem in a piece of software that isn't Django, and you've ignored multiple people who've pointed that fact out to you (along with the fact that Apa

[ANN] Security release to correct public vulnerability

2010-09-08 Thread James Bennett
The Django team has just issued Django 1.2.2 to deal with a reported security issue. Full details are available in the blog post: http://www.djangoproject.com/weblog/2010/sep/08/security-release/ All users of Django 1.2 are urged to upgrade immediately. -- "Bureaucrat Conrad, you are technicall

[ANN] Django 1.2.3 released

2010-09-11 Thread James Bennett
To correct several issues in the 1.2.2 package earlier this week, tonight the Django team has issued Django 1.2.3. Details are available on the Django weblog: http://www.djangoproject.com/weblog/2010/sep/10/123/ All users are encouraged to upgrade as soon as possible. -- "Bureaucrat Conrad, you

Re: question about the "default" Manager

2010-09-15 Thread James Bennett
On Wed, Sep 15, 2010 at 8:28 AM, Rev. Johnny Healey wrote: > I may be missing something here, but this jumps out at me as being > impossible.  The ModelBase metaclass receive the attributes as a dict, > so isn't the original order lost? All instances of Manager have an internal-use-only attribute

Re: Please add tag for Django 1.2.3 release

2010-09-23 Thread James Bennett
On Thu, Sep 23, 2010 at 5:42 AM, Tom Evans wrote: > svn is the 'official' vcs, and is used to manage the development (and > one would hope) the release engineering, but I doubt very much that it > is the 'official distribution mechanism'; I would have thought that > would be the tarball. Indeed, t

Re: rake routes

2010-10-19 Thread James Bennett
On Tue, Oct 19, 2010 at 8:20 PM, Phlip wrote: > A web platform which I will refer to as "Rails" lets you print out all > the equivalents of the matchers and modules in the tree of urls.py > files using "rake routes". One easy way: 1. Install docutils. 2. Add 'django.contrib.admindocs' to your IN

Re: django-registration question: activation_key_expired.boolean = True

2010-10-31 Thread James Bennett
On Sun, Oct 31, 2010 at 8:48 AM, adj7388 wrote: > What does that last line do? I have looked high and low in Django and > Python documentation, but I can't find an example or explanation of > this pattern. It appears to be clobbering the method > 'activation_key_expired()' with a boolean that is a

Structured search pages?

2010-11-08 Thread James Smagala
The goal is to provide non-programmer scientists with a visual 'query builder' - a large number of filters to drill down to a dataset of interest, then download it. The concept is well described, but not well implemented, by the django-seeker package. Suggestions? Thanks in advance, Jam

[ANN] Django 1.3 alpha 1 released

2010-11-10 Thread James Bennett
The first alpha preview package for Django 1.3 is now available. * Release notes: http://docs.djangoproject.com/en/dev/releases/1.3-alpha-1/ * Download instructions: http://www.djangoproject.com/download/ -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You

Using the Django Admin to change a password.

2010-11-20 Thread James Hancock
dard 404 page. " error.. I can change the passwords from the terminal and create users and stuff, but the admin page doesn't seem to work. Any hints? Cheers, James Hancock P.S. I love django -- You received this message because you are subscribed to the Google Groups "Django

Error in ajax request

2010-11-29 Thread James Matthews
Hi, When I use this rate limiter http://www.levigross.com/post/1721427025/django-rate-limiting and preform an ajax request I get this error django/middleware/common.py", line 84, in process_response if response.status_code == 404: AttributeError: 'function' object has no attribute 'status_cod

Re: unicode httprequest fails?

2009-12-24 Thread James Bennett
On Thu, Dec 24, 2009 at 11:40 AM, twister wrote: > it seems to me that "(r'^admin/(.*)', admin.site.root)" in the urls.py > cannot match the unicode url string u'admin/'. No, that's not the actual problem. But without seeing the configuration you're using for the server, it's impossible to work o

Re: Django causing unnessary 301 permanent redirect

2009-12-24 Thread James Bennett
On Thu, Dec 24, 2009 at 7:08 PM, zweb wrote: > Any way to avoid this 301 MOVED PERMANENTLY ? As always, the documentation is your friend: http://docs.djangoproject.com/en/1.1/ref/middleware/#module-django.middleware.common -- "Bureaucrat Conrad, you are technically correct -- the best kind of

Re: django-tagging is not multi-db safe

2009-12-25 Thread James Bennett
On Fri, Dec 25, 2009 at 1:06 PM, Hanne Moa wrote: > A site using django-tagging will break hard on 1.2 as of today. See > issue http://code.google.com/p/django-tagging/issues/detail?id=233 . > > How is one to use as_sql() now with multi-db in? One doesn't. And, generally, one should be sticking t

Re: FeedMagnet: New Django-powered website just launched

2009-12-26 Thread James Matthews
Just as a side recommendation and this is no way the only way to secure your site. You may want to move your login portal to another page then the default /admin page. On Sat, Dec 26, 2009 at 6:44 PM, OkaMthembo wrote: > Great work, Jason & team. I thought it would be interesting to take a peek

Re: Subject line in django-contact-form

2009-12-29 Thread James Bennett
On Tue, Dec 29, 2009 at 8:24 PM, shacker wrote: > Hmm, I find that odd.  It's standard practice to let the user enter > the subject for a contact form. I wouldn't want my inbox filled with > contacts from site users, all with the same subject line. In my experience, it's far more common for all m

ANNOUNCE: Django 1.2 alpha 1 released

2010-01-05 Thread James Bennett
The first alpha preview package for Django 1.2 is now available. * Release notes: http://docs.djangoproject.com/en/dev/releases/1.2-alpha-1/ * Download instructions: http://www.djangoproject.com/download/ -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You r

Re: Error in importing user in the interactive console

2010-01-07 Thread James Bennett
On Thu, Jan 7, 2010 at 11:50 PM, sridharpandu wrote: > Couldn't understand your post. Pls eloborate You say you typed: >>> from django.ontrib.auth.models import user This is incorrect. There is no such thing as "django.ontrib.auth.models". There *is* such a thing as "django.contrib.auth.models"

Re: Namespace Security

2010-01-12 Thread James Bennett
On Mon, Jan 11, 2010 at 10:46 AM, Tim wrote: > The issue is getting Django admin to recognize this. Has anyone seen > or done anything like this? I have a few ideas where to begin, but > figured I would ask first so I don't end up re-inventing the wheel if > something has already been started. Th

Re: Querysets returns wrong result when using threading.

2010-01-14 Thread James Bennett
On Thu, Jan 14, 2010 at 10:26 PM, Kieran Brownlees wrote: > Basic example of format: > Main Thread: print objects.all() > Spawned Thread: print objects.all() -- same as main thread > Main Thread: objects.create(newObj) > Main Thread: print.objects.all() -- correct queryset, original + new > Spawne

Re: about django 1.2 alpha release

2010-01-21 Thread James Bennett
On Thu, Jan 21, 2010 at 12:09 PM, rodel bosque wrote: > is django 1.2 alpha release support python version 3? As the main Django documentation page suggests, it's a good idea to consult the FAQ: http://docs.djangoproject.com/en/1.1/faq/install/#can-i-use-django-with-python-3-0 -- "Bureaucrat

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-22 Thread James Bennett
On Fri, Jan 22, 2010 at 6:48 PM, CerenGuven wrote: > 3-5+ years Django/Python development experience If you manage to find someone with 5+ years' Django experience, do let me know. (meanwhile, job postings should go to djangogigs.com) -- "Bureaucrat Conrad, you are technically correct -- the

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread James Matthews
People should research before posting. But I always enjoy these posts. On Fri, Jan 22, 2010 at 7:09 PM, James Bennett wrote: > On Fri, Jan 22, 2010 at 6:48 PM, CerenGuven wrote: > > 3-5+ years Django/Python development experience > > If you manage to find someone with 5

Strange 301 error, please save me!!!

2010-01-28 Thread james ahn
d solve this problem ASAP!!! thanks in advance James -- 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-users+unsu

Re: read only django admin

2010-01-28 Thread James Bennett
On Thu, Jan 28, 2010 at 8:55 PM, zweb wrote: > Is it possible to have a read only django admin, ie user cannot add, > delete or update. User can only view data. > > or may be one user can be view only and other user has add/delete / > update as well in Django admin. The Django administrative inte

Re: Why can a Django project name not start with a numeric

2010-01-28 Thread James Bennett
On Fri, Jan 29, 2010 at 12:39 AM, Delacroy Systems wrote: > Why can a Django project name not start with a numeric? I would like > my project name to be 1time. Reading a good Python tutorial may be a good idea, since Python (the programming language) doesn't support identifiers beginning with num

Re: doubt about permalink and name in urlpatterns

2010-01-30 Thread James Bennett
On Sat, Jan 30, 2010 at 10:55 AM, harryos wrote: > 'coltrane_entry_archive_day' ,'coltrane_entry_archive_month' etc are > never used in any method in class Entry.Even if I remove it from the > urlpattern the entries will be listed properly and get_absolute_url in > template will point to the corre

Re: filtering query on a function

2010-02-01 Thread James Bennett
On Mon, Feb 1, 2010 at 3:59 AM, Kenneth Gonsalves wrote: > Anyway, player.getcoursehandicap() works - but not within 'filter' Why would you expect it to? Python method definitions are not legal SQL, so you can't pass a Python method into a SQL query and expect it to work. If you want to further f

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-02-02 Thread James Bennett
Anybody who wants to continue this thread: take it off-list immediately or face the wrath of the list moderators. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: You're seeing this error because you have DEBUG = True in your Django settings file.

2010-02-03 Thread James Bennett
On Wed, Feb 3, 2010 at 9:54 PM, punwaicheung wrote: > You're seeing this error because you have DEBUG = True in your Django > settings file. Change that to False, and Django will display a > standard 404 page. You're receiving this reply because you didn't ask a question. -- "Bureaucrat Conrad

ANNOUNCE: Django 1.2 beta released

2010-02-05 Thread James Bennett
Tonight we've released Django 1.2 beta 1: * Blog entry: http://www.djangoproject.com/weblog/2010/feb/06/12-beta-1/ * Release notes: http://docs.djangoproject.com/en/dev/releases/1.2-beta-1/ * Checksums: http://media.djangoproject.com/pgp/Django-1.2-beta-1.checksum.txt Note that this constitutes f

Re: Installation without root access

2010-02-11 Thread James Bennett
On Thu, Feb 11, 2010 at 4:32 AM, orbital_fox wrote: > Is there a way and guides on how to install django without having root > access on a system? What are the requirements? The single most useful thing you're going to be able to do for yourself is go work through the standard Python tutorial, sp

Re: Django 1.2 and Python 3.X ?

2010-02-14 Thread James Bennett
On Sun, Feb 14, 2010 at 7:06 PM, italiasky wrote: > Can we expect Django 1.2 to be used with Python 3.x ? Django's documentation contains answers to many common questions, including this one: http://docs.djangoproject.com/en/dev/faq/install/#can-i-use-django-with-python-3 In the future, please

Re: Best way to access 'request' in pre_save

2010-02-18 Thread James Bennett
On Thu, Feb 18, 2010 at 10:55 AM, Paul Stone wrote: > I'm trying to find the best way to update a model using data from the > request object (e.g request.user) before it is saved. One use case for > this is updating an 'updated_by' field on a model. Presumably you have a view which is updating th

Re: Banned from the #django irc channel

2010-02-26 Thread James Bennett
2010/2/26 Matías Iturburu : > Hi guys, Sorry to bring such an off topic, but I've notice that I'm banned > on the django irc channel (at least I'm receaving #django :Cannot send to > channel any time I want to talk there, my nick name is *tutuca*). > I don't think I've ever been disrespectful or, i

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