mptt + contrib.comments?

2008-09-30 Thread Chris Stromberger
mptt. 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 to [EMAIL

Re: mptt + contrib.comments?

2008-09-30 Thread Chris Stromberger
the IP address. Etc. Any ideas on what would cause this? Mptt adds some fields to your model dynamically, so wondering if this is somehow related. Any tips appreciated. Thanks, Chris On Tue, Sep 30, 2008 at 2:31 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote: > I'm trying to u

Re: mptt + contrib.comments?

2008-09-30 Thread Chris Stromberger
OK, nevermind on the admin page issue. Was being caused by TEMPLATE_STRING_IF_INVALID being set to something other than ''. Would still love to see an example of contrib.comments + mptt! Thanks, Chris On Tue, Sep 30, 2008 at 4:25 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote:

Re: Should I use a Model Manager, if so, how...

2008-10-01 Thread mccomas . chris
I have this: http://dpaste.com/81698/ Which would show the status of the app, based on the field 'status' in the Model. What I couldn't/can't figure out is how to do it for multiple fields and also how to not do if it is = to something, just that if any text is entered into the field then it sho

Should I use a Model Manager, if so, how...

2008-10-01 Thread mccomas . chris
I have a bunch of fields that I need to check if they have content added to them. So essentially I want to be able to tell for each entry into the db that if every field that I need has been filled out, or not. I want to be able to use this in my queries so that I can get applications that are com

Re: mptt + contrib.comments?

2008-10-01 Thread Chris Stromberger
If I can get something working, I'll share! Still fiddling around with it. On Wed, Oct 1, 2008 at 2:48 PM, john Moylan <[EMAIL PROTECTED]> wrote: > Hi Chris, > > I'd love to see your finished code - if you can/want to share? > > J > > 2008/9/30 Chris S

Re: How to Create Real Foreign Keys

2008-10-01 Thread Chris Spencer
Yep, that was it. Thanks for the insight. On Wed, Oct 1, 2008 at 10:14 AM, Erik Allik <[EMAIL PROTECTED]> wrote: > > Are you using the MyISAM or InnoDB storage type? MyISAM does not > support integrity constraints, afaik. > > Erik > > On 01.10.2008, at 16:44, Chris

Re: mptt + contrib.comments?

2008-10-05 Thread Chris Stromberger
azon.com/Hierarchies-Smarties-Kaufmann-Management-Systems/dp/1558609202/ref=sr_1_5?ie=UTF8&s=books&qid=1223136111&sr=8-5 > > J. > > > > > On Oct 1, 2:10 pm, "Chris Stromberger" <[EMAIL PROTECTED]> > wrote: > > If I can get something working, I&

Re: Django-Registration and NewForms Error

2008-10-08 Thread Chris Spencer
Thanks guys, that fixed the problem. On Wed, Oct 8, 2008 at 6:37 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > > Rishabh Manocha wrote: >> On Wed, Oct 8, 2008 at 5:07 PM, Chris <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> >>

Re: Password Change Usage

2008-10-08 Thread Chris Spencer
I'm simply writing my own at this point, since I can't find a single example through Google of someone who's used that portion of registration successfully. Chris On Wed, Oct 8, 2008 at 11:26 PM, meppum <[EMAIL PROTECTED]> wrote: > > That's odd, I was just about to post

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
't seem to use any of those. Chris On Thu, Oct 9, 2008 at 9:24 AM, Carl Meyer <[EMAIL PROTECTED]> wrote: > > You also shouldn't need to write your own form, as the password_change > view (just like all the others) gives you a template variable "form" > that

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
Thanks. On Fri, Oct 10, 2008 at 11:37 AM, Carl Meyer <[EMAIL PROTECTED]> wrote: > RegistrationForm is a normal Form instance. Most errors will be > attached to specific fields, and thus will be in > form.field_name.errors, as documented. Errors not associated with any > particular field are ava

Custom template tag problem: "No module named models"

2008-10-15 Thread Chris Amico
I have a simple bookmarks model based on the one in James Bennett's http://code.google.com/p/cab/source/browse/trunk/models.py? r=130">Cab application. I'm using a generic relation so it can live in its own app and a user can bookmark any object on the site (I'm planning on reusing this app on a c

Re: Custom template tag problem: "No module named models"

2008-10-15 Thread Chris Amico
e point, I tried just removing the line 'from bookmarks.models import Bookmark', and the library loaded, but it hit an error (correctly) when I tried use it, saying Bookmark wasn't defined. On Oct 14, 11:45 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 15, 7:38 am, Chr

Re: Custom template tag problem: "No module named models"

2008-10-15 Thread Chris Amico
t your bookmarks/models.py ... if that app is > on your Pyton path, any chance that it's just not listed in your > INSTALLED_APPS? > > On Oct 15, 10:17 am, Chris Amico <[EMAIL PROTECTED]> wrote: > > > The templatetag file is indeed called bookmarks.py. I thought of t

Re: Custom template tag problem: "No module named models"

2008-10-15 Thread Chris Amico
ed bookmarks.py > and its inside a module called bookmarks.py > > rename it to bookmarks_tags.py ... > > and now > > DELETE THE DAMNED OLD bookmarks.pyc file ! > > python is still finding the old compiled file. > > its happened to me twice already in the exact same f

Re: Custom template tag problem: "No module named models"

2008-10-16 Thread Chris Amico
that way, or later you will be > caught by this) > > right before the import line throw it in into the debugger: > > import pdb; pdb.set_trace() > > in the debugger try: > > >>> import bookmarks > >>> dir(bookmarks) > >>> bookmarks.__fi

Re: Custom template tag problem: "No module named models"

2008-10-17 Thread Chris Amico
ence, folks. On Oct 16, 2:43 pm, Chris Amico <[EMAIL PROTECTED]> wrote: > OK, tried all that, got pretty much the same results: > > >> import bookmarks > >>> dir(bookmarks) > > ['__builtins__', '__doc__', '__file__', 

filter OR for results...

2008-10-19 Thread mccomas . chris
I have a model that is tracking all of the college football games, there's an entry for each game, with the two teams represented in the fields 'team1' and 'team2'. These are foreign keys to the model 'CollegeTeams'. I'm trying to run a query so that it'll get the results from the Game for each te

Re: assigning variables in templates

2008-10-20 Thread Chris Emerson
%} Otherwise, since it's your object, you could always cache the result of the query in the object. Cheers, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Blueprint css versus YUI grids versus ?

2009-01-17 Thread Chris Amico
I found Blueprint pretty easy to grasp. I'm not a designer, but it's worked beautifully for me, at least on basic layouts, and from what I can tell it's a good foundation for building more complicated designs on top of. On Jan 17, 1:03 pm, ydjango wrote: > has anyone used Blue Print css? > > I h

charts in django

2009-01-29 Thread Chris Haynes
en-flash- chart has a python binding, but its documentation is very sketchy and I don't know how good its support is. visifire looks like it has a great future, but depends on silverlight which is not widely deployed yet. Any other ideas or comments on the above?

Re: Strange "problem" with tutorial

2009-02-07 Thread Chris Baker
_init__.py, python will not consider it a package and it will not be importable. Chris On Sat, Feb 7, 2009 at 1:55 PM, Steve Holden wrote: > > Joshua Russo wrote: > > > > On Feb 3, 6:04 pm, Adam Yee wrote: > > > >> On Feb 3, 9:49 am, Joshua Russo wrote: > &

admin/doc/ The requested admin page does not exist.

2009-02-12 Thread Chris Haynes
I add (r'^admin/doc/', include('django.contrib.admindocs.urls')) to urls.py and get the admin page Documentation link, but when I visit it I get a 404 error with the message "The requested admin page does not exist.". When I visit a bogus URL the error page confirms taht ^admin/doc/ is in the UR

admin media deployment

2009-02-12 Thread Chris Haynes
The admin interface had no styling until I added a symlink in the fcgi directory from media (my ADMIN_MEDIA_PREFIX is /media/) to the admin app media directory. The development server works fine on another machine w/o such a link. Another developer I spoke with fixed the same problem this way. Ne

Get old value of Field in ModelForm clean_* method?

2009-02-12 Thread Chris Czub
Is there any way to get the old value of a field in a clean_* method on the ModelForm? That is - the validation depends on the old value of the field versus the new value. self.cleaned_data only contains the new value. Thanks, Chris --~--~-~--~~~---~--~~ You

Re: Get old value of Field in ModelForm clean_* method?

2009-02-12 Thread Chris Czub
nclear, but i think what you are looking for is > in self.data in your clean_ method > > On 12 Feb., 23:56, Chris Czub wrote: >> Is there any way to get the old value of a field in a clean_* method >> on the ModelForm? >> >> That is - the validation de

Default values in model classes

2009-02-13 Thread Chris Lieb
does not have a 'default 0' in it's definition. Does anyone know what I can do to fix this? I want to be able to generate the correct schema using manage.py as I will be moving to a different DB engine. Thanks, Chris Lieb --~--~-~--~~~---~--~~ You

Re: is_authenticated

2009-02-21 Thread Chris Czub
If you are using default Django sessions, they will be stored in the database. >From the docs: By default, Django stores sessions in your database (using the model django.contrib.sessions.models.Session). Though this is convenient, in some setups it's faster to store session data elsewhere, so Dj

Model-specific admin templatetag template OR admin list multi-sort

2009-02-25 Thread Chris Czub
I am trying to customize the list view of one of my models in the admin to separate it into a few different tables for organization purposes. My model is an "order". The important fields for this problem are the user who placed the order, the date is was placed, the restaurant it was for, and the

Re: Media Root & Templates

2009-02-26 Thread Chris Czub
if you include the django.core.context_processors.media context processor http://docs.djangoproject.com/en/dev/ref/templates/api/?from=olddocs#django-core-context-processors-media On Thu, Feb 26, 2009 at 8:04 PM, AKK wrote: > > Hi, > > I have a template and I want to get some images out of my

Undocumented comment setting

2009-02-27 Thread Chris McCormick
Hi, The COMMENTS_ALLOW_PROFANITIES setting is undocumented at http://docs.djangoproject.com/en/dev/ref/contrib/comments/settings/ This really tripped me up on the website I am building which only allows users to compose comments made up entirely of swear words. Best, Chris

TemplateDoesNotExist at /admin/ on Linux (Xubuntu) while doing Django Tutorial 2

2009-03-01 Thread Chris Verehhotti
nar file viewer, every icon has a little "X" on it -- this makes me think it's a permissions issue, but I'm a Linux n00b and am not sure how to go about fixing this. Do I need to do some kind of recursive chmod on the entire django tree in site-packages? Or am I thinking about t

Re: TemplateDoesNotExist at /admin/ on Linux (Xubuntu) while doing Django Tutorial 2

2009-03-01 Thread Chris Verehhotti
in site-packages? So. Probably was a stupid question, and I pretty much had my answer... looked a *nix tutorial about chmod, realized that every file in that django site-package was 700. I performed chmod -R 755 on the whole thing and it works. - Chris --~--~-~--~~~--

Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer
On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor wrote: > > > On Sun, Mar 1, 2009 at 10:25 PM, Chris wrote: >> >> On Feb 21, 10:03 am, Alex Gaynor wrote: >> > On Sat, Feb 21, 2009 at 7:48 AM, Chris wrote: >> > >> > > Is it a good idea

Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer
On Sun, Mar 1, 2009 at 11:44 PM, Chris Spencer wrote: > On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor wrote: > I had known about the widgets.css file, but it still wasn't working. > However, I tried removing all my custom JS/CSS, and found that some of > my custom CSS was interf

Re: Why do some shared hosting providers support Django and others don't?

2009-03-03 Thread Chris Scott
M or CPU you use interferes > with their ability to do what they're trying to do, so they'll > probably tell you to go elsewhere. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of > correct." -- Chris Scott http://iamzed.com/ http://hail

Re: Problems with satchmo

2009-03-04 Thread Chris Moffitt
You've posted this to the django users group. You'll get more support from the satchmo-users group. When you post there, please include a dpaste link with your traceback. Also, please include which version of Satchmo you're using and the steps required to reproduce the error.

Re: Inserting Into Cleaned_Data Inside a ModelForm

2009-03-07 Thread Chris Spencer
.a = form.cleaned_data['another_key'] * 2 > obj.save() Won't this only effect admin? I'm looking for a general solution that I can work into any form. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Inserting Into Cleaned_Data Inside a ModelForm

2009-03-07 Thread Chris Spencer
nately, this isn't the case. This was the first thing I tried, but I found code in Django's forms/models.py that strips out cleaned data that doesn't explicitly appear in either the fields or exclude list. It's quite a frustrating and arbitrary limitation, and took me seve

Order_by number of foreign key joins

2009-03-10 Thread Chris McCormick
a new field in Thing which holds the number of Otherthings it's joined to? Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Filter ALL requests before dispatching via URLs.py?

2009-03-10 Thread Chris Czub
n do this on an application-specific level thusly: http://www.pointy-stick.com/blog/2008/02/12/django-tip-application-level-context-processors/ (there are a few typos in that article, I can reply with corrections if need be but I don't have them readily available) -Chris On Tue, Mar 10, 2009 a

Re: Problem Installing Fixture: Unbound Prefix

2009-03-12 Thread Chris Spencer
On Thu, Mar 12, 2009 at 6:44 AM, Russell Keith-Magee wrote: > > On Thu, Mar 12, 2009 at 8:54 AM, Chris wrote: >> >> I'm using Django 1.0.2, and I dumped out a sample database as XML >> using dumpdata. When I run my unittests using this XML as

Re: Setting up Facebook Connect for your test environment

2009-03-17 Thread Chris Scott
0.982%22%7D) must have the > application's Connect URL (http://www.) as a prefix. You can > configure the Connect URL in the Application Settings Editor. > > -- Chris Scott http://iamzed.com/ http://hailtheale.com/ --~--~-~--~~~---~--~~ You received this

psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
Using what I believe is the latest version of psycopyg, I get: 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build running build running build_py creating build creating build/lib.macosx-10.3-fat-2.6 creating build/lib.macosx-10.3-fat-2.6/psycopg2 copying lib/__init__.py -> build/lib.macosx-10.3-

Re: psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
/opt/local/bin$ sudo port install py26-psycopg2 worked, after an incredible number of (presumably dependent) installs. Now I'm getting a password error, but I'll post that separately as it deserves a different title. thanks Chris On Jun 23, 8:33 pm, James Martin wrote: > I was

psycopg2.OperationalError: fe_sendauth: no password supplied

2009-06-23 Thread Chris Haynes
I've just installed postgresql and psycopg2. I supplied a password in the postgres install, but don't know how to supply it to psycopg2: ~/s/sd$ manage.py syncdb Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/users/home/system/lib/dja

FileField can't re-display invalid form with File upload widget filled-in?

2009-06-24 Thread Chris Shenton
I've got an app that wants a file upload and some other attributes. If the user fills in the file but has problems with the other attributes, it should re-present the form with the attributes filled with his values, including the name of the file that he selects. In use the example below

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
steveneo wrote: > I try to use Django in a new project. Honestly, it is very bad > experience. It looks not boosting my development speed. Today, I > almost give up and begin to look up another Python framework Go for it :-) Chris -- Simplistix - Content Management, Zope

