Russ,
thanks for your response...I'll review the ticket you mentioned...
one additional question (sorry -- db design is not my forte)...
For each user, i ahve created a profile (which includes avatar, blog
url etc.)..Of course, since this a user profile, it also has a
foreignkey into the Django
On Dec 28, 8:15 pm, mOne <[EMAIL PROTECTED]> wrote:
> OK. How do I set this up on my machine. I am running Leopard and I am
> using the following as my path, but it does not seem to be working.
> How can I tell if I my path is correct.
>
> This is the error that I keep getting:
>
> Macintosh:~ tk$
On 26-Dec-07, at 10:03 AM, Malcolm Tredinnick wrote:
>
>
> On Wed, 2007-12-26 at 09:46 +0530, Kenneth Gonsalves wrote:
>>
>> On 26-Dec-07, at 9:01 AM, Malcolm Tredinnick wrote:
>>
>>>
>>>
>>> On Wed, 2007-12-26 at 08:53 +0530, Kenneth Gonsalves wrote:
On 25-Dec-07, at 7:53 PM, l5x wrot
Here's what I asked GoDaddy Support:
"Is FastCGI accessible from python scripts if I add my own handler? I
ask
this in specific relation to setting up Django. Is this known not to
work?"
Here's their response:
"FastCGI is accessible from Python scripts for our Linux hosting
accounts. We do not
After wrestling with newforms to get it to do things I thought it was
never intended to do, I decided that either it was really intended to
do such things or it's just such a clean design that getting it to do
weird things isn't that hard.
That said, I spent a lot of time fiddling around to find
OK. How do I set this up on my machine. I am running Leopard and I am
using the following as my path, but it does not seem to be working.
How can I tell if I my path is correct.
This is the error that I keep getting:
Macintosh:~ tk$ python django-admin.py startproject appersers
/System/Library/
On Dec 29, 2007 9:46 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> thanks for the response russ,
>
> i did review the example -- is there anything particular (consequence)
> that you're referring to ?
Just the obvious one - the fact that you can easily define an
asymmetrical m2m relationsh
I have a bin directory in my home folder. In that, I created a link
for django-admin.py pointing to /opt/django-source/django/bin/django-
admin.py.
My $HOME/bin is in my path.
On Dec 27, 11:53 pm, mOne <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using Leopard currently and am getting started with
I'm creating an admin interface using the Admin application and I've
renamed a field with the following code:
def display_classification(self):
return self.class_name
display_classification.short_description = 'Classification'
However, when I do this, the column heading no longer allows sort
On Dec 27, 8:22 am, Muchanic <[EMAIL PROTECTED]> wrote:
> Just FYI and for anyone else who comes across this thread - I had the
> same problem, trying to pass a ForeignKey via HiddenInput in an app
> I'm working on. If you need to/want to do it this way, the trick is
> that you have to use a Mode
thanks for the response russ,
i did review the example -- is there anything particular (consequence)
that you're referring to ?
thnx,
-pranav.
On Dec 28, 7:08 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Dec 28, 2007 2:35 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > F
Thanks for the quick and thorough response, Tim!
I'll find out if the FastCGI they advertise as being available for
Ruby on Rails could also be made accessible to Python by following the
Shared Hosting instructions at the bottom of
http://www.djangoproject.com/documentation/fastcgi/.
On Dec
On Dec 28, 2007 2:35 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> For a friend / social network, what would be the best model approach ?
>
> have a many-to-many asymmetrical recursive relationship ?
>
> http://www.djangoproject.com/documentation/models/m2m_recursive/
>
> Or should i have a
> but with how it will potentially affect the http server/environment,
Sometimes the best way to prove it is to show it.
Are you running Apache/mod_python? If so, configure Apache for another
virtual host and add a path to the alternate django version in the
PythonPath line in Apache. I think mo
You can try to use 'attrs' parameter of the widget constructor.
http://www.djangoproject.com/documentation/newforms/#customizing-widget-instances
Something like this:
attrs = { "onchange" : "this.form.submit()" }
On 29 дек, 02:46, mamcxyz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wanna autopostback
Hi,
I wanna autopostback when a select change. I know its only set
onchange="this.form.submit()". But using newforms and recent trunk I
can't see if exist a way using this:
{% for field in barra %}
{{ field.label_tag }}
{% autoescape off %}{{ field }}{% endautoescape %}
{% endfor %}
I could bui
What version of django do you use? In trunk there is classic password/
confirm schema.
On 29 дек, 01:39, mickey ristroph <[EMAIL PROTECTED]> wrote:
> Does anyone have a good way to have the replace the alg$salt$hexdigest
> input for the Add User admin page with a more traditional password/
> pass
Does anyone have a good way to have the replace the alg$salt$hexdigest
input for the Add User admin page with a more traditional password/
password confirmation input? I would still like the password encrypted
in the database.
--~--~-~--~~~---~--~~
You received this
> Has anyone had success in setting up Django on GoDaddy's Deluxe shared
> hosting plan? It supports Python CGI, but has no shell access.
CGI != FastCGI != WSGI
If all they offer is CGI, the general consensus is that you ought
look elsewhere as (1) it's not supported in Django and (2) if it
wa
Has anyone had success in setting up Django on GoDaddy's Deluxe shared
hosting plan? It supports Python CGI, but has no shell access. I read
a previous post from October 2006, where I read of another user who
did the same things I did (guided by the django documentation for
shared hosts), but now
On Fri, 2007-12-28 at 14:09 -0800, Alex G wrote:
> Sorry about the nomenclature. I am with you as far as the feature set
> is concerned, but his issue of course, is not what the svn trunk can
> and can't do (that's outside his ambit), but with how it will
> potentially affect the http server/env
Sorry about the nomenclature. I am with you as far as the feature set
is concerned, but his issue of course, is not what the svn trunk can
and can't do (that's outside his ambit), but with how it will
potentially affect the http server/environment, and whether anything
will crash. I'm not worrie
On Fri, 2007-12-28 at 16:01 -0500, Ned Batchelder wrote:
> I appreciate the advice, but forloop.first won't work for what I'm
> trying to do. If the first thing chosen is in the second iteration of
> the for loop, then forloop.first is never true. I don't want to know
> if I'm on the first iter
As a first step, let's vote for it on Digg:
http://digg.com/search?s=django+book&submit=Search§ion=all&type=both&area=all&sort=score
:)
On 27 дек, 21:39, walterbyrd <[EMAIL PROTECTED]> wrote:
> A lot of people read slashdot, and slashdot has never done any sort of
> story on Django. There have bee
I appreciate the advice, but forloop.first won't work for what I'm
trying to do. If the first thing chosen is in the second iteration of
the for loop, then forloop.first is never true. I don't want to know if
I'm on the first iteration of the loop. I want to know if it's the
first time in th
On Fri, 2007-12-28 at 15:36 -0500, Ned Batchelder wrote:
> Just a matter of taste. I suppose filtering in the view would be the
> simplest way to achieve what I'm looking for.
>
> For my own edification: is there a way to write an iffirst tag? I
> often wish for it.
In the tag code, test to s
Just after I sent the last reply, I went to change to filtering in the
view. Then I realized why I didn't want to.
This loop is actually nested inside another (let's say it's an outer
loop over blog posts, then an inner loop over tags for each post). To
filter the tags, I have to loop over th
Just a matter of taste. I suppose filtering in the view would be the
simplest way to achieve what I'm looking for.
For my own edification: is there a way to write an iffirst tag? I often
wish for it.
--Ned.
Todd O'Bryan wrote:
> On Dec 28, 2007 2:46 PM, Ned Batchelder <[EMAIL PROTECTED]> wro
On Dec 28, 2007 2:46 PM, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
> I'm making a list of objects, and only including some of them in the output:
>
> {% for thing in mylist %}
>{% if thing.test %}
> {{thing}}
>{% endif %}
> {% endfor %}
>
Is there a compelling
J. Clifford Dyer sdf.lonestar.org> writes:
>
>
> On Fri, Dec 14, 2007 at 01:01:37PM -0800, haver wrote regarding stuck with
tutorial 3 at - Write views that
> actually do something:
> >
> >
> > Hi All,
> >
> > I started with django and went through 2.5 tutorials relatively
> > painless, bu
> I'm making a list of objects, and only including some of them in the output:
>
> {% for thing in mylist %}
>{% if thing.test %}
> {{thing}}
>{% endif %}
> {% endfor %}
>
> Now if I want to comma-separate the list, how do I do it? The natural
> thing to my mind
> Also, I don't understand what the last tag is for, either. Any
> help would be greatly appreciated.
>
The last form tag is an error. It should be the closing form tag
Fix that and see if your problem persists.
Michael Trier
blog.michaeltrier.com
--~--~-~--~~~---
I'm making a list of objects, and only including some of them in the output:
{% for thing in mylist %}
{% if thing.test %}
{{thing}}
{% endif %}
{% endfor %}
Now if I want to comma-separate the list, how do I do it? The natural
thing to my mind is an "iffirst" t
Hi,
I face the same problem as haver too when I followed the tutorial at
(http://www.djangoproject.com/documentation/0.96/tutorial03/).
I don't think we were supposed to change the URL config. Apparently
the loader.get_template should have loaded index.html from the
template directory, but it re
I wanna integrate the option to find the city based on the IP. I look
at maxwind and ip2location, both have a free version of the data, but
can't compile the thing under windows.
So, what option could be best?
--~--~-~--~~~---~--~~
You received this message becaus
You'll need to use getlist('credentials') to access the form data (use
this in your validation code or in form processing) or:
for cred in data['credentials']:
newthing.credentials.add(cred)
newthing.save()
I think you're looking for the getlist() stuff.
Tim
> On Dec 23, 7:52
On 28-Dec-07, at 10:32 PM, Alex G wrote:
> However, I have to
> contend with a server admin who is uncomfortable deploying 0.97
> because it is marked as prerelease, and he seems convinced that it
> will bring down the entire server at random intervals. Is there any
> real benefit to sticking
Hello,
I was following the chapter 12 of the django book and had a redirect
problem after login. I cannot redirect to the page I want. I found the
following trick from the Django user group, but it did not work for
me. I was always taken to the /accounts/profile/ even with your code.
Here is what
Thanks for the help.
There was a problem with the mail server. Now I got it working.
Thanks a lot!
On Dec 27, 7:18 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Dec 27, 2007 6:01 PM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
> > It seems that this error was coming from HttpResponseR
Dear Djangonauts (>.>),
With reference to the post "Development vs. Production
Servers" (http://groups.google.com/group/django-users/browse_thread/
thread/1c65830ce2218039/ad8057d1296ba098?
lnk=gst&q=0.96+0.97#ad8057d1296ba098)
the recommendation seems to be to deploy the same version of Django
t
Hi folks,
As a start, I created a flatpage in the admin interface, and pointed
it at a template that looks like this:
{% extends "base.html" %}
{% block content %}
{{ flatpage.title }}
{{ flatpage.content }}
{% endblock %}
Okay, this is excellent - it displays the flatpage content from the
data
HOMEPAGE: http://www.brandedsite.com
CONTACT: [EMAIL PROTECTED]
PAYMENT: Western Union / Bank of china / paypal
We are a proffesional asian wholesaler of --wholesale cheap
Nike Sneakers: Air Force One,Air Jordans1-22,
Jordan2.2,Jordan2.5,3.5,4.5,
6.5,7.5,13.5,15.5,21.5
HOMEPAGE: http://www.brandedsite.com
CONTACT: [EMAIL PROTECTED]
PAYMENT: Western Union / Bank of china / paypal
We are a proffesional asian wholesaler of --wholesale cheap
Nike Sneakers: Air Force One,Air Jordans1-22,
Jordan2.2,Jordan2.5,3.5,4.5,
6.5,7.5,13.5,15.5,21.5
What you have should work. Using your models (on .96):
In [1]: from sandbox import models as pm
In [2]: p=pm.Poll.objects.get(pk=1)
In [3]: p.choice_set.create(choice="too much tea",votes=0)
Out[3]:
In [4]: p.choice_set.all()
Out[4]: [, ]
Anytime things fail to work the way I expect th
> The other approach I've seen from James Bennett's blog, is to create a
> template tag to retrieve model data generally. This works too, but it
> feels like it's more legwork that should be required.
We ran into this problem on a site we just launched. We tried several
approaches but ultimately
I have met similar problem, and still don't know why...I have two py
scripts to call some model methods using raw sql UPDATE, one script
runs correctly when I use transaction, but the other doesn't. really
strange..
On 12月27日, 下午11时57分, beewee <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the la
hello all, together with my Djano app, I am using an independently-
running python scripts, using Django's ORMs. It's running like a
daemon, check one table in DB, and calls function at pre-set time. The
main codes are like:
def main_daemon():
for event in
Daemon_Event.objects.filter(event_occu
Hi, yes I did a reset.
I dropped all tables and recreated them, still I get the same error.
All functions well when I do just like the tutorial: I call an object
from a class without a foreign key and then I use the function
object_set.create, which is supposed to create and link to an object
fro
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
doesnt have that part, so how can i solve that problem also. And how can i
learn which parts have changed from that version to svn one?
--~--~-
Thanks Malcom,
I've used your solution and it simplified 200% what i was trying to
accomplish. And guess what, i was able to do what i wanted.
There are some things i don't quite understand in python and django but with
time and patience i'll get there. but i'm loving this framework!!!
Thanks aga
I use inclusion template tags. It is very easy and following DRY
principle. And tags may be cached independently.
On 28 дек, 10:26, Sam Lai <[EMAIL PROTECTED]> wrote:
> New django user here, so if this has been covered already, I'd
> appreciate a pointer to the right thread.
>
> I've been plannin
51 matches
Mail list logo