Re: Simple markup language?

2008-01-21 Thread Jeff Anderson
asily after that. It shouldn't take too long to write something like that. It is also possible that some of the existing things may be able to either disable the extras you don't need, or you could modify them to just skip the code for those features. Jeff Anderson Rob Hudson wrote: H

Re: django for non-web apps

2008-01-21 Thread Jeff Anderson
to give it a whirl, but otherwise i expect your reaction to be like "yeah, neat, but, wtf?" :) anyway, link: http://gpapers.org/ ttyl, derek I actually started a thread along the same line a few weeks ago. We use django at work for our print script that handles the accounting

Re: These waters aren't so friendly after all

2008-01-16 Thread Jeff Anderson
James Bennett wrote: Again, folks: please don't rise to the bait ;) I don't know what that means! signature.asc Description: OpenPGP digital signature

Re: These waters aren't so friendly after all

2008-01-16 Thread Jeff Anderson
traight from the tarball. A different way to check the version would be to open a python interpretor, import django, type django.__file__ that will tell you where the __init__.py is located for django. That is the file that contains the VERSION variable. *Feel free to e-mail me off list if you wa

Re: Print view

2008-01-08 Thread Jeff Anderson
have a landing page so the admin can choose to view or print. Thanks! Jeff Anderson signature.asc Description: OpenPGP digital signature

Print view

2008-01-08 Thread Jeff Anderson
. Is this the best way to do this? or is there a cleaner way? Thanks! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: read only in Admin interface

2008-01-08 Thread Jeff Anderson
hings. I haven't played with permissions at all, but I imagine it would be possible. The correct way is still to write your own code to do it. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Dynamic forms fields

2008-01-06 Thread Jeff Anderson
point for you: http://code.djangoproject.com/wiki/CookBookNewFormsDynamicFields Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Django... False promises?

2008-01-03 Thread Jeff Anderson
odule before. There are times when I am revising a project, or starting a new one, and I really appreciate all the work and time django saves me. I fully recommend learning more about django and about python-- it will end up being a time investment well worth it! Good Luck! Jeff Anderson LRP

Re: How especify the default form (html)

2008-01-03 Thread Jeff Anderson
ate form tags? eg: ... ... ... ... without enclosing your forms in separate tags, a browser might assume it is all one form, and you would get strange errors like you describe. The default action for a form is to use the current url as your action. Good Luc

Re: Views, Templates, and Dictionaries

2008-01-02 Thread Jeff Anderson
>From the template docs: http://www.djangoproject.com/documentation/templates/ {% for key, value in data.items %} {{ key }}: {{ value }} {% endfor %} Note that this is for the svn version of django. brandonl wrote: > I have a simple view: > > def index(request): > this_dict = { 'one':'

Re: How do I connect to development server with my browser?

2008-01-01 Thread Jeff Anderson
x:8000 where the xxx.xxx.xx.x is the external ip address. Good luck! Jeff Anderson signature.asc Description: OpenPGP digital signature

Django is more?

2008-01-01 Thread Jeff Anderson
Hello, I am just curious if there is anyone out there that has used django to create things other than web applications. I've seen it done where I work-- we use django for our print accounting scripts. Does anyone else use django for a framework? Jeff Anderson signature.asc Descri

Re: Help with form-builder application

2008-01-01 Thread Jeff Anderson
I was reading and poking around, and I found this: http://code.djangoproject.com/wiki/CookBookNewFormsDynamicFields I believe it explains how to accomplish what you want to do. Cheers! Jeff Anderson Jeff Anderson wrote: > Actually, I just got an idea for a simple website, and it would need

Re: Sorting

2008-01-01 Thread Jeff Anderson
but it'd also make the actual sorting part (when the objects are displayed) a little trickier. Since I'll be mostly displaying, and not changing the order terribly often, I might stick with the integerfield. I'm still not sure where I need to poke around to find a javascrip

Re: Sorting

2008-01-01 Thread Jeff Anderson
, and I want it to be first, I have to tell django about my sorting preference somehow. So my question still stands as to how should this manual sort order be represented in my database, and how should/would a frontend talk to the database to feed it the sort information. Thanks for the reply! Jeff Anderson signature.asc Description: OpenPGP digital signature

Sorting

2008-01-01 Thread Jeff Anderson
n how a sorting front-end will be represented in my database-- is the IntegerField a good way to do it? Should the javascript widget assign a value to a hidden field that gets parsed on the server side? Is there a 'right' or 'clean' way to accomplish this? Any and all insight is a