Re: Very bad experience in Django...

2009-06-25 Thread Chris Withers
user can't get his head around it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Setting up TinyMCE with django-grappelli?

2009-06-26 Thread Chris O'Donnell
working? Do I need django- tinymce installed? 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 unsubsc

Re: PyDev users: how do you manage tabs?

2009-07-01 Thread Chris Lawlor
I have the same problem in Komodo Edit - although I the whole filename does show up in the window title I never think to look there. Anyway, I partially solved it by adding a comment at the top of the file for what app the file is for, so I'll see what I'm working on right there in the editor wind

Re: PyDev users: how do you manage tabs?

2009-07-02 Thread Chris Lawlor
Wayne I can't thank you enough!! As the author notes, the posted code is not cross-platform. I incorporated the fix recommended in the comments and posted here for anyone else that might want it: http://dpaste.com/hold/62468/ works fine on my windows machine, haven't tested on my Linux dev box y

Re: django-tel : telephone URL support for Django

2009-07-09 Thread Chris Moffitt
How is this different from the built in phone2numeric filter? http://docs.djangoproject.com/en/dev/ref/templates/builtins/#phone2numeric -Chris On Thu, Jul 9, 2009 at 5:27 PM, Aaron Maxwell wrote: > > Hi everyone. > > I've put up a django application providing a template fi

