Re: unbit.it hosting

2007-08-18 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > File > "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", > line 97, in cursor >kwargs['port'] = int(settings.DATABASE_PORT) > > ValueError: invalid literal for int(): marco_db1 What's your value for DATABASE_PORT? -BEGIN

Re: How to install django on Apache/Linux

2007-08-19 Thread Chris Hoeppner
. By the way, the python stuff does not need to be in the html root. Just make sure the apache user has the right permissions. ~Chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGyD/TSyMaQ2t7Zw

List comprehension with unique, sorted values

2007-08-19 Thread Chris Hoeppner
n rooms_choices" but I have no clue on how to access the being-built list, nor how to compare to the values inside the tuple. Any ideas? :) ~Chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with M

ANN: Satchmo 0.5 Release

2007-08-22 Thread Chris Moffitt
://www.satchmoproject.com/shop/ Thanks to the Django community for supporting our efforts during this process. We're looking forward to adding even more features in future releases. -Chris --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: ANN: Satchmo 0.5 Release

2007-08-23 Thread Chris Moffitt
Sorry about that. The deluge of traffic caused my budget vps to have problems (memory). I'm back up now. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Dynamic OR queries

2007-08-25 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there! I was just wondering how to dynamically "or" together an indetermined quantity of Q objects. They're constructed from a string like q=a+b+c, which would get stiched together as "(Q(field=a) | Q(field=b) | Q(field=c))". Any clue on how to do

Re: Choices cannot be marked for translation?

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kenneth Gonsalves escribió: > hi, > > when i upgraded to the latest svn head, I found that all the places > in admin that had drop downs for choices were blank. I had always > marked my choices for translation like so: > > article_type = ( > ("NW

Re: Image manipulation

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SlavaSh escribió: > I need to add dynamic text to animated GIF images. > What is a best way to do it? > > Thanks. Using the PIL (Python Imaging Library) :) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozill

Re: Django Development Position

2007-08-28 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I forgot to mention that this position is located in New York, NY and > applicants must be US citizens with no criminal history. What a shame. You were talking just about me, but I don't meet the US citizen thing. We'll talk when you think about tel

Re: Testing/Fixtures/Production/TestRunner

2007-08-30 Thread Chris Green
[ Sorry for long delay, django is one of my "also projects" ] On Aug 11, 11:15 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > As for how to fix this problem, I have two suggestions. > > 1) Are you sure you can't just fix this with a static fixture? Yes, that should work just fine. The

Django-countries

2007-09-01 Thread Chris Moffitt
with your email? Thanks, Chris --~--~-~--~~~---~--~~ 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

Obtain a range of values out of the database

2007-09-02 Thread Chris Hoeppner
sorting it? Thanks! ~ Chris --~--~-~--~~~---~--~~ 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

Re: log in without loggin in

2007-09-04 Thread Chris Hoeppner
I think there's a chapter in the django book about authentication backends, and that's right what you need. El mar, 04-09-2007 a las 02:28 -0700, Dushyant Sharma escribi�: > hi it might sound strange but what i am thinking is to use two servers > one for authentication only and one for serving no

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

2007-09-05 Thread Chris Moffitt
trunk/satchmo/templates/base.html This template tag does all of the hard work- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py Hope this helps. -Chris --~--~-~--~~~---~--~~ You received this message because yo

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

Re: adding field to model

2007-09-06 Thread Chris Hoeppner
Manually alter the table. Or use some GUI like phpMyAdmin or PgAdmin. It's the *safe* way of doing things. Another *not so safe* way is, dump your data, make sure the new field has a default value or accepts null as it's value, reset the table, and insert the dump. The manually or programaticall

Re: problems with finnish after upgrading to latest svn head

2007-09-06 Thread Chris Hoeppner
Make sure you're serving the content with the right content type in HTML, and that Django is working with the right content type, and that the files have a coding declared. El jue, 06-09-2007 a las 16:24 +0530, Kenneth Gonsalves escribió: > hi, > I have a site in finnish. It was rendering fine un