Re: Simple question from a Django newbie.

2007-12-31 Thread Jeff Anderson
other method of sharing files) Cheers! Jeff Anderson randomNic39292 wrote: >> Are you referring to when a css references an external file, like a >> background image? >> > > Yes indeed, that is exactly it. > > >> keep in mind that the relative paths

Re: Simple question from a Django newbie.

2007-12-31 Thread Jeff Anderson
appear on the filesystem on the server. If my response isn't much help, you almost definitely need to clarify what it is exactly is going on. Thanks! Jeff Anderson randomNic39292 wrote: > Hi, > > I am teaching myself Django and so far everything has been fun and > easy. But now

Re: Help with form-builder application

2007-12-31 Thread Jeff Anderson
ooked into yet either. Hopefully that is the correct direction to head to accomplish this. Cheers! Jeff Anderson Vincent Woon wrote: > Hi, > > I'm new to Django and Python and I would appreciate if anyone could > help me out here. I'm trying to create a form-builder program, w

Re: Segmentation Fault on Syncdb

2007-12-30 Thread Jeff Anderson
What version of django are you using? Will other commands (like validate or runserver) work? Is this an existing known-to-work django app, or are you running something new? Thanks! Jeff Anderson Chris Hoeppner wrote: > Hi there, > > I'm getting a segmentation fault on syncdb. No

Re: dumpdata --traceback for 0.96

2007-12-30 Thread Jeff Anderson
Your best bet would be to upgrade to svn. It is every bit as stable an 0.96, but it has all those extra features that make it so much nicer. A list of backwards incompatible changes is located at http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges Good luck! Jeff Anderson Bulkan

Re: How do generic views determine for field sizes?

2007-12-30 Thread Jeff Anderson
I believe an override with css is the best option here. size=30 is probably the standard for a form field representing CharField. You could open a ticket with a feature request to change the default behavior. Cheers! Jeff Anderson Steve Bergman wrote: > I have a model with several fields,

Re: 0.96.1 newforms image upload?

2007-12-30 Thread Jeff Anderson
f the documentation on the website, you should be able to get your ImageField working. Jeff Anderson [EMAIL PROTECTED] wrote: > hi i'm using 0.96.1 with newforms. I dont have any choice to upgrade to svn > version but i should make a form to upload some photos. 0.96.1'newforms > doesn

Re: How to populate flatpage content dynamically?

2007-12-30 Thread Jeff Anderson
ac page by name, and insert the data into the page. Choose your poison Cheers! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: Find city from IP. Best option for python?

2007-12-30 Thread Jeff Anderson
ither. That's the beauty of using standards. :) Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: tags and related objects

2007-12-30 Thread Jeff Anderson
king about. It is not part of the django core distribution, and many people on this list may not have ever used it. I hadn't heard of it. :) Thanks! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: contrib.comments: Change freecomment form

2007-12-30 Thread Jeff Anderson
h that. If you want it to look at your own templates first, switch the two around and see if that fixes it. Thanks! Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: How to pass extra attributes to User authentication view?

2007-12-30 Thread Jeff Anderson
r that template. Hopefully this can yoint you in the right direction. Jeff Anderson signature.asc Description: OpenPGP digital signature

Re: save sometime cause duplicate data

2007-12-30 Thread Jeff Anderson
the problem. Also, describe exactly what it is that you do when you get the duplicates. One solution is to change your model in such a way that it will only accept unique records. That way, it would work on the first attempt, but it won't stick the duplicate in. Thanks! Jeff Anderson

Re: Add "georss" tag to feeds

2007-12-30 Thread Jeff Anderson
de to each item returned by > "items()" > Thank you. > Hello, One way to accomplish this would be to iterate through the list that Event.objects.order_by() returns, and add the geo tag one row at a time. Return the new list. All the other ways I can think of would be messier an

Re: Tutorial 2 admin Template not found

2007-12-22 Thread Jeff Anderson
rver, I haven't bothered to get it working, so my admin interface is very boring and plain looking, but I don't really use it anyway. On the django built-in development server it should just work. Good Luck! Jeff Anderson | kadavy wrote: > So I've discovered that I can get t

Re: relational database

2007-12-20 Thread Jeff Anderson
Thanks! I'll use the intermediary model for my solution. Best Regards, Jeff Anderson Malcolm Tredinnick wrote: > On Thu, 2007-12-20 at 22:23 -0700, Jeff Anderson wrote: > >> I am used to designing relational databases, and I love django's >> capabilities with