user profiles and the admin

2009-07-28 Thread Chris Curvey
I'm having a bit of a brain cramp here...I'm trying to add some extra fields to my user profiles, but I can't seem to get the fields to show up in the admin interface. I've added the admin.py directory to my application root, but the fields obstinately will not show up in the admin interface. The

Re: user profiles and the admin

2009-07-29 Thread Chris Curvey
Drat. That's not it. I'll keep trying. On Jul 28, 5:01 pm, Asinox wrote: > im new , but i think that u need this part: > > class UserProfileAdmin(UserAdmin): >     inlines = [UserProfileInline] >     list_display = ('user', 'sex','phone&#

Re: URL & DB question

2009-08-02 Thread Chris Withers
go.views.generic.list_detail import object_detail urlpatterns = patterns('', (r'^(?P[\w\._-]+)/$', object_detail, {'queryset':Profile.objects.all()})) cheers, Chris -- Simplistix - Content Management, Batch Process

Re: URL & DB question

2009-08-02 Thread Chris Withers
Rob B wrote: > Great I didn't know about that one. I'm curious to what are the > benefits of doing it that are? Less code for you to write and maintain :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://

Changing domain cookie

2009-08-03 Thread Chris McCormick
topped the weirdness by unsetting SESSION_COOKIE_DOMAIN, so people can log in again successfully now, but I'd really like to be able to use the wildcard subdomain thing. Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received

Re: Changing domain cookie

2009-08-04 Thread Chris McCormick
On Tue, Aug 04, 2009 at 09:14:42AM +1000, Malcolm Tredinnick wrote: > > On Mon, 2009-08-03 at 17:51 +0100, Chris McCormick wrote: > > I have a strange issue happening with domain cookies. On the site I'm > > working > > Python's Cookie module doesn't h

Non-intrusive way to authenticate phpBB against Django

2009-08-04 Thread Chris McCormick
Hi All, Just uploaded this: http://code.google.com/p/phpbb-json-auth/ Hope it's useful to someone else. Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

imitating a spreadsheet (kind of) with formsets

2009-08-10 Thread Chris Curvey
What I want to do is have a series of forms, all next to each other in table format, like this: Car Honda Toyota Chevy Price $12,000$14,000 $10,000 MPG 30 2826 Color Blue Red Yellow (I'm sure that's going to look like crap in a

Re: help with excel exports

2009-08-11 Thread Chris Withers
when they click SAVE, > the user can determine where to put the file? My testing so far > indicates this is not browser independent Ultimately, your app has no business even trying to tell a browser where to save things. Most browsers nowadays save to a location configured by the user, if th

Re: Dumping Large Databases

2009-08-11 Thread Chris Spencer
I guess I should have prefixed that by saying my goal is to migrate from MySQL to PostgreSQL. However, I'm having trouble finding a tool to do this, so I thought I'd try Django's backend neutral dumpdata/loaddata feature. Chris On Mon, Aug 10, 2009 at 9:48 PM, Malcolm Tredinnic

Re: imitating a spreadsheet (kind of) with formsets

2009-08-11 Thread Chris Curvey
On Aug 10, 10:13 pm, Malcolm Tredinnick wrote: > On Mon, 2009-08-10 at 19:07 -0700, Chris Curvey wrote: > > What I want to do is have a series of forms, all next to each other in > > table format, like this: > > > Car     Honda      Toyota       Chevy > > Price

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris Withers
why you want to draw lines... If it's for graphs and the like, just use matplotlib and generate the graphs on the server as .png or .pdf :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~--

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris McCormick
f Firefox but not well in IE. Even better is the element and it has good coverage on recent browsers with the help of explorercanvas <http://code.google.com/p/explorercanvas/> for Internet Explorer, although the drawing must be done dynamically with javascript. <http://cod

Get results from query depending on another query

2009-08-18 Thread Chris McComas
I have a model that has a FK to django.contrib.auth.models Group. I run a query that gets all the groups that a user is a member of: groups = Group.objects.filter(user=request.user) Then I want to run a query for that model that gets and entries in that model where the group FK is one of the gro

Re: Displaying username on every page

2009-08-20 Thread Chris McCormick
> > > > yes > > Thanks for the confirmation. In that case I'll have to write my own > render_to_response() wrapper. Or you can use direct_to_template(). Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You rece

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

Re: String aggregator

2009-08-24 Thread Chris Withers
from? What is the error and traceback you get when you try to do the above? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are

Re: Single sign-in

2009-08-28 Thread Chris McCormick
Hi All, My workmate just pointed out that somebody has now done this. Hooray! <http://github.com/uswaretech/Django-Socialauth/tree/master> Chris. On Tue, May 05, 2009 at 05:15:16PM +0100, Chris McCormick wrote: > > Hi All, > > I am sensing a need for a library which allows

Re: some teory help (sorry i couldnt find title for that question)

2009-08-28 Thread Chris Babcock
ged user i mean) > i want to show edit end delete options. How can i do that? You might be doing more work than you need to do: http://pinaxproject.com/docs/dev/search.html?q=tweets&check_keywords=yes&area=default ( or http://bit.ly/Yg7qb ) Chris signature.asc Description: PGP signature

cache.set could be more functional

2009-08-29 Thread Chris McCormick
key to the default and return the default if the key isn't in the cache, or return the value if it is. Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
er the Vim source code exposes any useful functions for your application, however, is academic as there is no way to expose this functionality in a web page or service. Chris Babcock signature.asc Description: PGP signature

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
On Mon, 7 Sep 2009 13:08:47 -0600 Dj Gilcrease wrote: > >> How can i embedd vim in my django application? > > http://gpl.internetconnection.net/vi/ maybe? Where's the syntax highlighting? :-) signature.asc Description: PGP signature

Re: How to invoke hasNoProfanities?

2009-09-09 Thread Chris Withers
t; setting in conf > global_settings.py > > I'd appreciate some pointers. It's in the book, which is free to read online at http://djangobook.com/ cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: Django ORM - Table Changes

2009-09-10 Thread Chris Czub
ctions may not apply directly, depending on what your property is - in the case of a many-to-many relationship, for example, a join table is used. I'm sure you can figure out how to go from here, though. -Chris On Thu, Sep 10, 2009 at 1:31 PM, Thomas wrote: > > I've been teaching m

Picky templating

2009-03-31 Thread Chris O'Donnell
t column in the grid, class="span-whatever last" needs to be specified. Just wondering if anyone knows how to do this. Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Newbie question - add dynamically optionMenu

2009-03-31 Thread Chris O'Donnell
Could you be a tad more specific? Not sure exactly what you're referring to. May be able to help out... On Mar 31, 1:26 pm, AsiSoudai wrote: > hey Gang, > > I'm new to django, and I'm looking to add dynamically optionMenu to a > dropdown several menus object, without updating the entire page. >

Re: Mysql?

2009-03-31 Thread Chris O'Donnell
You should be able to use the MySQL database that comes with your hosting plan, so long as they run a suitable version, which they should. Which hosting company do you use? Also, I get the feeling you're new to Web programming ... and running Django apps is a much more advanced task than coding HT

Re: Mysql?

2009-03-31 Thread Chris O'Donnell
Oh, it looks like I was beaten to it. Oh well. His reply is better anyway. :-) On Mar 31, 5:01 pm, "Chris O'Donnell" wrote: > You should be able to use the MySQL database that comes with your > hosting plan, so long as they run a suitable version, which they > should.