Capisdjango

2007-09-08 Thread Chris Hoeppner
I was just wondering. Consider this an "aside" or of the kind. Why hasn't anyone thought of something like capistrano for django. (Yeah I know it can work, but there're a few features for RoR'ers). --~--~-~--~~~---~--~~ You received this message because you are s

Re: Capisdjango

2007-09-08 Thread Chris Hoeppner
Sure. Anyone to join me? El sáb, 08-09-2007 a las 07:32 -0500, James Bennett escribió: > On 9/8/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > Why hasn't anyone thought of something like capistrano for django. (Yeah > > I know it can work, but there're a few f

Re: Philosophy behind the Django admin

2007-09-08 Thread Chris Hoeppner
This is actually outlined in the Django Book. http://www.djangobook.com/en/beta/chapter18/ Here's the relevant piece: > The Zen of Admin > > At it's core, Django's admin is designed for a single activity: > > 1 > Trusted users editing structured content. > > > Yes, extremely

Django deployment à lá Capistrano

2007-09-09 Thread Chris Hoeppner
, don't hesitate to contact me. A few fundamental guidelines lay already, but I'm still in the brainstorming stage. This is the right stage for anyone to join me. I'll be glad to hear from you. -- Saludos, Chris Hoeppner, Passionate about on-line interaction 627 471 720 [EMAI

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
> 3) Modifying the production database as necessary. There's one major problem point in making this happen: Rails' migrations. It's pretty simple really, once laid out. Beside svn & tar methods, this is one of the most complex point of this project, and it's also one of the points I'd need most

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Chris Moffitt
om/trac/browser/satchmoproject.com/satchmo_website/templates/base_blog.html Hope this helps, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Django deployment à lá Capistrano

2007-09-10 Thread Chris Hoeppner
I see your point. Why reinvent the wheel? True. But I'm not trying to re-do capistrano using python instead of ruby. Capistrano has been the spark that made me think about doing this, but that's all there is to Capistrano. I'm doing this because: 1) I've anyways been thinking about this for ages.

Re: Django Video - For a good laugh

2007-09-10 Thread Chris Hoeppner
*lmaorof* El lun, 10-09-2007 a las 16:20 +, Gregg Pollack escribi�: > Django guys, > > I know a few of you must be familiar with the Ruby on Rails vs > ___ commercials http://www.railsenvy.com/tags/Commercials > > We just posted a "Ruby on Rails vs Django" video here: > > h

Re: Multi-table lookup ... ?

2007-09-10 Thread Chris Brand
James made a mistake ? Chris --~--~-~--~~~---~--~~ 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

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-03 Thread Chris Haynes
t works now. The generally excellent book indicates only a few of the changes necessary to enable the admin system. Thanks a lot for your help. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

file uploading clean_data code missing

2008-01-03 Thread Chris Haynes
With the following form in my template File: {{ form.code }} and the appended view code, I get the desired form with text box, Browse... and Submit buttons. But when browse for a plain text file and hit Submit, I get the HttpResponseBadRequest response and the print statements flagged with

A proposal for syncdb finished

2008-01-03 Thread Chris Green
[2] Someone else running into similar issue (looked like a support request so it got marked as invalid): http://code.djangoproject.com/ticket/6040 [3] Someone having the same idea and redirected towards fixtures http://groups.google.com/group/django-u

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-04 Thread Chris Haynes
ly databases) there are system variations and changes that would make this degree of explicitness impractical and even counterproductive, but that doesn't seem to be the case in this chapter. Just trying to be helpful in convening the newbe perspective. The very good news for this newbe, anyw

"unexpected indent" error not allowing me to add the poll app to the admin site

2008-01-06 Thread Chris Phillips
ng? Extra Info: Using Windows XP Django version 0.96 Using Notepad++ to edit files Thanks! Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: "unexpected indent" error not allowing me to add the poll app to the admin site

2008-01-06 Thread Chris Phillips
harField(maxlength=200) > votes = models.IntegerField() > class Admin: pass > > Otherwise it's gonna freak out. > > I was having problems with my text editor. For some reason Python > didn't like the way it handled tabs/spaces. I stopped using tabs and >