relational database

2007-12-20 Thread Jeff Anderson
7; with the manytomany room relationship, and the manytomany furniture relationship, along with an integer count? Is this the correct, clean way to do it? I'm not sure how that will translate to my views code when I want to find a room that **only**

Re: Installing mod_python in xampp

2007-12-19 Thread Jeff Anderson
ng. It looks like you are trying to install mod_python as distributed by xampp. I just installed mod_python onto my linux server, and followed the vanilla mod_python docs. You might find better luck on a forum or mailing list specific to xampp for that issue. Good luck! Jeff Anderson Rex Eastbourne

Re: template variables

2007-10-13 Thread Jeff Forcier
's plenty of documentation on it on the site and on blogs and here on the list as well, if you ever get stuck :) Regards, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

django get a wrong value after I change my Models.

2007-09-26 Thread jeff jie
hello.I am ran in truble.I change my Model,also database,but the query result is unchange.. my BlogEntry model is: class Entry(models.Model): title = models.CharField('title',maxlength=100) content = models.TextField('content') catelog = models.ForeignKey(Catelog,verbose_name='catelog'

Re: Updating multiple rows with Django DB API?

2007-07-20 Thread Jeff
cursor.commit() On Jul 15, 9:12 pm, "Steven Hilton" <[EMAIL PROTECTED]> wrote: > On 7/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > > I could be updating any number of rows in bar. I want to do this > > > without do a select on

Re: Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
SOLVED Apparently, making a call to Site.objects.get_current() in your models.py throws an error when loading a module in Admin. Anyone have an idea why? On Jul 16, 12:14 pm, Jeff <[EMAIL PROTECTED]> wrote: > Another note: if I comment out 'sites = models.ManyToManyField(Site)&#x

Re: Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
Another note: if I comment out 'sites = models.ManyToManyField(Site)' from Team, it loads fine. The same if I use it as a ForeignKey field. I'm using the latest stable, 0.96. On Jul 16, 11:01 am, Jeff <[EMAIL PROTECTED]> wrote: > I'm throwing an error when loadi

Throwing error in admin using ManyToManyField(Site)

2007-07-16 Thread Jeff
ts. Does anyone have any ideas? I don't see anything relevant on the django bug tracker. Jeff --- Models --- class Sport(models.Model): sport_name = models.CharField(maxlength=50, unique=True) def __str__(self): return self.sport_name class Admin: save_on_top = T

JOB: Full-time Django/Python/etc position in NYC

2007-06-06 Thread Jeff Forcier
olutely required. Thanks for your time, Jeff F. --~--~-~--~~~---~--~~ 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 fr

Re: Returning a list of entries associated with a tag (using django-tagging)

2007-05-25 Thread jeff
Hi, you could use the related_for_model function in your view: tag = Tag.objects.get(pk=1) assoc_entries = Tag.objects.related_for_model(tag, BlogEntry) On 25 Mai, 18:56, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to write a view to return a list of blog entries associated > wi

Re: django-tagging and admin pages

2007-05-11 Thread jeff
> Could you verify that the TagField doesn't sync the list when you > remove tags? i can verify that too. if i delete a tag the taggeditems are deleted but the tagsfield is not updated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: context sensitive menus

2007-05-01 Thread Jeff
Director, > 4A Solutions > > Office : +44(0)1257 268351 > Mobile: +44(0)7841 340 608 > email: [EMAIL PROTECTED] > > veritas vos liberabit -- The truth will set you free > ==== > > -- Original Message --- >

Re: context sensitive menus

2007-04-30 Thread Jeff
Are you doing this in Django admin or in a regular view/template? Jeff On Apr 30, 8:41 am, "5264277-ew5264277" <[EMAIL PROTECTED]> wrote: > Hi, > > I am fairly new to Django, so this may be an easy question. > > I have an app where I have a team member table

Re: a way to find out which page (as determined by the paginator) that a specifc object occurs on?

2007-04-16 Thread jeff
hi scanner, i hope i understood correct... i have an newsitem apps with comments, the comments are paginated by 50. this is my get_absolute_url() for the comments: def get_absolute_url(self): comment_ids = [c.id for c in self.newsitem.comment_set.iterator()] comment_ids.rev

Re: 'Faking' related-object managers on instances?

2007-03-15 Thread Jeff Forcier
eneral, I'll throw a quick ticket/patch into Trac so it's there - would've done so initially but wasn't entirely sure if it was appropriate. Regards, Jeff On Mar 15, 5:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-03-15 at 21:17 +, Jeff F

'Faking' related-object managers on instances?

2007-03-15 Thread Jeff Forcier
in normal usage from the real Managers. Any ideas? I'm unsure if it's wise to give QuerySets a .all() method that simply returns 'self', although that would bring the two object types closer together interface-wise. Thanks, Jeff --~--~-~--~~~---~-

Re: URLpattern kwargs becoming corrupted over time

2007-03-15 Thread Jeff Forcier
d make the solution clear. Regards, Jeff On Mar 15, 3:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-03-15 at 15:10 +, Jeff Forcier wrote: > > Oh, one more thing - here is one of the views whose data appears to be > > getting mixed up with the one I s

Re: URLpattern kwargs becoming corrupted over time

2007-03-15 Thread Jeff Forcier
fo_message = session_extract(request,'info_message'), ) if extra_context.has_key('roles'): for varname,role in extra_context['roles'].iteritems(): extra_context[varname] = check_role(extra_context['us

Re: URLpattern kwargs becoming corrupted over time

2007-03-15 Thread Jeff Forcier
ern instance created per URL, so I don't see how the data stored in their attributes would be shared or otherwise mixed up. Finally, I should point out that at least on my development server, I am seeing the problem even when only requesting one URL; in other words, the server is serving request

URLpattern kwargs becoming corrupted over time

2007-03-14 Thread Jeff Forcier
ed to post to see if anyone had any other bright ideas. This issue occurs with 0.91 and 0.95.1, with mod_python as well as the development runserver, always Python2.4 (on varying Gentoo systems, fwiw). Thanks for any help, Jeff F. --~--~-~--~~~---~--~~ You received

Re: Exception in template rendering

2007-03-13 Thread Jeff Forcier
. Regards, Jeff On Mar 2, 5:19 pm, "checco" <[EMAIL PROTECTED]> wrote: > Hi, > > I was playing with the django application djangosnippets (the released > source code ofwww.djangosnippets.org) and I got the following error: > > "Caught an exception while ren

Re: Odd behavior using __range lookup

2006-12-13 Thread Jeff Triplett
If anyone else stumbles on this post and has a similar problem then it's worth noting that the value field was a varchar doing an numeric range evaluation on it. Even though it does in fact work some times (mysql), you're better off hooking the save() method on a model and converting the value to

Re: Singleton model instance

2006-12-05 Thread Jeff Forcier
th more specific and/or efficient variants on this theme, but basically this is going down the road that leads to content management systems, which have solved this basic problem for some time now :) Regards, Jeff Phil Powell wrote: > > Perhaps I've not explained myself properly. H

.delete() not called on related objects when 'parent' object is deleted

2006-10-31 Thread Jeff Forcier
d at some point (I can write a patch if/when I get the time to examine it further :)). Thanks, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: How about a Django apps public repository?

