> OK, I'm impressed. :-)
>
> Nice job thinking through all the things it might be and thinking of
> horses, not zebras.
>
> Malcolm
A happy confluence of unrelated events should get the credit tho: work
frustration turning into determination to be useful to someone and
discovering my new Dell ha
Hi Rubic,
On Mar 20, 5:18 pm, "Rubic" <[EMAIL PROTECTED]> wrote:
> On Mar 20, 4:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I have explained the technique with example code here:
> >http://code.djangoproject.com/wiki/TemplatedForm
>
> Very nice, Alex. You might consider adding
I am using 0.95.1 the latest stable version for Django
--MA
On Mar 20, 10:21 pm, "Matthew Flanagan" <[EMAIL PROTECTED]>
wrote:
> On 3/20/07, Mary <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > here is my search.py
>
> > from django.contrib.sites.models import Site
>
> > from stuff.search.helpers import
i persist in models.ManyToManyField so much so that i forgot this
method.
thank you Ivan.
--~--~-~--~~~---~--~~
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@goog
All,
Understanding that not everybody is in a position to immediately upgrade
their version of MySQLdb to the required 1.2.1p2 upon release of 0.96,
we have now committed a backwards-compatible MySQL backend to the
repository. This is called mysql_old.
If you really, really cannot upgrade the My
On 3/20/07, Scott Paul Robertson <[EMAIL PROTECTED]> wrote:
...
> I'm looking for suggestions of more features to emphasize/show-off. So
> what does everyone think? What features make Django such a great
> framework?
urlconf is actually one of my favorite features. It's been months
since I had t
On 21-Mar-07, at 8:07 AM, Scott Paul Robertson wrote:
> I'm looking for suggestions of more features to emphasize/show-off. So
> what does everyone think? What features make Django such a great
> framework?
one thing that you cannot overemphasise is that django is just
python. Many people for
Hi,
I'm checking a field's value againts related object and deciding
saving or not.
But I can't a way to inform user about save state.
Searched for way of "redirecting to error page" or "passing custom
error messages to admin templates" but found nothing.
(custom valitador is useless because fie
hello,
i have no handler404 defined in my application, so when a 404 is
raised the server returns internal server error and an error message
saying 'module' object has no attribute 'handler404' is written in to
the log. how to make it use the default 404 view?
i am running the current version fr
I'm giving a presentation on Django to two local Linux Users Groups in
the next month. I don't want to rehash the tutorial; I'd rather spend
time showing off why Django is cool and how to do interesting things
with it. Currently I want to talk about:
- Authenticate framework
- Generic views
you might need to have the mysql source files installed to get it to
work. I'm on debian so i can't give instructions for your distro.
On Tue, 20 Mar 2007 23:15:25 -, dbee <[EMAIL PROTECTED]> wrote:
>
> ImportError: this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql
> is version (
On Sat, 17 Mar 2007 17:02:43 -0400, Andreas Ahlenstorf
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm playing around with newforms and I like to give the labels of my
> required fields a special styling using CSS. For that I need a class
> attribute in every label. But until now I wasn't able to fi
Tired of manually updating your database schema after changing your
model classes? So was I! I wrote a tool called djschemadiff to
automatically compare your database's current schema to the schema that
would be produced if you started with a fresh, empty database and then
ran syncdb.
Currently it
Hi Guys and Gals,
I am currently trying to import a large amount of data held in flatfiles
into a database so that it can be displayed through Django. I am using the
most recent development version of Django. I found that a new method called
get_or_create, however I cant seem to get it to work as
UPLOAD FILIPNA SEX PICTURES & SEX TIPS AT
http://www.pinoysexguru.blogspot.com
--~--~-~--~~~---~--~~
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
On Tue, 2007-03-20 at 07:48 +, Caz wrote:
> Hi Lorenzo
>
> I suspect its not that you are uploading 2 files, but which files u
> upload.
>
> The line
> print "%s %s %s %s" % (k, new_data[k]["filename"],new_data[k]["content-
> type"], new_data[k]["content"])
> Will print the actual content of
On Mar 20, 8:48 am, "Caz" <[EMAIL PROTECTED]> wrote:
> Hi Lorenzo
>
> I suspect its not that you are uploading 2 files, but which files u
> upload.
>
> The line
> print "%s %s %s %s" % (k, new_data[k]["filename"],new_data[k]["content-
> type"], new_data[k]["content"])
> Will print the actual conte
System: Linux 2.6.9-34.0.1.EL #1 Wed May 24 07:40:56 CDT 2006 i686
athlon i386 GNU/Linux
OS: CentOS
Python: 2.3.4
Mysql: 5.0
I'm having lots of issues trying to get my django server up. It seems
that mod_python won't work on my system.
When I yum install mysql-python, the package installs fine,
On 3/20/07, chasfs <[EMAIL PROTECTED]> wrote:
>
> Thanks for the quick reply! Do you know if Django has been tested
> with MySQLdb
> 1.2.2?
Yes. 1.2.2 is the best version you can get. Trust me.
> On Mar 20, 11:20 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > On 3/20/07, chasfs <[EMAIL PROT
> have you found any solution?
Yes. I wrote my own FlatPage model with it's own middleware. Now the
URL can be empty and it represents the relative path counting from the
website root directory. The root directory is "/" on the public site
and "/someproject/" on the development site. The root dire
have you found any solution? i am interested in handling this
situation as well. would it be correct to say that the problem would
be solved if there was a way to access project settings from inside
flatpages?
On Mar 5, 12:44 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]>
wrote:
> We are developing
On 3/20/07, rubdabadub <[EMAIL PROTECTED]> wrote:
> Thank you very much for all the input. I found them to be
> very valuable. As for me I am back to python interactive shell i.e
> python -i
> Well you have to start somewhere :-)
Run, don't walk, to get IPython working.
http://ipython.scipy.org/m
Doug & James:
Thank you very much for all the input. I found them to be
very valuable. As for me I am back to python interactive shell i.e
python -i
Well you have to start somewhere :-)
Thanks again for all the comments and inputs. Very kind.
Regards
Raj
--~--~-~--~~~
On 3/20/07, Mary <[EMAIL PROTECTED]> wrote:
>
> here is my search.py
>
> from django.contrib.sites.models import Site
>
> from stuff.search.helpers import SearchDefinition
>
>
> class PageSearch(SearchDefinition):
> model_module = 'test.Unpublished_Pages'
> time_order_by = 'time_created'
>
On 20-Mar-07, at 8:08 AM, Todd O'Bryan wrote:
> I'm trying to use XChat to connect to the IRC channel, but I can only
> find #django-br and #django-fr on FreeNode.
>
> What am I stupidly doing?
#django is alive and well there
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.
Hi all,
I'm trying to do something, but before I start, I figure I'll pass it
on and see if anyone's already done something similar or has a better
method of accomplishing the same thing.
Let me know if the following sounds feasible or if there's a better
way of doing it:
Basically, I wan
Thanks for all the tips
I just want to know how the return result template will look like
So if any body can give me a small example i would really appretiate
Thank you in advance --
Mary Adel
:(
On Mar 19, 2:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Feb 22, 11:07 pm, "Mary" <[E
Thanks for the quick reply! Do you know if Django has been tested
with MySQLdb
1.2.2?
On Mar 20, 11:20 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/20/07, chasfs <[EMAIL PROTECTED]> wrote:
>
> > The problem is that the MySQLdb page says that 1.2.1p2 has no changes
> > that we should wor
Thanks everyone for the suggestions. I might have "over-done" my
solution, but it works and my colleagues, clients and myself are
satisfied. If you're interested, I use JSON to specify some settings
with should override those in settings.py. See http://gnuvince.net/?p=371
for more information.
On Mar 20, 4:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have explained the technique with example code here:
> http://code.djangoproject.com/wiki/TemplatedForm
Very nice, Alex. You might consider adding this code
to the djangosnippets.org site. FWIW, you can replace
the first 4 l
On 3/20/07, chasfs <[EMAIL PROTECTED]> wrote:
> The problem is that the MySQLdb page says that 1.2.1p2 has no changes
> that we should worry about. Why is p2 required?
Unfortunately, there is a change that we need to worry about: the
thread-safety bug in MySQLdb which caused ticket #3279[1] wasn
I just downloaded the latest trunk - it reports:
ImproperlyConfigured: Error importing middleware
django.contrib.sessions.middleware: "MySQLdb-1.2.1p2 or newer is
required; you have 1.2.1g3"
The problem is that the MySQLdb page says that 1.2.1p2 has no changes
that we should worry about. Why is
I am not sure if I want to take XML-RPC approach. In the future, I
may consider REST for Web Services API, like Flickr.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ivan Sagalaev schrieb:
> Paul Rauch wrote:
>> Template:
>> {% url cvh.view.login %}
>
> Here you have "view".
>
>> urlpatterns = patterns('mysite.cvh.views',
>> (r'^$','index'),
>> (r'^login/$','login'),
>> )
>
> And here you have "views". {% url
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't
> > work, it simply returns an empty list. Is it possible to do
On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> However, if I want more than one selected boxes, using a list doesn't
> work, it simply returns an empty list. Is it possible to do with
> Client or should I open a ticket and start working on a patch?
This problem is already reported
Hello everyone,
I have a page with a bunch of select boxes with the same name
("selected") and different values so that they are sent as a list to
the view. I can't figure how to test multiple selections with
django.test.client.Client however. This works for a single value:
self.client.post('/
On 3/20/07, Merric Mercer <[EMAIL PROTECTED]> wrote:
>
> Another observation after more investigation.
>
> I decided to do the following:-
>
> 1. Drop the table (again) from the DB.
> 2. Alter the Model in Django. This time I deleted one of the original
> fields named "rrp".
>
> Then:-
>
> 1. I
On 20/03/07, Nuno Mariz <[EMAIL PROTECTED]> wrote:
>
> The processing is nothing in special, right now a weblog and a online
> store.
> I've removed some modules, like fcgi, include and suexec(I can't
> remember the instalation of this modules ;) ) and the size of the
> processes is now 22Mb.
> Do
Another observation after more investigation.
I decided to do the following:-
1. Drop the table (again) from the DB.
2. Alter the Model in Django. This time I deleted one of the original
fields named "rrp".
Then:-
1. I re-ran syncdb. This confirmed the creating of a new table in the db
2.
This is a follow on from my previous email. Things have got even
stranger and unpredicable.
I dropped the table from the database and then ran syncdb to re-create
a completely new and empty db. However I STILL
cannot get the new fields to be recognized. All the previous fields
are available.
here is my search.py
from django.contrib.sites.models import Site
from stuff.search.helpers import SearchDefinition
class PageSearch(SearchDefinition):
model_module = 'test.Unpublished_Pages'
time_order_by = 'time_created'
search_fields = ('title', 'text')
I put it in one of my a
If you are using XML-RPC, then you should read this
http://effbot.org/zone/element-xmlrpc.htm
Mohammad Tayseer
http://spellcoder.com/blogs/tayseer
-
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
--~--~-~--~~
When I want to add a new field to a database, with existing data, I
normally don't have a problem as long as I follow these steps.
1. Alter the django model.
2. Manually adjust the database table ( mySQL)
3. Run syncdb
However, I used these steps this morning and it has not worked. The new
The processing is nothing in special, right now a weblog and a online
store.
I've removed some modules, like fcgi, include and suexec(I can't
remember the instalation of this modules ;) ) and the size of the
processes is now 22Mb.
Do you have KeepAlive On?
In my case did't solve the problem.
Also,
After some googling I found the solution myself.
For each branch of the same project I can set the following directives
in my Apache configuration:
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "sys.path+[r'/absolute/path/to/the/trunk']"
SetEnv DJA
On 3/20/07, Mary <[EMAIL PROTECTED]> wrote:
>
> Hi Mathew
>
> I really appreciate this diff patch it solves all the problem and now
> i am just facing one error in the search.py
> xception Value: No module named helpers
> Exception Location: /var/www/test.net/test/search.py in ?, line
On Mar 11, 7:11 pm, Frédéric Roland
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was discussing about layout of forms using CSS and heard that there
> was some tags such as fieldset, label and legend that should allow us to
> make the layout of forms without tables. Is there a reason these tags
> aren'
Hi Mathew
I really appreciate this diff patch it solves all the problem and now
i am just facing one error in the search.py
xception Value: No module named helpers
Exception Location: /var/www/test.net/test/search.py in ?, line 11
Do u have an idea why this could happened
hi Doug
T
Hi Andreas,
On Mar 17, 11:02 pm, Andreas Ahlenstorf <[EMAIL PROTECTED]> wrote:
> Setting a field asrequireddoesn't give me a 'required' class or
> something like that when using the built-in functions for form
> rendering (like as_p()). Passing an additional attribute to the
> widget works only
I've a moderatelly small apllication in production, that runs on FCGI,
instead of mod-python. From stress-tests it's prooven to be very fast
and responsive. FCGI is dynamically managed by Apache.
The memory footprint of my FCGI processes is around 12MB per process,
In addition, my Apache processe
hoamon wrote:
> Course|Trainee|Company
> C1| T1 | Com1
> C1| T2 | Com1
> C1| T3 | Com1
> C2| T1 | Com2
> C2| T3 | Com1
> C2| T4 | Com2
> C3| T1 | Com2
You really can't do it using standard ManyToManyField. The common way is
to create this r
52 matches
Mail list logo