If the purpose is to check for permissions/different display with
logged in vs. anonymous clients/etc, why not eliminate the chance of a
failure in the logout method and just create a new Client? Gives more
flexibility (by calling the client you want) and keeps things simple.
I use a method to tes
On Thu, 2007-08-16 at 17:05 -0600, Norman Harman wrote:
> Hi,
>
> request.template is None instead of what it should be because the response is
> from the
> cache middleware.
>
> Which is fine. My question is there a good way to disable the cache
> middleware during
> tests?
>
> "good" be
Must have experience installing, configuring python, etc...
contact [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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@googlegr
On Thu, 2007-08-16 at 05:25 -0700, jeffhg58 wrote:
> Hi,
>
> I am using a form_as_model with newforms and when I do a save I get
> the following error message on the form:
>
> format is %Y-%m-%d %H:%M:%S.
Grepping through the source code, the string "format is" does not appear
anywhere in the s
On Thu, 2007-08-16 at 11:03 -0700, MikeHowarth wrote:
> Malcolm
>
> Thanks for your comments, indeed changing to use the sitemap view,
> then returns a template does not exist error.
>
> If I create a sitemap.xml file in my templates directory I then bypass
> this. What I'm struggling with is th
On 17-Aug-07, at 7:47 AM, Greg wrote:
> Kenneth,
> So in your models.py file do you use auto_rename=False?
i use an old version - at that time it didnt have the auto_rename
feature
>
> This is what I have:
>
> photo = field.ImageWithThumbnailField(upload_to='site_media/')
thats what i have
>
On 8/16/07, Derek Anderson <[EMAIL PROTECTED]> wrote:
>
> hey,
>
> how is everyone handling mutual exclusion between server threads in
> django? is there a built-in method i'm missing?
What are you trying to accomplish?
--~--~-~--~~~---~--~~
You received this mes
On 8/16/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
> Don't understand what 0.96pre means since not a regular Django user,
> but there was a whole issue with MySQL database issues with Subversion
> copy of Django back in June.
Between releases, django.VERSION increments and adds the "-pre"
su
.
Life
It is something that everyone has, yet very view people comprehend it,
or at least try to.
If I put a book on your hand and ask you, "What is a book?
I bet you can answer it easily.
If now I put a slice of bread on your hand and ask you, "Wh
Kenneth,
So in your models.py file do you use auto_rename=False?
This is what I have:
photo = field.ImageWithThumbnailField(upload_to='site_media/')
When the picture is uploaded and saved in your site_media folder.
Does it have the the same dimensions as the original file or does it
h
1040 is the MySQL error for when you've got too many connections open
to the database server. MySQL's docs on this are here:
http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html
You have one or more of these happening:
1) You have too many Apache children for the MySQL's max_connecti
It sounds like what you need to build is a custom ForeignKey type of
field that creates another table for that field. Then, you can store
an arbitrary number of revisions of that field, along with versioning
information, and a wrapper around diff that can perform the functions
you mention.
On Au
http://www.pennergame.de/ref.php?uid=4762
--~--~-~--~~~---~--~~
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
On 17-Aug-07, at 6:49 AM, Greg wrote:
> Thanks for the reply. When you use nesh and you upload a picture is
> the name of the picture:
>
> classname-fieldname-none.jpg? Or does the filename contain the pk of
> the record?
no - it is just the name of the picture that is on my local hard disk
Can you upgrade to proper 0.96 and not 0.96pre and see if it makes a
difference.
Don't understand what 0.96pre means since not a regular Django user,
but there was a whole issue with MySQL database issues with Subversion
copy of Django back in June.
http://groups.google.com/group/django-users/br
Kenneth,
Thanks for the reply. When you use nesh and you upload a picture is
the name of the picture:
classname-fieldname-none.jpg? Or does the filename contain the pk of
the record?
Thanks
On Aug 16, 7:42 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 16-Aug-07, at 9:02 PM, Greg wrote
On 17-Aug-07, at 6:35 AM, James Bennett wrote:
>> So how do I do it?
>
> http://www.google.com/search?hl=en&q=sql+alter+table&btnG=Google
> +Search
an example:
http://www.djangosnippets.org/snippets/188/
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~---
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> So how do I do it?
http://www.google.com/search?hl=en&q=sql+alter+table&btnG=Google+Search
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You recei
On 17-Aug-07, at 6:15 AM, [EMAIL PROTECTED] wrote:
> There seems to be some trickery in updating a model that already has
> database entries.
There is no trickery involved. One thing people forget is that Django
is a framework made up of python, sql, html, css and javascript. It
simplifies
On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> That mentions syncdb will never alter tables, because of ambiguity.
>
> So how do I do it?
The problem you are referring to is schema evolution - evolving the
database schema for a Django model over time. Search the archives and
you wil
Anyone getting syncdb to work with Oracle and the current django
trunk?
My tables are generated, then...
...blah blah...
File "/dept/training/lib/python2.4/site-packages/django/db/backends/
oracle/base.py", line 122, in execute
return Database.Cursor.execute(self, query, params)
cx_Oracle.
Hi,
There seems to be some trickery in updating a model that already has
database entries.
Right now, in early development, I'm just erasing everything and
calling sqlreset or sqlclear on a model to update it.
This is clearly bad for a live site.
There is a note here:
http://www.djangoproject.
On 16-Aug-07, at 9:02 PM, Greg wrote:
> When the image gets uploaded the name of the image is myphototest-
> photo-none (without auto_rename attribute). Isn't none supposed to be
> the object pk. Shouldn't that be a 1,2,3 etc instead of none?
i'm afraid i cant help you further - I have been u
hey,
how is everyone handling mutual exclusion between server threads in
django? is there a built-in method i'm missing?
derek
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On 8/17/07, eXt <[EMAIL PROTECTED]> wrote:
> >>> from django.core import management
> >>> management.flush(verbosity=0, interactive=False)
> >>> management.load_data(['test_data'], verbosity=0)
Hi Jakub,
Sorry for the inconvenience here - especially after I just gave you
that piece of advice a
this does sound quite usefullet us know if you find one and/or roll
your own. :)
Tim Chase wrote:
>> I'm not sure I really understand. It sort of sounds like you are
>> talking about a CharField with a choices argument. Is what you're
>> looking for more complex?
>
> No...a "choices" arg
Hi,
request.template is None instead of what it should be because the response is
from the
cache middleware.
Which is fine. My question is there a good way to disable the cache
middleware during
tests?
"good" being atleast the following. is automatic, isn't based of value of
DEBUG, doesn
Thats absolutely it. Validated and no errors found. Great stuff.
I was sure I'd searched for Teacher and couldn't find anything.
Thanks again for your help.
On Aug 16, 8:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> If I remember this correctly, Talk is the item being sold in the
> st
Feds Train Clergy To "Quell Dissent" During Martial Law Shocking KSLA
12 news report confirms story we broke last year, Pastors to cite
Romans 13 as reason for public to obey government orders, relinquish
guns and be taken to camps during state of emergency Prison Planet |
August 16, 2007 Paul Jos
The change is just that this:
form = MyForm(request.POST)
changes to this:
form = MyForm(request.POST, request.FILES)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
> I'm not sure I really understand. It sort of sounds like you are
> talking about a CharField with a choices argument. Is what you're
> looking for more complex?
No...a "choices" argument assumes you know what you want in the
field beforehand...yes, I'm looking for a headache :)
> Can you de
I'm not sure I really understand. It sort of sounds like you are
talking about a CharField with a choices argument. Is what you're
looking for more complex? Can you describe it in more detail?
On Aug 16, 4:06 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> Has there been any work on a "RevisionCont
On 8/16/07, eXt <[EMAIL PROTECTED]> wrote:
> I just updated to the current django's trunk and I noticed that
> management.py has disappeared. Management is now a package with...
> something inside ;). Ok, the quesiton is how to execute this code in
> the new version:
>
> >>> from django.core impor
Interesting question you raise here. In fact, I believe that memory is
generally considered to be very important for these purposes (and it
comes relatively cheap). I cannot substantiate that, however.
Gypsy (specialized django) hosting from the django-maestro Jacob has
the following configuratio
Hi!
I just updated to the current django's trunk and I noticed that
management.py has disappeared. Management is now a package with...
something inside ;). Ok, the quesiton is how to execute this code in
the new version:
>>> from django.core import management
>>> management.flush(verbosity=0, in
Not the same, but interesting:
http://code.djangoproject.com/wiki/AuditTrail
In general, I'd be tempted to make a file-based svn repo and map
app/model/field into a URL, rather than try to make my own system. :)
On 8/16/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> Has there been any work on a "
Has there been any work on a "RevisionControlledField" type?
Likely, a standard text-field with some controls for selecting
versions or branches thereof, and saving becomes a bit complicated.
I'm looking for ideas/suggestions/caveats for such a field (and
if such a beast already exists, perhap
Hi,
I want to assemble a powerful Django server and had some questions on
how to best I can spend my $ on Hardware/Server to get higher
performance in general on my Django Server. My Django site is a CRM
web application serving tons of data. In order to make it as scalable
and responsive as possi
Optimize your operating system, minimize background activities, repair
registry base, uninstall unnecessary components, get rid of boring errors
and make your operating system safer.
http://windowsxpsp2pro.blogspot.com
--~--~-~--~~~---~--~~
You received this messa
If I remember this correctly, Talk is the item being sold in the
store, and it has a foreignkey relationship with Teacher... so that's
where you're getting your error.
You don't need Talks (unless that's what you're selling).
Where it says from eshop.talks.models import Talk, you need to change
t
On 8/16/07, Greg Donald <[EMAIL PROTECTED]> wrote:
> I have a new Django setup I'm trying to finish up the install for.
> I'm getting this error:
>
> Error loading MySQLdb module: No module named pkg_resources
I figured it out. I built my MySQL from source but forgot to add an
entry into my /etc
That works perfectly, thanks. I was going about it the wrong way with
values().
On Aug 14, 7:16 pm, Collin Grady <[EMAIL PROTECTED]> wrote:
> Author.objects.filter(book__publisher__id=1).distinct() doesn't work?
--~--~-~--~~~---~--~~
You received this message bec
I have a new Django setup I'm trying to finish up the install for.
I'm getting this error:
Error loading MySQLdb module: No module named pkg_resources
I can load pkg_resources on the command line with no problems.
> ipython
In [1]: import sys
In [2]: sys.path
Out[2]:
['',
'/usr/local/bin',
Importing other bits of code is still fairly new to me, I only started
looking at django last week.
I basically took the files out of subversion and created a dir
structure like so:
/eshop/shop
/eshop/cart <- django cart installed here
/eshop/talks <- additional django cart files
Within my set
Malcolm
Thanks for your comments, indeed changing to use the sitemap view,
then returns a template does not exist error.
If I create a sitemap.xml file in my templates directory I then bypass
this. What I'm struggling with is that the documentation suggests that
the feed is automatically generat
Sorry about that. I figured out what the problem was. It seems like
that usually happens AFTER I post to a newsgroup. Anyway, thanks!
On Aug 16, 12:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 8/16/07, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > I am using Django 0.96 and I am getting this
Hi guys!
First of all, thanks for all help, I was busy on a project last week
and could not dig into the problem.
Let me remeber the thread, I having a problem, sometimes my server
stuck and goes down, just before it happens, I receive many messages
telling "Too many connections". I use apache +
On 8/16/07, Ryan K <[EMAIL PROTECTED]> wrote:
> I am using Django 0.96 and I am getting this error. Any ideas as to
> why?
No, because we're not mind-readers ;)
In order to help you track down an error, we need to know:
1. What you were trying to do.
2. How you were trying to do it (e.g., paste
I've got it set up, but it's not plug and play... it's tied fairly
closely to a model you don't have.
It's trying to import Teacher from that model. You need to import your
stuff from your models.
On Aug 16, 3:02 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote:
> On 8/15/07, MikeHowarth <[EMAIL PR
I am using Django 0.96 and I am getting this error. Any ideas as to
why?
Thanks,
Ryan
--~--~-~--~~~---~--~~
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@googlegr
On 8/16/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> So - you can use the same related name multiple times - BUT - the same
> related name can't be added to a single model more than once.
I see - each reference to the same model from different models has to
have an unique related_name wh
Kenneth,
I renamed the image to 'abc' and it still didn't work. I added
'auto_rename=False' to the ImageWithThumbnailField' and it still
doesn't display the image correctly.
When the image gets uploaded the name of the image is myphototest-
photo-none (without auto_rename attribute). Isn't non
Christopher,
In your case, I would create a custom view/form extending the
templates of admin and would set the url of that view to something
like r'^/admin/obj_list/$'.
Regards,
Aidas Bendoraitis [aka Archatas]
On 7/21/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
> On 21-Jul-07, at 4
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Oh. That's a real ouch. I really hoped I can avoid that.
Well, consider this:
Anything which *isn't* SQL and which is used to do this job must -- in
order to cover all the necessary use cases -- be as complex as SQL, or
evolve to the poi
On 8/16/07, Peter Melvyn <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> please, could anybody confirm my experience with related_names. I
> tried to find-out some information about it and found invalid model
> example.
>
> If my understanding is correct, then it is not possible to have the
> same rela
On 8/16/07, eXt <[EMAIL PROTECTED]> wrote:
>
> Ok, I've got a logout method that should (IMHO) be added to client.py.
> I can generate patch from it. But what form should have a test and a
> documentation?
* Test: add a test case to /tests/modeltests/test_client that
validates that logout works.
## Great 2nd Income from Home- $500 per processed FHA refund - NET
DETECTIVE @@ only $20 as a Bonus, a 33% savings!!
Great Work at Home Opportunity: Earn up to $500 for each refund you
process. The Federal Government originated this opportunity. We just
updated the FHA refund records with more th
Hello,
I have searched high and low and have not been able to find a way to
get the form errors to display the label/verbose_name. As of now the
{{ GeneralForm.errors }} prints a of the field name and errors
listed for the field. This output is fine but I would like the label/
verbose_name to
Hi ,
I'd like to introduce you a biggest Asian free Video multi
language entertainment website:
http://www.webcool24.com/
Best regards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
Hi all,
please, could anybody confirm my experience with related_names. I
tried to find-out some information about it and found invalid model
example.
If my understanding is correct, then it is not possible to have the
same related_names in two different models. Is it correct?
Thanks,
Peter
Hello,
we just launch Madatidal.cz site, which is Django powered application
for simple home accounting.
Madatidal.cz is targeted to all people, which need to evidence personal
income/outcome in simply manner. You could enter records with any number
of tags, note, amount and date. All of this
It might be worth reading the wiki page on the Schema Evolution [1],
and if you're not using SVN, there is a patch [2] against Django 0.96
which implements schema evolution.
Other than that, you might want to look into dmigrate [3] (which I've
not personally used, so I'm not sure how mature it is
On 16 Sie, 01:52, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
(...)
> No, there isn't a logout method. However, if there were to be one,
> resetting the cookie is about all it would need to do. Deleting the
> old session would be another possible action, although it isn't
> absolutely require
Hi,
I am using a form_as_model with newforms and when I do a save I get
the following error message on the form:
format is %Y-%m-%d %H:%M:%S.
This occurs with the event_date field.
Can you someone point me in the right direction to help me resolve
this issue.
Here are snippets of my models an
Promote our site and you will be paid
The fastest way to get paid is our popular Pay Per Click program. Pay
Per Click earns you up to $1.00 per unique visitor per day, counted by
a unique IP address and tracked with your account number (GPID).
Earning cash is a no-brainer with our per member order
Oh. That's a real ouch. I really hoped I can avoid that.
Thanks anyhow.
--~--~-~--~~~---~--~~
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 un
On 8/16/07, Michael <[EMAIL PROTECTED]> wrote:
>
> Adding:
> return len(messages)
> to the TestSMTPConnection's send_messages method fixes the issue, but
> maybe there's a reason I'm not aware of for not doing so in the test
> framework?
No particular reason. I dummied up the interface, b
Hi,
I thought I'll post my problem here too. Maybe
someone had the same problem.
I tried to add the
usage_for_models()-function Era gave me into
django-tagging(into .../site-packages/django_tagging/managers.py).
I inserted it before the usage_for_model()
-function and restartet the dev-server and
I just wanted to check that what I'm seeing is actually an error
before submitting a ticket:
The SMTPConnection's send_messages method in django.core.mail returns
the number of mails sent on success, whereas the TestSMTPConnection
class in django.test.utils.py does not:
def send_messages(sel
On Aug 16, 3:40 pm, james_027 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Ask I have successfully try to run django apps on apache/mod_python/
> winxp, I learn that apache for winxp only support worker_mpm
Actually, it only supports 'winnt' MPM, although that is effectively
'worker' with only one proces
I have thought about it.
Both functions must be reimplemented completely:
The same actions can be made in one single line of code, using
Tag.objects.extra(select = ) construction with subquery.
On 15 авг, 15:12, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
> Thanks Era!
>
> On 8/15/07, Eratothen
On 8/15/07, MikeHowarth <[EMAIL PROTECTED]> wrote:
>
> Does anyone have experience of integrating django-cart in to an app?
>
> I've tried adding this to my project, however soon as I use runserver
> I get issues with the models:
>
> name 'Teacher' is not defined
>
> Anyone any idea?
Could you pa
I have looked at the link you have given me.
But I totally disagree, it looks like to me that the best order is
ConditionalGet
CacheMiddleware
SessionMiddleware
GZipMiddleware
But django dies and it is a bug in django. I have made bug report with
a patch
http://code.djangoproject.com/ticket/5176
73 matches
Mail list logo