Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-25 Thread Chris H.
27;' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' 6. Run tests, get 3 errors (the rest pass): IntegrityError: django_site.domain may not be NULL IntegrityError: auth_permission.name may not be NULL IntegrityError: djang

Re: Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-29 Thread Chris H.
Brian, Thanks for the reply! On Oct 28, 4:57 pm, Brian Gershon <[EMAIL PROTECTED]> wrote: > I just ran into this same issue.  I eventually figured out that adding > TEST_DATABASE_NAME to settings.py (to prevent Django from using the > default memory database for sqlite) works around the issue.

Full time Django developer wanted in/near Atlanta

2008-12-01 Thread Chris H.
We're looking for a great Django/Python developer to join our small team at ajc.com. Check out the job posting at Django Gigs [0] or at Craigslist[1]. Here are some of the benefits to working on our team: * We're a small team -- but full of great people like Maura [2] and Zellyn [3] * Our pro

Django VBulletin auth backend

2009-01-14 Thread Chris H.
Has anybody done any work on writing a Django auth backend for an existing VBulletin[1] website? I have a need to utilize the existing user database in a Django project and would appreciate not having to reinvent the wheel. My google-fu has failed me on this one, so it may not exist. Any other

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
On Jul 14, 8:23 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What order are you including them in the Apache configuration? > > Have you tried switching the order? > > Graham I have tried. I thought if I placed the testproject directive first it would short circuit things, but it didn't see

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
On Jul 15, 12:30 pm, V <[EMAIL PROTECTED]> wrote: > First of all Apache will look through all the directives, > and the later ones overwrite the former ones. So you should definitely > put the more precise one at the bottom. > > Probably your media files work, because you've added something like

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
I dunno what's different, but I seem to have it working today. Maybe I didn't restart Apache (I can be prone to dumb mistakes). Here's the final httpd.conf: SetHandler python-program PythonPath "['C:/django-projects'] + sys.path" PythonHandler django.core.handlers.modpython Se

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Chris H.
For those who aren't ready to move towards newforms-admin, Jacob has created a notable_moments/pre-newforms-admin tag. A BIG thanks to Brian and all those who had a hand in getting us to this day! Thanks!! -C --~--~-~--~~~---~--~~ You received this message becaus

Re: django Tutorial for NFA has bugs

2008-07-20 Thread Chris H.
On Jul 20, 3:21 pm, John M <[EMAIL PROTECTED]> wrote: > Given that the group has figured out that you need to run > autodiscover() and register any models you want to show in NFA Admin > page, I wanted to point out that the tutorial has the same bug, > somewhere in Tutorial 2, it tells you to un-c

Reusable/plugable apps integrations best practices

2009-08-22 Thread Chris H.
So I'm trying to get my head around making my small, tightly focused apps reusable. I've done this, but right now still have "dependencies" between one another, that I'd like to remove. For simplicity sake, I have an Articles, Events, and Photos app. Right now each Article has a photos.photo an

Looking for 2 great python/django developers in Atlanta area

2007-07-13 Thread Chris H.
ribute back to Django! We also are big fans of telecommuting days and flexible hours. If your interested or know someone who is, please contact me directly: cheisel [at] ajc [dot] com Thanks! Chris H. --~--~-~--~~~---~--~~ You received this message because yo

jellyroll app update.py

2007-09-04 Thread Chris H.
Anyone have experience using Jacob's jellyroll app, specifically the update.py script? I have started a new project, downloaded and installed the app, run syncdb and all looks good. But when I run bin/ update.py I get: ImportError: No module named jellyroll.providers In addition, there doesn't

Re: jellyroll app update.py

2007-09-05 Thread Chris H.
. On Sep 4, 3:40 pm, "Chris H." <[EMAIL PROTECTED]> wrote: > Anyone have experience using Jacob'sjellyrollapp, specifically the > update.py script? I have started a new project, downloaded and > installed the app, run syncdb and all looks good. But when I run

Timestamped comment field

2008-06-18 Thread Chris H.
Greetings all, I'm trying to figure out the best DRY way of doing this. I want to have a comments field on several of my models. The idea behind this field is that it would not actually be stored in the database, instead it would be appended to another field with a timestamp and the user. Thu

Re: Timestamped comment field

2008-06-19 Thread Chris H.
On Jun 19, 12:53 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi Chris, > > May be you can try this model : > ... While I could store each comment off as an instance of a Comments model, I don't really have a need to do so. I'm wanting to have the comments stored as a TextField on the main object

Group by week

2008-06-26 Thread Chris H.
I have a view which returns a group of upcoming events. I would like to display the events grouped by week: Week of June 22 * Event 1 * Event 2 * Event 3 Week of June 29 * Event 4 * Event 5 * Event 6 I've seen examples for doing this using the ifchanged tag, and I've got that working. But I c

Re: Group by week

2008-06-26 Thread Chris H.
On Jun 26, 10:44 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Chris, I have a utility function that does this for me.  You can call it > from your view, or if you set things up right from your template: Good stuff, Scott. Thanks! Might be worth turning into a proper template tag/filter at so

Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-14 Thread Chris H.
Trying to run a separate Django project in a sub-directory while the main project runs in the root. I'm using Apache 2.2 and mod_python on Windows. If my apache httpd.conf includes just the subdirectory I get things working correctly: SetHandler python-program PythonPath "['C:/django-p

Sorting multiple models - Tumblelog

2007-04-04 Thread Chris H.
In developing my new personal website using Django, one thing I am doing is replicating much of my data into my own domain. Things such as photos from flickr, links from del.icio.us and current tracks from last.fm. I'd also like to incorporate a tumblelog which will aggregate this information (

Django/Python developer at The Atlanta Journal-Constitution

2007-05-17 Thread Chris H.
Our online development team is looking for experienced Python/Django Web developers. We're a small group practicing agile and rapid development. We "Get Real", got Django and Rails, and we're perfectionists with deadlines! This is not a typical, "hand me a spec and I'll build it" shop. We play

unique_for non-date field

2007-10-18 Thread Chris H.
I am building a website for an annual event. Part of the site will allow the administrators to post news articles that cover the event. I envision my URLs looking something like: example.com/2007/articles/ example.com/2007/articles/article-1-slug-here/ example.com/2008/articles/ example.com/2008

Re: Do away with django's support for python 2.3?

2007-12-02 Thread Chris H.
ystem utilities, so they're more vocal about not asking folks to upgrade the install that comes with your distro. Chris H. On Dec 2, 12:51 am, Sean Perry <[EMAIL PROTECTED]> wrote: > AmanKow wrote: > >> Also, in practice, there are a *lot* of > >> installations sti

TypeError adding an item in the Admin UI

2006-06-05 Thread Chris H
The full error is: TypeError at /admin/catalog/item/add/ __deepcopy__() takes exactly 2 arguments (1 given) The model for Item has two foreign key fields and and image field. I have seen comments suggesting it could be either of these causing the problem. I couldn't track it down further. Am I m

Deploy Django into a subfolder/subdirectory

2006-07-25 Thread Chris H.
Hi, I'm trying to deploy Django into a subfolder of a domain, http://www.mydomain.com/projects/ I can call up http://www.mydomain.com/projects/admin/ and I get the login screen OK, but when I successfully log in I get sent to http://www.mydomain.com/admin/ -- which isn't correct. I should get se