ImportError: No module named base

2008-01-15 Thread Chris Pratt
in:/ usr/local/bin:/usr/X11/bin (in ~/.profile) PYTHONPATH = /opt/local/lib/python2.5/site-packages/django (in ~/.profile) DATABASE_ENGINE is set to 'sqlite3' in my project's settings.py. I have verified that the file /opt/local/lib/python2.5/site-packages/ django/django/db/backends

Re: problems with auth...

2008-01-15 Thread Chris Pratt
~/webapps/[your_project]/apache2/conf/httpd.conf, and verify that the PYTHONPATH environment variable includes the path to the instance of Django you are using. That seems like the most likely culprit. Chris Pratt On Jan 15, 3:58 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > I've got two dja

RE: Multiple form objects, only getting contents from last one

2008-01-22 Thread Chris Brand
I'd start by looking at the HTML that results, particularly the "input name" parts. From your symptoms, it sounds like you may have two (or more) with the same name. Chris > -Original Message- > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] >

Have get_profile() delegate to one of several profile models depending on type of user

2008-01-28 Thread Chris Pratt
the User model, but this feels wrong. What would be considered best practice here? Thanks, Chris Pratt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Have get_profile() delegate to one of several profile models depending on type of user

2008-02-01 Thread Chris Pratt
d to my app. I could get rid of the hackiness of my solution here, but that approach seems to have problems of its own. Chris Pratt On Jan 29, 4:00 pm, forgems <[EMAIL PROTECTED]> wrote: > What is the criteria in the User model that gives you users profile > model ? If you don't

Django authentication, virtual hosts, sites and SaaS

2008-02-18 Thread Chris Smith
r this but the django auth stuff is too nice to have to throw away. I'm going to built a test rig to see if this can be done but i'd appreciate some input first from the pros! Any help appreciated. Cheers, Chris. --~--~-~--~~~---~--~~ You received this

Re: djWarehouse - Django based e-commerce system

2008-02-18 Thread Chris Moffitt
meone has played with both versions and has any more specific details, feel free to let me know. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: accounting/financial apps

2008-03-09 Thread Chris Moffitt
moproject.com for some useful models. It's an online store so it doesn't have AR type functionality but maybe you could use some of the PDF generating and tax modules to give you an idea of where to start. Good luck, Chris --~--~-~--~~~---~--~~ Y

Automatic Module Discovery (More to python than to django)

2008-03-23 Thread Chris Hoeppner
t I could just use a decorator to do the add-to-a-list thing I'm a tad lost on this subject, and I'd really appreciate any pointers you could give me. ~ Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Automatic Module Discovery (More to python than to django)

2008-03-24 Thread Chris Hoeppner
ynamically" on the fly) and using a filename pattern to set the ones appart I want to use. ~ Chris El dom, 23-03-2008 a las 22:27 +0100, Christian Vest Hansen escribió: > There's the pkg_resources module and .eggs. That might be what you're > looking for. > > Try typing t

Re: Automatic Module Discovery (More to python than to django)

2008-03-24 Thread Chris Hoeppner
__.py inside it, and import the module. Feels hacky, yeah. I hope there's some other way to acomplish this. I've been reading up about setuptools. It's something my head just doesn't want to absorb! I'll keep trying it though. Any tips on this? ~ Chris El dom, 23-03-2008

Re: Django hosting website

2008-03-25 Thread Chris Hoeppner
After being using VPS based hosting for a while, I have found shared hosting is just not good enough anymore. You just need the flexibility. ~ Chris El lun, 24-03-2008 a las 18:29 -0400, Julian DeFronzo escribió: > Yeah for more flexibility Slicehost or any VPS would be a better > optio

Re: Automatic Module Discovery (More to python than to django)

2008-03-25 Thread Chris Hoeppner
Right this one saved me, Christian =) Thanks a bunch-o-lot! ~ Chris El lun, 24-03-2008 a las 14:50 +0100, Christian Vest Hansen escribió: > For just running another python script from within python, there's a > number of options: > + the exec statement: >>> help(&#