2006-10-04 Thread Jeff Forcier
e and what little expertise I have, to running/curating the thing, as well as writing the front-end or modifying what Ian has started with. Thoughts? Regards, Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Django Forums

2006-09-26 Thread Jeff Wheeler
Why is there only one forum for "Django Programming"? Cerberus wrote: > I decided to start up some forums for anyone that wants to join. I know > many like google but these forums might be of use as well. > Thanks. > http://djangoforums.org/index.php --~--~-~--~~~---

Pro Django from Apress

2006-09-18 Thread Jeff Rodenburg
I just read about this new book on Django and am looking forward to checking it out.  Amazon shows its availability at October 30th.Does anyone know if it might be available earlier than that? http://www.amazon.com/Pro-Django-Development-Done-Right/dp/1590597257/sr=8-1/qid=1158597493/ref=pd_bbs_1/1

Re: non-cascading delete?

2006-09-13 Thread Jeff Forcier
some time. Regards, Jeff --~--~-~--~~~---~--~~ 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: How about a Django apps public repository?

2006-09-12 Thread Jeff Forcier
erritory; it's already capable of referencing existing projects and storing code snippets, so with some sort of "project listing template" all that Djangoforge would offer extra is the actual hosting for folks without any--which, yes, Google Code and friends already provide. Hmm. -Jeff

Rails/Django comparison synopsis (a BIG summary)