Re: Mysql?

2009-03-31 Thread Chris O'Donnell
I think he means that his (shared?) hosting plan includes 1 MySQL database, not unlimited databases. On Mar 31, 4:47 pm, Greg Poirier wrote: > On Tue, Mar 31, 2009 at 7:44 PM, stars wrote: > > > > > So, I have a Mysql from my hosting plan can I use this in working with > > django? or do I have t

Re: Picky templating

2009-03-31 Thread Chris O'Donnell
Thanks – I'll post back here if it works out for me. And probably if it doesn't. But it will, right? :-) On Mar 31, 4:58 pm, Malcolm Tredinnick wrote: > On Wed, 2009-04-01 at 10:57 +1100, Malcolm Tredinnick wrote: > > On Tue, 2009-03-31 at 16:51 -0700, Chris O'Donnel

Re: How would you code a template to do this (template logic)

2009-03-31 Thread Chris O'Donnell
Interesting – I have I slightly different dilemma, but I think this will work. Here's the thread: http://groups.google.com/group/django-users/browse_frm/thread/b87a12f63f2db0a3 Regards, Chris --~--~-~--~~~---~--~~ You received this message because yo

Re: Mysql?

2009-04-02 Thread Chris O'Donnell
To install Django on the server, if it isn't there already. On Mar 31, 11:33 pm, Wiiboy wrote: > Why do you need shell access?  Aren't you supposed to do all the > coding and stuff on the local server, and then upload it? --~--~-~--~~~---~--~~ You received this me