Genericized pre/post-request processing in Controller?(View?)

2008-03-25 Thread Chris Czub
Here's a question that is probably divisive - why did Django decide to go with Model/Template/View instead of Model/View/Controller? MVC just conceptually makes so much more sense to me. Anyhow, that's not the primary point of this posting... Is there any way to implement some sort of pre and/or

Re: OT: Django logo

2008-03-26 Thread Chris Czub
Yes, I am 95% sure the line below is Verdana - note the shape of the a, o, and d. On Tue, Mar 25, 2008 at 10:01 PM, Ned Batchelder <[EMAIL PROTECTED]> wrote: > The "perfectionists with deadlines" tagline is also in Prokyon, but a > different weight (regular or light). The line below that on the

Slightly OT - Django is Wired

2008-03-27 Thread Chris Moffitt
framework. -Chris --~--~-~--~~~---~--~~ 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 [EMAIL

Advanced Form Questions

2008-04-01 Thread Chris Hartjes
index/index.html') Any help would be greatly appreciated. Tips on doing things the Django way, or even just the Python way are good as well. I'm trying hard to not write PHP-style code in Python. :) -- Chris Hartjes --~--~-~--~~~---~--~~ You

Re: Advanced Form Questions

2008-04-02 Thread Chris Hartjes
;team' fields in my form, and then I want to be able to iterate through each one. Is this something that's only in the PHP world? -- Chris Hartjes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Advanced Form Questions

2008-04-02 Thread Chris Hartjes
t I'm looking for. Thanks! -- Chris Hartjes --~--~-~--~~~---~--~~ 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 g

More Advanced Forms Help

2008-04-05 Thread Chris Hartjes
ul in figuring out how to build the stadium_forms variable: http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/ Any tips on how to make this work would be greatly appreciated. -- Chris Hartjes --~--~-~--~~~---~--~~ You received this message because

Re: City, State, Country Application?

2008-04-08 Thread Chris Moffitt
Satchmo doesn't have exactly what you are looking for but maybe the data we have in our l10n application will be useful. You can see the models and the existing data here - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/l10n -

Re: middleware that works with Ajax

2008-04-09 Thread Chris Hoeppner
Hey Mr. Baxter, This is new to me. Dojo will be the official js toolkit for django? Above jQuery? How come? ~ Chris El mar, 08-04-2008 a las 18:47 +0100, andy baxter escribió: > Claudio Escudero wrote: > > Hi, > > > > Someone knows there is any middleware that works

Re: Google App Engine & Django

2008-04-10 Thread Chris Hoeppner
the docs and share anything I discover (tho I'm sure not the first one, even from us on the list). And if you happen to get one of those you-gotta-wait accounts, and have the valour to try and get django up and running, please share the joy. ~ Chris El mar, 08-04-2008 a las 05:16 -0700, Marc

Re: app engine db backend project

2008-04-11 Thread Chris Hoeppner
at the devs for not writing it, I recon there are more important things to do than document maybe-unstable low-level components). If I can do anyhing to help, I'm in. ~ Chris El mar, 08-04-2008 a las 15:00 -0700, Greg Taylor escribió: > This would be great, I'd love to see this alth

Re: middleware that works with Ajax

2008-04-11 Thread Chris Hoeppner
Russ for president! This is actually one of the big reasons to prefer django over and above so many other frameworks. Take rails for example. You *can* use whatever js stuff you fancy, but if you don't use *their* stuff, you're giving up on much of what the framework offers. ~ Chris

Re: Is middleware appropriate for this?

