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
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
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
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
have a
landing page so the admin can choose to view or print.
Thanks!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
.
Is this the best way to do this? or is there a cleaner way?
Thanks!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
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
point for you:
http://code.djangoproject.com/wiki/CookBookNewFormsDynamicFields
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
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
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
>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':'
x:8000
where the xxx.xxx.xx.x is the external ip address.
Good luck!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
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
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
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
, 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
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
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
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
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
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
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
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,
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
ac page by name, and insert the data into the page.
Choose your poison
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
ither. That's the beauty of using standards. :)
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
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
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
r that template.
Hopefully this can yoint you in the right direction.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature
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
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
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
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
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**
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
'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
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'
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
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)
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
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
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
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
> 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
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 ---
>
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
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
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
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
--~--~-~--~~~---~-
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
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
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
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
.
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
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
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
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
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
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
--~--~-~--~~~---
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
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
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
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
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
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
--~--~-~-
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
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.
>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
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 ;)
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
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
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
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
--~--~-~--~~~---~--~-
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
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
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
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
601 - 677 of 677 matches
Mail list logo