2006-09-11 Thread Jeff Rodenburg
my preference for Python but also due to my disdain for the Rails jihad that seems to be swelling.  As a complete aside, I'm from the midwest.  How can I not cheer for something out of Lawrence, KS?  ;-) Thanks all for your responses, this helps me immensely.cheers,jeff r. On 9/11/06, Jeff

Rails/Django comparison synopsis

2006-09-11 Thread Jeff Rodenburg
more publicity (the Hanson kid sure knows how to work a crowd) and a nice IDE in RadRails. My question: how would you (you = someone with solid Django background) characterize similarities and differences with Rails?cheers,jeff r. --~--~-~--~~~---~--~~ You receive

Re: How about a Django apps public repository?

2006-09-09 Thread Jeff Forcier
r scenarios. I'm on #django during the week, I can't promise to be in there much this weekend; I'd also be up for another GoogleGroups thread if we really do need to split the technical stuff out of this thread (honestly I don't care much either way). Regards, Jeff --~--~-~-

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
Sean Schertell wrote: > > Any other contributors? I've got a handful of templatetags, which while somewhat outdated (built against ~0.91) should still be useful. I also have a (very) small forums app which I plan on expanding when I find the time, although it would need some cleanup to use outsid

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
Marc Fargas wrote: > I like the idea of the Cheeshop and more the one of different TRACs, but on > the three options given, hosting TRACs is not as easy, Cheeshop and google > are free.hosting a TRAC isn't. dejavu doesn't seem an option if you need to > wait for an invite code for every project.

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
>From exploring Google Code a short bit, I'm not positive it's the best medium, at least if we want any decent discussion or Web-based documentation. Yes, one could hold discussions via the Issues, but that's pretty gimpy for any discussion that does not fit well as a trouble ticket. And one could

Re: How about a Django apps public repository?

2006-09-08 Thread Jeff Forcier
l. ** Roll something new (with Django, of course)? See previous point re: reinventing the wheel; but a roll-our-own could, of course, provide exactly the features we need in the way we need them (note to newbies, this duality of thinking is why the open source community is so damned fragmented ;)

Re: Shell not picking up db changes

2006-08-14 Thread Jeff Forcier
However, keep in mind Pedro's example, where he uses "import x.y.z as a" and then later calls "reload(a)". In other words, using the "as" functionality of import lets you have the best of both worlds--reload() will work, and you can still get a single-word binding in your namespace for your Model

Re: Re: Using custom forms with generic views

2006-08-12 Thread Jeff Mikels
ate the code. > > regards > Ian > > > On 08/08/2006, at 2:45 AM, jeffmikels wrote: > > > Thanks for your help. I ended up creating a view to do the work. If the > data is simple enough and just plain text, is there a c

JOB: Full-time Django/Python/etc position in NYC

2006-08-07 Thread Jeff Forcier
nterested, please forward this on to them--we'd prefer someone with prior Django experience, but it's not required. Thanks for your time, Jeff F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: How install mysqldb under CentOS3 (or enable pyvault?)

2006-07-01 Thread Jeff Pitman
mamcxyz wrote: > Any input? CentOS 3 requires a bootstrap RPM: http://www.python.org/pyvault/centos-3-i386/pyvault-release-bootstrap-3-3.el3.pyv.noarch.rpm I never created compat libs for mysql on this platform, though. Contributors welcome. :P --~--~-~--~~~---~--~-

Re: Ajax support, there is no need for reinventing the wheel

2006-06-04 Thread Jeff Forcier
ronous requests: here's how Dojo does it, here's how MochiKit does it, here's how Prototype does it...". Make sure that newbies are essentially forced to read the first, generalized doc before they can get much out of the second, and we'll have done as much as we can. Anyw

Re: Ajax support, there is no need for reinventing the wheel

2006-06-03 Thread Jeff Forcier
e (I currently use Dojo, for various reasons). Regards, Jeff --~--~-~--~~~---~--~~ 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 unsu

Re: Django on Intel mac?

2006-05-23 Thread Jeff Forcier
u need the MX Python modules installed in order to install psycopg; if you install them and still get the error, it just means you have to make sure they are in the place that the compiler is looking for them. Regards, Jeff --~--~-~--~~~---~--~~ You received th

Re: ManyToManyField reverse lookup not working

2006-05-17 Thread Jeff Forcier
what you meant. Regards, Jeff --~--~-~--~~~---~--~~ 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

<    2   3   4   5   6   7