2008-04-11 Thread Chris Moffitt
Take a look at what we use in Satchmo. Maybe this will help - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/satchmo_currency.py -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
Great stuff, man! I'll try to have an in-depth look this weekend and I'll se if I can help with anything. This seems like a nice solution, until someone pokes up a proper backend (stating that I'm not sure if that's possible, bearing in mind that GAE's datastore is not

I'd like to learn more about Django internals

2008-04-12 Thread Chris Hoeppner
Hi there, As the subject says, I'd love to learn more about how django works internally. I've been doing python stuff for about a year or more, but still can't seem to get my head around a big part of the black magic. I wonder if there's something I

Re: I'd like to learn more about Django internals

2008-04-12 Thread Chris Hoeppner
t; On Sat, 2008-04-12 at 11:15 +0100, Chris Hoeppner wrote: > > Hi there, > > > > As the subject says, I'd love to learn more about how django works > > internally. I've been doing python stuff for about a year or more, but > > still can't seem to get my

Re: How we can integrate Django app in Google appengine.

2008-04-12 Thread Chris Hoeppner
/google-app-engine-django/ ~ Chris El sáb, 12-04-2008 a las 08:42 -0400, rajiv bammi escribió: > Dear developers, > > Just a basic query, i am still not able to understand that how we can > integrate Django app with Google appengine.. > > Let say we have a simple program in Django

Re: Django API interface adapter for Google App Engine

2008-04-12 Thread Chris Hoeppner
d code them the django-way and everything works? Is that the intended way, but not-yet-working? ~ Chris El sáb, 12-04-2008 a las 05:07 -0700, Eric escribió: > Here's a project being developed by Google. Guido is even involved: > http://code.google.com/p/google-app-engine-django/ >

Re: File Upload, form issue

2008-04-16 Thread Chris Hoeppner
It would really help to know some more about your setup. Eg, are you using a form generator, using newforms "by hand" or are you making it all the "artisan" way, coding the html yourself? Maybe post a bit of your view code and the relevant template / form bits. ~ Chris El m

Re: Distributed databases

2008-04-16 Thread Chris Czub
Would it be possible to replace the Django database driver(i.e. postgresql, sqlite, mysql) with a custom one that managed the various database connections? Similar to the SQL proxy idea(or maybe identical). On Wed, Apr 16, 2008 at 1:41 PM, RaviKondamuru <[EMAIL PROTECTED]> wrote: > > Here is the

Re: New site - www.iau.org

2008-04-17 Thread Chris Hoeppner
This is really great! While I wouldn't like to speak in anybody's name, I think I can safely say that the comunity will benefit from this, and I'm really looking forward to the moment you opensource the code. ~ Chris El jue, 17-04-2008 a las 02:30 -0700, [EMAIL PROTECTED] esc

Re: Feel free to test queryset-refactor branch

2008-04-18 Thread Chris Hoeppner
I wonder if anyone has tried coming up with some sort of wannabe-backend for the GAE Datastore? ~ Chris El dom, 13-04-2008 a las 21:23 +1000, Malcolm Tredinnick escribió: > We're getting pretty close to merging queryset-refactor into trunk and > would like to do this as soon as pract

Re: How to Patch

2008-04-18 Thread Chris Czub
Follow the instructions on the Django website at http://www.djangoproject.com/download/ and run `svn co http://code.djangoproject.com/svn/django/trunk/` After that, you should be able to `svn up` to get the latest version. On Fri, Apr 18, 2008 at 5:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wro

Re: how do designers create content

2008-04-21 Thread Chris Hoeppner
El dom, 20-04-2008 a las 12:13 +0530, Kenneth Gonsalves escribió: > > On 20-Apr-08, at 12:03 PM, lee wrote: > > > Do the designers use text base editting like ultraedit or > > or graphics based software like dreamweaver? Most of the artist I know > > don't do much coding and are into photoshop

Re: questions about Django.db

2008-04-21 Thread Chris Hoeppner
When you retrieve a row (aka, a model instance), it will be an object with attrs a, a1, aN. I'm not sure I got your point, though. ~ Chris El lun, 21-04-2008 a las 01:11 +0800, 小龙 escribió: > Just as in table Test: > name url sizetime > a a1

Re: how do designers create content

2008-04-21 Thread Chris Hoeppner
El dom, 20-04-2008 a las 12:13 +0530, Kenneth Gonsalves escribió: > > On 20-Apr-08, at 12:03 PM, lee wrote: > > > Do the designers use text base editting like ultraedit or > > or graphics based software like dreamweaver? Most of the artist I know > > don't do much coding and are into photoshop

Re: Largest django sites?

2008-04-23 Thread Chris Hartjes
hose are two things I would build into any sort of web app right from the beginning. -- Chris Hartjes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

possible workarounds for bug #3951 (double invocation of signal handlers)

2008-04-26 Thread chris vigelius
eem to work fine (in the local test server), however since I am neither an experienced python nor django programmer, I'd welcome any opinions from more seasoned programmers about the possible up- and downsides (or even unintended side-effects) of th

Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
Using the URLconf defined in rallyhat.urls, Django tried these URL patterns, in this order: 1. ^(?P\w+)/(?P\w+)/$ 2. ^(?P\w+)/(?P\w+)/(?P\w+)/$ 3. ^/?$ The current URL, /yankees/2008-05-18/, didn't match any of these. * I *know* it's something dumb, but I just can&#

Re: Need some slightly advanced routing help

2008-05-04 Thread Chris Hartjes
On Sun, May 4, 2008 at 9:21 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > Hi Chris > > or, if you want it more specific: > > (r'^(?P\w+)/(?P\d{4}-\d{2}-\d{2})/$', 'myview'), > > > Personally I'd go with the last example in this case

Forward model references

2008-05-09 Thread Chris Farley
I'm trying to model our customers in a Django application, but I'm encountering a problem: Customers can have many CustAddresses One CustAddress is the Customer's primary billing address One CustAddress is the Customer's primary shipping address It's a classic 'chicken and egg' problem. Customer

Re: Forward model references

2008-05-09 Thread Chris Farley
Is it ever. I don't know why I did not see that. Thanks! --~--~-~--~~~---~--~~ 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 th

Re: Drop all tables

2008-05-12 Thread Chris Czub
If you are using SQLite you could just delete the database file. If not, I'm confused at why you'd have access to the shell but not access to the database - do you not have access to the database you are working on or something? If so, I would ask whoever has access to it to drop the tables for you

Re: Drop all tables

2008-05-12 Thread Chris Czub
Additionally, you could use `django-admin.py flush` to wipe all the database tables and reset them to the state they were in after you initially syncdb'ed. http://www.djangoproject.com/documentation/django-admin/ On Mon, May 12, 2008 at 10:20 AM, Chris Czub <[EMAIL PROTECTED]> wrote

Strange cookie problem

2008-05-15 Thread Chris Farley
My Django app needs to read a cookie that is written by a JavaScript script in another part of my website. The JavaScript code that generates the cookie is something like this: document.cookie='ShoppingCart=[7008|2][7120|3]; path=/; domain=mydomain.com'; I can see the cookie and its content from

Keeping track of which user did what

2008-05-16 Thread Chris Farley
Django has that nice "auto_add=True" property you can set on a model's field. I have two fields in my models called "created_at" and "updated_at" that keeps track of each model instance's creation/ modification date. It's incredibly easy. I also want to keep track of which user created/updated ea

microsoft sql server 2005

2008-05-19 Thread mccomas . chris
i just took a job with a group that just bought a microsoft sql server 2005, they want to drop ASP.net that they're currently using, i was interested in using django on the site going forward. is it possible to setup python/django and run it on a sql server? --~--~-~--~~~-

ImageField get_X_url() method not respecting MEDIA_URL?

2008-06-03 Thread Chris Czub
ence.com/" MEDIA_ROOT = '/home/myuser/webapps/static/' # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com"; MEDIA_URL = 'http://www.mysite.com/media' which is correct - the url of the image SHOULD be http://www.mysite.c

Re: create model instance

2008-06-04 Thread Chris Czub
http://www.djangoproject.com/documentation/models/fixtures/ What you are looking for is an initial_data fixture. You need to serialize the default instance of the model you want as JSON and save it in initial_data.json and then it should prepopulate when you run syncdb. On Wed, Jun 4, 2008 at 2:3

Re: ImageField get_X_url() method not respecting MEDIA_URL?

2008-06-04 Thread chris . czub
Thanks, that was it. -Chris On Jun 3, 5:44 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 3, 2008 at 5:15 PM, Chris Czub <[EMAIL PROTECTED]> wrote: > > # URL that handles the media served from MEDIA_ROOT. > > # Example: "http://

Better Query Set Use

2008-06-04 Thread Chris Hartjes
to do this? I spent some time googling around for answers but didn't find anything that could help me. Thanks in advance. -- Chris Hartjes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Better Query Set Use

2008-06-05 Thread Chris Hartjes
rchTeam)).filter(game_date__range(date_form.cleaned_data['startDate'], > date_form.cleaned_data['endData'])).order_by('games_date', > 'start_time') > > > Alex, thanks very much! Worked like a charm. -- Chris Hartjes --~--~-~--~~~--