Re: Unique Field Combinations

2009-04-04 Thread Chris Spencer
Thanks. On Sat, Apr 4, 2009 at 11:26 AM, Daniel Roseman wrote: > > On Apr 4, 2:06 pm, Chris wrote: >> How would you enforce a unique column constraint on a combination of >> fields? >> >> For example, say I have the model: >> >> class Company(mod

Re: Partially rendering templates.

2009-04-07 Thread Chris Dew
Thanks, that's a useful idea. Chris. On Apr 7, 12:34 pm, Malcolm Tredinnick wrote: > On Tue, 2009-04-07 at 03:04 -0700, Chris Dew wrote: > > Here's a newbie question: > > > Is there a way of rendering (a single block of?) a Django template, > > without it

Partially rendering templates.

2009-04-07 Thread Chris Dew
javascript clients). DRY. 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

finding out what SQL Django generated

2009-04-15 Thread Chris Curvey
e. Pointers to docs gladly accepted.) -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 thi

Re: finding out what SQL Django generated

2009-04-15 Thread Chris Curvey
On Apr 15, 4:25 pm, Alex Gaynor wrote: > On Wed, Apr 15, 2009 at 4:23 PM, Chris Curvey wrote: > > > I'm getting unexpected results from a database query that was > > generated by Django, and I'm sure the problem is that I'm mis-using > > the API.  Is th

