On Thu, 2007-03-22 at 07:57 +, benrawk wrote:
> Hello,
>
> Recieving a common error, but have trolled the message boards, and
> have not found a solution. My httpd.conf file contains the following
> relevant snippet:
>
>
> SetHandler python-program
> PythonPath "['/home/benrawk'] +
Thank you both for your replies!
On Mar 21, 6:56 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> There is nothing special about that app. The login which is failing is
> the standard django one (The app just adds code for new account
> creation, e-mailing the registerant, and enabling the ac
On 22 Mar 2007, at 06:57, Malcolm Tredinnick wrote:
>
> On Wed, 2007-03-21 at 23:36 -0700, [EMAIL PROTECTED] wrote:
>>> Hmm... if we do it, this feels like something that should be kept
>>> separate from the standard manage.py;
I don't mind "where" this functionality "lives"... and really don't
I checked out the newest django trunk to my dreamhost domain, and
suddenly I got an error when I tried to go to the admin site.
ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1g3
Tried 'python manage.py validate' and got this:
Traceback (most recent call last):
File "manage.
http://www.freehomepages.com/mudan/1.htm
--~--~-~--~~~---~--~~
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
Hello everyone!
I am your friend, from China, if you like Chinese painting art ,Please
landing
http://www.freehomepages.com/mudan/1.htm
thank you!
Chinese painting is unique painting techniques ,Natural minerals
used as a pigment .The use of brush painting .As a gift to a foreign
head of st
Hello everyone!
I am your friend, from China, if you like Chinese painting art ,Please
landing
http://www.freehomepages.com/mudan/1.htm
thank you!
Chinese painting is unique painting techniques ,Natural minerals
used as a pigment .The use of brush painting .As a gift to a foreign
head of st
On Thu, 2007-03-22 at 10:17 +, Tom Smith wrote:
>
> On 22 Mar 2007, at 06:57, Malcolm Tredinnick wrote:
>
> >
> >
> > On Wed, 2007-03-21 at 23:36 -0700, [EMAIL PROTECTED] wrote:
> > > > Hmm... if we do it, this feels like something that should be
> > > > kept
> > > > separate from the stan
On Thu, 2007-03-22 at 04:11 -0700, Tomas Jacobsen wrote:
> I checked out the newest django trunk to my dreamhost domain, and
> suddenly I got an error when I tried to go to the admin site.
>
> ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1g3
This has been a fairly hot topic on
Thank you!
Regards
Tomas
On 22 Mar, 12:36, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Thu, 2007-03-22 at 04:11 -0700, Tomas Jacobsen wrote:
> > I checked out the newest django trunk to my dreamhost domain, and
> > suddenly I got an error when I tried to go to the admin site.
>
> > Import
Coming back to the topic. Will i be safe if i surround my SQL-related
code with mySQLDb exceptions? As i understood that doing some tests that
those are the exceptions raised by django.
Can anyone confirm this ? Or point me to another directions to handle
SQL exceptions properly if there is so
On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I'll see what I can do.
>
> On Mar 20, 9:42 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
> wrote:
> > On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > > However, if I want more than one selected boxes, using a list doesn
Recently I've found myself repeating variables many times in
templates, much like this:
{% if company.contact.email %}
Email address
{{ company.contact.email }}
{% endifvalue %}
This repetition is annoying, as well as inefficient if company.contact
involves a ForeignKey lookup.
I've created
"Gerard M" <[EMAIL PROTECTED]> writes:
> I suppose this example works but I havent tried it, even tho im doing
> the same, I dont know what am I doing wrong, thanks for your time and
> help
You don't do a direct object access. Maybe the Exception is another
then. Try without the try/except claus
On Thu, 22 Mar 2007 22:36:24 +1100, Malcolm Tredinnick wrote:
> Also, if you are running the latest subversion checkouts and this sort
> of thing happens, please, check the wiki page about backwards
> incompatible changes where we record these items.
Is it possible to subscribe (RSS, email) to a
No reply from anyone? Is that mean this is not possible? Should I
write a custom view just for informing user?
Please, any help or comment would be so appreciated.
On Mar 21, 4:42 am, "Evren Esat Ozkan" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm checking a field's value againts related object
Ok I found a way;
I'm passing messages to the user via get_current_user method from
ThreadLocals* middleware,
and with the help of jQuery** I'm supressing admin's default
messagelist style for messages that contains certain word:
This is jQuery code which added to base_site.html's extrahead bloc
How/where can I add a method to the built-in User class?
Thanks,
--
Greg Donald
http://destiney.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dja
> It becomes less useful as you get more
> experienced, because there is no "one size fits all" approach to
> application layout.
You wouldn't say that if you'd seen my code... I'd love to be guided
on application layout, in fact, it was only at the end of my first
django project that I think
On 21 Mar 2007, at 22:58, Scott Paul Robertson wrote:
>
> I've got an hour and a half. I was planning to only hit the high
> points,
> then leave references to other things, and maybe mention briefly why
> they should care.
>
> Thanks for the suggestions (this goes to everyone)
For me... the h
hello,
thanks for posting.
te way i do it is by creating a variable:
{% let email = company.contact.email %}
after that you can use email variable just like any other.
konstantin
class LetNode(Node) :
def __init__(self, var, expr) :
self.var, self.expr = var, expr
def render
On 3/22/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> my head -- every time additions are proposed. In this case, my feeling
> is that adding this extra functionality to management.py -- the core
> management routines in Django -- is not the right place.
I agree it doesn't belong in managem
> >>> z=Dic.objects.filter(DB_Word=worfromtext).distinct()
> >>> if not z.count(): print 'ERROR!'
First I want to thank all of you guys for posting here and for helping
me solving my problem, I feel really happy because I can rely on a
community this wise and helpful, and I want to give special
The object_list generic view would be much more useful if it would
accept lists as well as querysets. The only thing that prevents this
is the line:
queryset = queryset._clone()
since lists don't have the _clone method.
The reason I want to do this is that I accumulate a list of things
from a use
I have a setup whereby I proxy 3rd.domain.tld with Apache to
127.0.0.1: running django.
When I access 127.0.0.1:/admin, I get the admin page as intended.
However, if I attempt access with 3rd.domain.tld/admin, I get an error
Page not found (404)
Request Method:
GET
Every time this gets brought up it ends up falling apart at the 'what
should it really do' stage.
Unfortunatly given your example, 90% of what you want (urls.py with
static file handling, a media directory, building the actual model)
are things I expressly do NOT want the wizard to do for ME. (I h
hi,
i have this kind of model:
class Storycomment(models.Model):
...
story = models.ForeignKey(Story, related_name='comment_set')
...
comment = models.TextField()
parent = models.ForeignKey('self', blank=True, null=True,
related_name='child_set')
...
with "parent", a sel
Add a couple more template tags like this and we'll have another
programming language :)
Actually, recently I was also thinking about creating some similar
tag: {% set object.whatever.whatever.property as variable %}
One thing that can be done for shortening access paths and for
temporary cachin
Here is an amazing offer:-Download the software and Call any phone
anywhere Free! - http://surl.in/HLGB7238206SVRAKSX-g
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
On 3/22/07, alain <[EMAIL PROTECTED]> wrote:
...
> but for each "parent" fk that is not null i have a db request that
> goes get the self referenced comment:
That's unusual. Please show your view and template code; something
you're doing is causing the additional lookups, I think.
--~--~---
A common solution would be to create a profile class for a user with
the one-to-one relationship to the user and add your custom method to
the new profile class.
Then set AUTH_PROFILE_MODULE to your profile class in the settings, for example:
AUTH_PROFILE_MODULE = "profile.UserProfile"
You can ac
I've recently had to add a way for us to access custom SQL for some
really off the wall queries we need to run for reports...
def getReportDBCursor():
from django.db import connection
return connection.cursor()
Do I need to close the connection after I'm done with the results?
I've also
hi Jeremy
i think i found my mistake...
i had this in the model:
###
class Storycomment(models.Model):
user = models.ForeignKey(User)
story = models.ForeignKey(Story, related_name='comment_set')
show = models.BooleanField(default=True)
trashed = models.BooleanField(default=False
Hi,
I'm starting with internationalization. All is good with django.po
& mo. but tere are words that are not
found by make-messages.py as are in variables so I add the by hand.
I'd prefere to keep them in a separate
file my_file.po.
Compile-messages finds it and creates my_file.mo but d
Hi all. I have some problem with my django instance:
After Ajax request as a server response I get this:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "C:\opt\Python24\Lib\site-packages\mod_python\apache.py", line
299, in HandlerDispat
I want to create some custom validation methods for some fields in a
model that I have. I use a form to display this model through a
view. Anyways, does this mean I can't use
"forms.models.form_for_model(Employee)"? Would I have to create this
form seperately from the model instead of appending
Yes, I've read the transaction docs and the other user group queries
on Django users. I'm trying to search for the query list so I can roll
it back and see what the problem is. Thing is though, I can't seem to
access that list.
My app worked fine on the dev server, now on the prod server I've
ins
Hello
I've built a simple photo album with album and photo models. URLs work
simply using albumslug/photoslug. I'd like to be able to create albums
within albums, so I've added a self referencing ForeignKey in the
album model to achieve this.
What I'm trying to work out now is the best approach
On Thu, 2007-03-22 at 12:59 +, Sam Morris wrote:
> On Thu, 22 Mar 2007 22:36:24 +1100, Malcolm Tredinnick wrote:
>
> > Also, if you are running the latest subversion checkouts and this sort
> > of thing happens, please, check the wiki page about backwards
> > incompatible changes where we rec
On Thu, 2007-03-22 at 11:56 -0700, sandro.dentella wrote:
> Hi,
>I'm starting with internationalization. All is good with django.po
> & mo. but tere are words that are not
> found by make-messages.py as are in variables so I add the by hand.
> I'd prefere to keep them in a separate
> file
Malcolm,
I have re-read your response several times, and although I'm sure I
haven't fully digested everything yet, it definitely got me thinking
of the contribution in new ways. I actually posted my reactions to
your message, along with other REST musings, on my blog, as its rather
long, and the
On Thu, 2007-03-22 at 20:43 +, Stephen Newey wrote:
> Hello
>
> I've built a simple photo album with album and photo models. URLs work
> simply using albumslug/photoslug. I'd like to be able to create albums
> within albums, so I've added a self referencing ForeignKey in the
> album model to
On Thu, 2007-03-22 at 12:53 +0100, sebastien Pastor wrote:
> Coming back to the topic. Will i be safe if i surround my SQL-related
> code with mySQLDb exceptions? As i understood that doing some tests that
> those are the exceptions raised by django.
>
> Can anyone confirm this ? Or point me to
On Jan 16, 12:32 pm, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> On 1/16/07 4:05 AM, Russell Keith-Magee wrote:
>
> > Given the current push towards 1.0, it seems likely that this
> > particular merge will not get the attention of the core developers in
> > the immediate future (at least unti
On 3/23/07, Scanner <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jan 16, 12:32 pm, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> > On 1/16/07 4:05 AM, Russell Keith-Magee wrote:
> >
> > > Given the current push towards 1.0, it seems likely that this
> > > particular merge will not get the attention of t
Hi folks,
I was hoping someone could let me know if it's possible for Django
models, authentication and database access (among others) can be used by
a standalone application (i.e. not a web app)?
For example, I have a web app that defines a number of models. People
use the web interface but
Sure you can, as long as you define the DJANGO_SETTINGS environment variable
and import the models!
Then its up to you how you interface the models from another app ;)
On 3/23/07, Mike Stoddart <[EMAIL PROTECTED]> wrote:
>
>
> Hi folks,
>
> I was hoping someone could let me know if it's possible
On 23-Mar-07, at 6:22 AM, Mike Stoddart wrote:
> For example, I have a web app that defines a number of models. People
> use the web interface but I also want to write some Python utils that
> access the same database and data using the same models as standalone
> applications.
as i am very fon
On 3/23/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
> On 23-Mar-07, at 6:22 AM, Mike Stoddart wrote:
>
> > For example, I have a web app that defines a number of models. People
> > use the web interface but I also want to write some Python utils that
> > access the same database and data
Hello, thank your for your reply. Tried everything, getting positive
results, but still can't load http://localhost/mysite/.
1) permissions on both /home, /home/benrawk, and /home/benrawk/mysite
are 'drwxr-xr-x'
2) I succesfully imported mysite.settings after adding /home/benrawk
to the sys.path
Also, when I import and print sys.path into a python session, with
apache running in the background, sys.path does not include '/home/
benrawk'. Is it supposed to? Is there a way I can check the value of
PythonPath as it is defined in httpd.conf?
On Mar 22, 8:37 pm, "benrawk" <[EMAIL PROTECTED]>
On 23-Mar-07, at 8:44 AM, Matthew Flanagan wrote:
>> as i am very fond of saying - django is nothing but python
>>
>
> Yes, but Django auth is really only for web apps and can be easily
> bypassed in commandline scripts, for example:
>
> $ python
> Python 2.4.4 (#1, Mar 21 2007, 14:34:56) [C] on
Just a follow-up on this issue...
It turns out that the problem was that the data being queried against
contained a close-single-quote character instead of an apostrophe. A
query for "Al's Hobby Shop" was not matching because there was no
apostrophe in the data. Replacing the close-single-quote c
I don't know if it's an encouraged practice, but I established a
symbolic link to my app folder in site-packages which ensures that the
app is in the python path. Until I did that I received the same error
from apache as you have.
On Mar 22, 10:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote:
> Also,
On Fri, 2007-03-23 at 03:49 +, benrawk wrote:
> Also, when I import and print sys.path into a python session, with
> apache running in the background, sys.path does not include '/home/
> benrawk'. Is it supposed to?
No, they are different processes. Apache will only adjust sys.path for
the py
While I've seen very similar issues posted, I have yet to find
something that works for me...
Also, I'm definitely a Django/Python newb, so I apologize if my
terminology/vocab doesn't make sense... I laid things out as simply as
I could.
Basically, I want to have a single list combining recent b
On Fri, 2007-03-23 at 14:14 +1100, Matthew Flanagan wrote:
> On 3/23/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> >
> >
> > On 23-Mar-07, at 6:22 AM, Mike Stoddart wrote:
> >
> > > For example, I have a web app that defines a number of models. People
> > > use the web interface but I also wa
On Fri, 2007-03-23 at 05:05 +, Andrew M. wrote:
> While I've seen very similar issues posted, I have yet to find
> something that works for me...
>
> Also, I'm definitely a Django/Python newb, so I apologize if my
> terminology/vocab doesn't make sense... I laid things out as simply as
> I co
On Mar 23, 2:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote:
> Also, when I import and print sys.path into a python session, with
> apache running in the background, sys.path does not include '/home/
> benrawk'. Is it supposed to? Is there a way I can check the value of
> PythonPath as it is defined i
On 3/23/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2007-03-23 at 14:14 +1100, Matthew Flanagan wrote:
> > On 3/23/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On 23-Mar-07, at 6:22 AM, Mike Stoddart wrote:
> > >
> > > > For example, I have a web app that de
How folks --
Just a quick reminder that Google Summer of Code student applications
are due Monday! If you're a student and want to get paid to work on
Django this summer, you should submit an application ASAP.
We've only gotten a couple of good applications, so if you've got
something interestin
Thank you again for helping. FYI, I am using Fedora Core 6. I set
'PythonHandler mod_python.testhandler' in httpd.conf and got a bunch
of info. The sys.path appears to be correct...relevant bits, and then
full text beneath.
sys.path containes /home/benrawk
REQUEST_URI /mysite/
SCRIPT_NAME
62 matches
Mail list logo