Re: ASP.Net GridView Equivalent in Django

2008-06-05 Thread Chris Scott
On Jun 5, 2008, at 9:34 AM, Chatchai Neanudorn wrote: > themplatetag + django session (or caching), you can maintain state of > variable. > > I have a change to look at ASP.NET. For my understanding, it > automatically > generate > Javascript for developer, good if dont want to deal with javas

Re: forms - WTF

2008-06-05 Thread chris hendrix
yeah i'm looking at chapter 7 now to try to understand forms On Thu, Jun 5, 2008 at 11:47 AM, Daniel Mahoney <[EMAIL PROTECTED]> wrote: > > Bobby, did you work through the tutorials on the djangoproject web site, > or some of the other Django tutorials available on the web? They can > seem li

Re: forms - WTF

2008-06-05 Thread chris hendrix
Hi Em - I'm taking baby steps at the moment and simply don't understand how the form.as_table works... ie when i put that in the template (see my template below), how does it know which form to show? BR On Thu, Jun 5, 2008 at 11:50 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > Hi, > > It s

Re: forms - WTF

2008-06-05 Thread chris hendrix
t; PS if you need to add some (but not all) fields of a model to a form, and > then do some data munging to fill in some of the other required fields, do > shout if you get stuck - this took me a while to figure out!! > > -- > *From:* django-users@googlegro

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
Hi andrew. I've got the from django.template import Context, Template line at the top of the view. How do i pass the media template contact processor to the template? BR On Thu, Jun 5, 2008 at 4:20 PM, Andrew Ingram <[EMAIL PROTECTED]> wrote: > > Chances are that one of the views isn't passin

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
hi Aaron - my template includes this link to the css my view is: from django import http from forms import ziplookup from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.template import Context, Template def pr