Re: Subscriptions software

2009-04-22 Thread Chris Moffitt
It looks like django-accounts is a bit stalled. You could try taking a look at Satchmo (http://www.satchmoproject.com ) It's more of a full fledged ecomerce app but it does support a subscription model and multiple payment gateways. -Chris On Wed, Apr 22, 2009 at 5:35 PM, Alvaro Mouriño

Best practise on using Django forms in jQuery UI modal dialogue.

2009-04-24 Thread Chris Dew
cts/jquery/boxy/ Do I just have to knuckle down and write custom javascript for this, or is it a already a solved problem? Thanks, Chris. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Best practise on using Django forms in jQuery UI modal dialogue.

2009-04-25 Thread Chris Dew
> > On Apr 25, 12:39 am, Chris Dew wrote: > > > I'd like to use something like the jQuery UI modal > > dialogueshttp://jqueryui.com/demos/dialog/#modalina web application. > > > My quandary is how to integrate this with Django. > > > The 'base page&

Re: Disabling PRG Pattern

2009-04-26 Thread Chris Spencer
gging confirms it's hitting my view twice. Wouldn't the slash append cause the redirect before it ever got to my view, causing my view to only get called once? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Disabling PRG Pattern

2009-04-27 Thread Chris Spencer
On Sun, Apr 26, 2009 at 11:26 PM, Malcolm Tredinnick wrote: > > On Sun, 2009-04-26 at 19:41 -0700, Chris wrote: >> On Apr 26, 7:40 pm, Alex Gaynor wrote: >> > On Sun, Apr 26, 2009 at 7:39 PM, Chris wrote: >> > >> > > I've noticed a Redire

A way to specify different template code for every 6th item in a list?

2009-05-01 Thread Chris O'Donnell
I'm using the Blueprint CSS framework and need to be able to have every 6th list item processed with different code than every 1st-5th. I guess you could do some sort of "is divisible by 6" thing, but I'm not sure exactly what's entailed to get the job done. New to Django, if you haven't noticed.

Help with schema

2009-05-05 Thread Chris McComas
I have a site/database that tracks baseball players and their agents. Players can have multiple agents at one time, they also can fire agents and hire new ones at anytime, and I'd like to track all of their agents, current, or previous. I was thinking of this schema for my models, but wasn't sure

'getaddrinfo failed', new to Django

2009-05-05 Thread Chris DPS
I'm starting out with Django. When I attempt to execute runserver, this error happens: Error: (10104, 'getaddrinfo failed') What is the reason for this and how can I fix it? I am not too computer-savvy, so complete explanations would be appreciated. thanks a bunch --~--~-~--~~--

Single sign-in

2009-05-05 Thread Chris McCormick
ing external-sign-in-code into this library? Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

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