patrickk wrote:
> I don´t want to stress your help, but do you know where to find an
> example on using a custom manipulator for *updating* data.
>
> question is, where does the custom manipulator gets the data (stored
> in the database) from.
> the way I did it so far:
> 1. using a changmani
Hey,
I'm basically trying to filter a foreign key (using limit_choices_to)
by an user (just like in this thread
http://groups.google.com/group/django-users/browse_thread/thread/8006b7e493ef877d/79d5c10c3abab725?lnk=st&q=limit_choices_to+threads&rnum=2#79d5c10c3abab725)
The model is quite simply,
On 22-Sep-06, at 1:47 AM, zehi wrote:
> Not sure what's wrong?
sudo python setup.py build install
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
I don´t want to stress your help, but do you know where to find an
example on using a custom manipulator for *updating* data.
question is, where does the custom manipulator gets the data (stored
in the database) from.
the way I did it so far:
1. using a changmanipulator to get and display the
On 9/21/06, Don Arbow <[EMAIL PROTECTED]> wrote:
>
> On Sep 21, 2006, at 1:17 PM, zehi wrote:
> >
> > Still not successfull
> >
> > When trying to install MySQLdb I'm getting this error:
> >
> > zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ python setup.py build
> > sh: line 1: mysql_config: comm
On Thu, 2006-09-21 at 15:54 -0700, [EMAIL PROTECTED] wrote:
> I am a newbee with django.
>
> I tried to run "python manage.py syncdb" on RHEL 4.0 Linux box and got
> the following. It looks like django did not have its lib path set
> correctly. Please advise on how I can rectify this problem.
I am a newbee with django.
I tried to run "python manage.py syncdb" on RHEL 4.0 Linux box and got
the following. It looks like django did not have its lib path set
correctly. Please advise on how I can rectify this problem.
Thanks in advance.
python manage.py syncdb
Traceback (most recent cal
patrickk wrote:
> well, now I´m totally confused.
> I though that´s exactly what custom manipulators are here for:
> "You can easily create your own custom manipulators for handling
> custom forms." (django documentation).
All manipulators handle forms:
- prepare initial data
- validate data
-
On Sep 21, 2006, at 1:17 PM, zehi wrote:
>
> Still not successfull
>
> When trying to install MySQLdb I'm getting this error:
>
> zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ python setup.py build
> sh: line 1: mysql_config: command not found
> sh: line 1: mysql_config: command not found
> sh: l
well, now I´m totally confused.
I though that´s exactly what custom manipulators are here for:
"You can easily create your own custom manipulators for handling
custom forms." (django documentation).
more below ...
Am 21.09.2006 um 22:47 schrieb Ivan Sagalaev:
>
> patrickk wrote:
>> flatten_da
ibson wrote:
> :|
> Apologiz for saying it worked!!! It doesn't work after some times even
> after restarting apache every 15 minutes!!!
> So the question is always there. And it seems I am not the only to hav
> this problem
Yep. I've also a problem with this, but for me it's simply doesn't work
patrickk wrote:
> flatten_data() doesn´t relate to the custom manipulator but to model
> resp. the changemanipulator.
I see now... And if I'm guessing correctly you're creating a FormWrapper
from user_profile_manipulator that just doesn't have that checkbox field.
Anyway making two manipulato
flatten_data() doesn´t relate to the custom manipulator but to model
resp. the changemanipulator.
btw, the table we´re talking about is extending the user model, it´s
a one-to-one relation - but I guess that shouldn´t be the problem.
i just reinstalled the whole project, generated all the tab
Still not successfull
When trying to install MySQLdb I'm getting this error:
zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ python setup.py build
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_config: command not found
sh: line 1: mysql_
patrickk wrote:
> are there any workarounds?
> I´m still not able to save and retrieve the m2m-data. and since I
> have to meet a deadline I´m getting kind of nervous.
In your view code you use flatten_data() but I can't see it defined in
your custom manipulator. This must raise an exception b
Would anyone be willing to share the important bits of code required to
use the progress bar included in UploadProgress.js from the 2070 patch?
I've never done anything with ajax before and am a little lost on how
this is supposed to work.
Thanks!
Jacob
--~--~-~--~~~--
On 9/21/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote:
> Hm, I used that. I can print new_data.getlist('courses') and get the
> list, but when I try to assign it to a variable for writing, I get
> "'str' object has no attribute '_get_pk_val'"
>
> However, this only happens when I do new_profile.s
Found this thread on the same topic
http://groups.google.com/group/django-users/browse_frm/thread/7a2d69fa8748ba68
..but it got closed.
I want to do the same things as the OP in that thread:
> I've recently completed a first milestone of a project and want to
> publish it. I've got two URLs: www
Let me refrase this.
When having DEBUG = True in settings.py I'm getting django's nice 404
error pages. However, when I switched DEBUG to False I started getting
the above traceback. I was expecting to start getting the contents of
the 404.html template I wrote.
What am I missing?
regards,
Filipe
I'm preparing to make a case for switching many of my library's
stupendously fugly JSP applications to Django. There are many selling
points to Django (ease of use, speed, etc.)
However, there's one point that I'd like more information on:
Security. Although I know that Django has a great t
:|
Apologiz for saying it worked!!! It doesn't work after some times even
after restarting apache every 15 minutes!!!
So the question is always there. And it seems I am not the only to hav
this problem
--~--~-~--~~~---~--~~
You received this message because you ar
thanks for your help (especially ivan).
are there any workarounds?
I´m still not able to save and retrieve the m2m-data. and since I
have to meet a deadline I´m getting kind of nervous.
thanks,
patrick
Am 21.09.2006 um 16:52 schrieb Ivan Sagalaev:
>
> Aidas Bendoraitis wrote:
>> Has your Mus
DavidA escreveu:
> You build up a dynamic "and" query with a term for each checked box in
> the UI. Then you use that compound query to filter your model objects.
>
> Now that I think about it, since this is an "and" you could also do:
>
> def my_view(request):
> query = {}
> for i in
Problem verified.
It may be that the file is parsed as text and not a file somehow.
So fieldstorage does not make a temporary file.
Got no solution so far. :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
That gives me an error in the admin:
(1054, "Unknown column 'page_text._order' in 'order clause'")
My case is almost identical to the example in the documentation:
class Text(models.Model):
page = models.ForeignKey(Page, db_index=True,
edit_inline=models.STACKED)
# ...
class Meta:
On 9/20/06, John DeRosa <[EMAIL PROTECTED]> wrote:
[snip]
>
> It seems a little screwy for a file in a directory called "sqlite3" to
> do an import from "pysqlite2". But that's what it does.
>
What you need to realize is that "sqlite" refers to the database,
while "pysqlite" are the python bindi
On 21-Sep-06, at 6:28 AM, zehi wrote:
> Not sure how to install MySQLdb . for OS X 10.4
>
> I am following "Installing Django on Mac OS
> X" word by word, but still can't get things run.
>
> Somebody have some experience?
Hi zehi,
Bob Ippolito built an OS X package for MySQLdb. You can get it
Aidas Bendoraitis wrote:
> Has your Music model a __str__ method? Maybe you get nothing using {{
> form.music }} because it is represented in no way.
In fact {{ form.music }} has nothing to do with the model itself. It's a
manipulator's field and should be represented as a group of
checkboxes
On 9/21/06, zehi <[EMAIL PROTECTED]> wrote:
>
> Thank you guys,
>
> Last login: Thu Sep 21 13:33:04 on ttyp1
> Welcome to Darwin!
> zehi:~ zehi$ python
> Python 2.4.3 (#1, Mar 30 2006, 11:02:15)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "lic
Has your Music model a __str__ method? Maybe you get nothing using {{
form.music }} because it is represented in no way. Have you tried {{
form.music.title }} or similar? As far as I know, instance.music_id
refers to the id of the related object whereas instance.music refers
to the object itself.
On 9/21/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
> courses = new_data.getlist('courses')
Hm, I used that. I can print new_data.getlist('courses') and get the
list, but when I try to assign it to a variable for writing, I get
"'str' object has no attribute '_get_pk_val'"
However, this onl
Thank you guys,
Last login: Thu Sep 21 13:33:04 on ttyp1
Welcome to Darwin!
zehi:~ zehi$ python
Python 2.4.3 (#1, Mar 30 2006, 11:02:15)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (mos
> raise ImproperlyConfigured, "Error loading MySQLdb module:
> %s" % e django.core.exceptions.ImproperlyConfigured: Error
> loading MySQLdb module: No module named MySQLdb
Your python installation lacks the python-module name 'MySQLdb'
to access MySQL databases.
If you were on Debian, you w
Hello Gabriel,
Instead of
courses = new_data['courses']
use
courses = new_data.getlist('courses')
The "courses" is not a string, but a class similar to a list type (I
don't remember the name of that class). The last item of that list is
the representation of that class. Therefore, you see 2 if so
On Thu, 2006-09-21 at 11:47 +, zehi wrote:
> Hi,
>
> I am Django newbee as well as getting familiar with MySQL and Python
> itself. I use OS X 10.4 and I amtrying to follow Django tutorial. I am
> testing everything on Django testing server.
>
> I have a problem with settings.py. Django is i
On Thu, 2006-09-21 at 06:42 -0500, Gabriel Puliatti wrote:
> On Thu, 2006-09-21 at 06:30 +, pflouret wrote:
> > try this:
> >
> > new_profile = UserProfile(user=new_user, permissions=permissions)
> > new_profile.save()
> > new_profile.courses = courses
> > new_profile.save()
>
> Tried that.
And here is how looks settings before running syncdb.py
zehi:~/mysite zehi$ vi settings.py
# 'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'djang
Hi,
I am Django newbee as well as getting familiar with MySQL and Python
itself. I use OS X 10.4 and I amtrying to follow Django tutorial. I am
testing everything on Django testing server.
I have a problem with settings.py. Django is installed properly, I
guess. When di import django I have no e
> error" (status code 500) is the right error to be returning here. Don't
> worry about that; it's doing the right thing.
well yeah.. from my POV the "right" thing would be to not show these
errors at all and rather work as expected :(
--~--~-~--~~~---~--~~
You r
On Thu, 2006-09-21 at 06:30 +, pflouret wrote:
> try this:
>
> new_profile = UserProfile(user=new_user, permissions=permissions)
> new_profile.save()
> new_profile.courses = courses
> new_profile.save()
Tried that. Failed with "'str' object has no attribute '_get_pk_val'".
--
No violence, g
On Thursday 21 September 2006 05:44, John DeRosa wrote:
> Oliver Andrich wrote:
> > Hi,
> >
> > I am running Django 0.95 . And so far I can't see any problems.
>
> How'd you do it?
>
> I'm on Windows XP. I installed Python 2.5 from python.org without a
> problem.
>
> But then I found that
Also, you could setup things like "www2." and "media2." subdomains and point their DNS A records to the new site (and configure the new hosting account to handle them).
On 9/21/06, keukaman <[EMAIL PROTECTED]> wrote:
Thanks Ian. I continue to be impressed with this group and how helpfuleveryone is.
Timothy Kesten wrote:
> Hi Folks,
>
> sorry for this mail but I 've been getting no any Mail on this list since end
> of august. That's why I try this.
Yes, there's something going on with the spamfilter. My posts, but if u
see this it's only if i'm the OP, get caught by the spamfilter somehow.
You may check http://www.djangodomain.com as well.
--~--~-~--~~~---~--~~
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 gro
Seems I have found small bug in core/handlers/modpython.py.
Namely request.META["SERVER_PORT"] under apache is always set to 0.
This is because its set to self._req.server.port in modpython.py line
88.
mod_python's docs say
(http://www.modpython.org/live/current/doc-html/pyapi-mpsrv-mem.html#l2
45 matches
Mail list logo