Re: sending data back to template out of a function

2008-06-06 Thread chris hendrix
Hi Em - I'm not really specifying anything about type @ the moment.. .i'm just trying to figure out how to pass stuff back to the template (ie stuff that's NOT form validation related) BR On Fri, Jun 6, 2008 at 10:40 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > I can't see anything work in

Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-14 Thread Chris Haynes
Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import trees.views >>> import urls Traceback (most recent call last): File "", line 1, in File "c:\Users\Chris\dj\mysite\urls.py"

Re: Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-17 Thread Chris Haynes
Resolved. Don't know how. On Jun 14, 9:16 pm, Chris Haynes <[EMAIL PROTECTED]> wrote: > This error goes away if I remove the line > (r'^ptree/$', mysite.trees.views.parse_tree), > from the urlpatterns. But I can import trees.views from the shell > > ~/dj/

Re: serve static files

2008-06-17 Thread chris vigelius
o the static files appear correctly in the source of your page? regards, chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Timestamped comment field

2008-06-18 Thread Chris H.
user. Thus the database storage would look something like: - 17-JUN-2008 13:42 Bob - This is Bob's comment that is stored away and not overwritten by Chris's below... - 18-JUN-2008 17:25 Chris - Here is a comment by Chris...he only entered this The non-DRY way of doing

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 comm

<    3   4   5   6   7   8   9   10   11   12   >