Thank you for your answer Ian.
Then I dropped the models for which there is no id (in fact I don't
need them).
I also removed these apps to prevent dumpdata from trying to read the
related tables (which does not exists in the source Oracle DB):
'django.contrib.auth',
'django.contrib.cont
Hello again,
I've tried dumpdata after having copied back my tweaked models.py to
the Oracle powered Django project.
After 1 minute of intensive CPU activity this message appears:
D:\test>python manage.py dumpdata test
Traceback (most recent call last):
File "manage.py", line 11, in
exec
Hello,
I need to migrate a DB schema and data from Oracle to MySQL.
How would perform that :
1) Using Oracle SqlDevelopper migration tool ?
2) Using MySql migration tool ?
3) Using inspectdb/syncdb ?
4) ?
I've already tried inspectdb/syncdb with some apparent success by
tw
Yes, me too.
I am desperately seeking this kind of job offering here in southern
Europe.
I hope it will happen before I retire (if I am not already too old).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Hello,
I can't remember if it is possible or not.
Is possible to have a different name for my projects in the admin Site
Management panel ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
Ross,
in fact there was an error, but it didn't catch my eyes.
You should make it more visible.
Nice work anyway,
Olivier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
ample)
- PyUno API (to automate document opening and exporting)
- very good performance
Feel free (of charge) to ask question ;-)
HTH,
Olive
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
Hi Ross,
I've tried to add my site but I don't know if it succeed or not.
After having click on "Add site" the form displayed again without any
success or failure message.
Olive.
--~--~-~--~~~---~--~~
You received this message because you a
Malcom,
I don't see any bound_data attribute.
Can you give me an example please ?
I'm using 0.96 by the way.
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
Hi,
This returns True:
f = myform(data)
f.is_valid()
while this returns False:
f = myform()
f.data = data
f.is_valid()
Is it a bug ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&q
Thanks Malcom.
Please forgive me, it is friday and working with Django is equally
entertaining and tiring.
Have a good WE,
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi,
Is it possible to do something like:
f = myForm()
...
f.someMethod(myData)
Instead of:
f = myForm(myData)
?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On 16 mai, 08:25, Margaret <[EMAIL PROTECTED]> wrote:
> Undefined from import:objects
> may you need to config your path.
I guess yes, but how ?
These directories are already in my path: django and my_project.
What else ?
Olive.
--~--~-~--~~~---~
Hi,
this is a question for Pydev/Django users.
Do you have this problem (see subject) ?
Do you know how to solve it ?
Thx,
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
Ticket is #3877.
I did not found a way to assign the ticket to you Malcom.
It has been assigned to Hugo.
On 30 mar, 08:53, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-03-30 at 01:43 -0700, olive wrote:
> > Hello,
>
> > Here is how I define a form
.
I tried both
from django.utils.translation import gettext_lazy as _
and
from django.utils.translation import gettext as _
Any idea ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
OK, I need dict(request.POST)[''countries'] !
But why ?
On 29 mar, 17:03, "olive" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> This is the request.POST I get from a (new)form:
> ['Register'], 'countries': ['DE', '
Hello,
This is the request.POST I get from a (new)form:
No I want to have the 'countries' list but request.POST[''countries']
gives me 'ES' instead of the entire list.
WHY ?
Do I really to go home now ?
Olivier.
--~--~-~--~~~---~--~~
You received this messag
It depends on what you mean by integrate ...
I'm currently developping a Django/JQuery app and it is desperately
easy.
All you have to use on a django side is something like this:
from django.utils.simplejson import dumps
def myView(request):
myQuerySet = myFunctionToBuildMyQuerySet(reques
Thank you Patrick and Gábor,
Here is my final view (tested with Django HTTP server, FireFox 2.0 and
IE6.0):
from django.shortcuts import HttpResponse
from wabe.body.models import Section
from django.utils.simplejson import dumps
def loadcontent(request):
post = request.POST.copy()
sectio
.. and this the way I've done it in the mean time:
json = '['
for co in section.contentsorder_set.all().iterator():
if json != '[':
json += ','
json += '{"content": "'+co.datacontent.content+'", "type":
"'+co.datacontent.type+'"}'
json += ']'
Time to write
uot;: "hdg"}},{"pk": "2", "model":
"body.datacontent", "fields": {"content": "Para 1", "type": "par"}}]'
Then "Heading à 1" is properly displayed in the bro
This is a question you should also ask to openlaszlo.org users.
Openlaszlo is a framework which helps in building rich Flash GUI in a
XUL fashion.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
You are right Malcolm,
My project's PYTHONPATH was not set and Eclipse global one was pointing
to an old Django version used by another project.
Now all is OK.
THX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Fabio,
I'm using Django 0.95 and the console says :
manage.py: error: no such option: --noreload
Do I need a fresh SVN copy ?
Olivier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
I have checkd out the code from scratch (now it is 3275) but the
problem remains.
I suspect that something is wrong in my model since 3085 but I can't
figure out what.
Please help !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Hi,
there is no problem using the database in place.
The problem occures when I try to create the database from scratch:
mysql -uroot -p%passwd% -e"drop database %database%"
mysql -uroot -p%passwd% -e"create database %database%"
python manage.py syncdb
Creating table auth_message
Creating tabl
None of the documented method works for me:
The only way I found to make it works (affter having suffered a lot)
is:
MyRelatedModel.objects.all().extra(
select={'my_field':
'SELECT my_field
FROM myapplication_mymodel
WHERE myapplication_mymodel.id =
myapplication_myrelatedmodel.mymodel
This works perfectly well for me
--~--~-~--~~~---~--~~
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 email to
b63mr120206cwa;
Mon, 22 May 2006 04:36:43 -0700 (PDT)
X-Google-Token: dInXoAwZQ3UF9oa_yW-X-DGCv1c9
Received: from 193.5.93.24 by j33g2000cwa.googlegroups.com with HTTP;
Mon, 22 May 2006 11:36:43 + (UTC)
From: "olive" <[EMAIL PROTECTED]>
To: "Django users"
have only one administrator named admin. It should be possible
to improve this template to make it more generic.
- this also assume that the model provides an admin field which is a
ManytoMany (or ForeignKey) to Django User model. Maybe there is way to
detect
I use TinyMCE which is very good.
There is an how-to in the Wiki at
http://code.djangoproject.com/wiki/CookBookAdminTools
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Thank you very much Malcom.
Olive.
--~--~-~--~~~---~--~~
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 g
For now I am going to use:
context["app"] = [app for app in Application.objects.all() if
app.docchunk_set.count() == 0]
Is it really the ony solution for that problem ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscri
(1109, "Unknown table 'application_screenshot' in where clause")
C:\soft\python24\Lib\site-packages\MySQLdb\connections.py in
defaulterrorhandler, line 33
Is it a bug ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subs
:
context["app"] =
Application.objects.filter(screenshot__id__isnull=True)
or
context["app"] =
Application.objects.exclude(screenshot__id__isnull=False)
Why ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
in list of Applications, all the existing users appears under
'administrator' and 'authors' list filters.
Question: is here a way to show only the users who are effective
administratrors (set as group_admin for at least on app) or authors (in
others word: filter options which
two locations where submit_row tag is called, then you will
have to define two different blocks (hidesubmittop and hidesubmitbot
for example) and repeat yourself (oops, no, no, use an include tag
instead)
HTH
Olive.
--~--~-~--~~~---~--~~
You received this message becaus
+1 for python-hosting
My possible contributions:
- on-the-fly PDF invoice creation using ReportLab (or another PDF lib
?)
- Advertising management
- links with others Web Services (Amazon ...)
- The Shop as Web Service ...
...
--~--~-~--~~~---~--~~
You received t
I'm currently working on rewriting a store (for my wife too;) I have
originaly wrote in OmniMark language (isn't it exotic ?).
It is pretty straightforward with Django, I have already achieve the
shopping cart management, user registration, shipping (Chronopost,
France), discounts.
But the model
I'm currently working on rewriting a store (for my wife too;) I have
originaly wrote in OmniMark language (isn't it exotic ?).
It is pretty straightforward with Django, I have already achieve the
shopping cart management, user registration, shipping (Chronopost,
France), discounts.
But the model
I totally agree with Glenn.
Every day I suffer of the lack of example in the Python doc.
It would be great that Django does it better.
Olivier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group
Ticket #1621
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
F
Hi,
when your uncollapse the first time then the right list show only one
entry (in fact it is a dropdown at this stage).
If you save without performing any other operation before, then only
the shown entry will saved in the database (others entries will be LOST
!).
I you move one or more entry
Here it is:
{% ifequal user.username 'admin' %}
{% submit_row %}
{% else %}
{% if original.admin %}
{% for a in original.admin.all %}
{% ifequal user.username a.user.username %}
{% submit_row %}
{% endifequal %}
{% endfor %}
{% endif %}
{% endifequal %}
Maybe I
Me again.
Now I know that the object data in context is {{ original }}
How can I test in my the template that user object is a member of the
original.admin set ?
Olivier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Hello Django experts,
I'm trying to hack admin/change_form.html (do I need to hack the
corresponding view too?) to make Save options (submit_row tag in
admin/change_form.html) disappear if one of the user related to the
object being saved is different than the logged in user.
The problem is that
Bryan,
this won't work either, because when you try to save the user using
admin you will have this kind of error:
Request Method: POST
Request URL:http://localhost:8000/admin/auth/user/40/
Exception Type: TypeError
Exception Value:Cannot resolve keyword 'name' into f
OK, you do, not the original poster.
Anyway, I've heard that subclassing has been improved in MR.
Why don't you use that instead ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
No, an up to date svn trunk.
--~--~-~--~~~---~--~~
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 email to [EM
Strange, OneToOne works pretty well for me to extend User model
(I would prefer to subclass but without having new database tables).
On the contrary, I had many problem with OneToOne to extend my own
model(s),
I use ForeignKey with intermediary model and Inline Edit instead.
hth
--~--~
Hi Ross,
this is the way (simplified) I do with a generic view:
Url:
(r'^app/$', 'project.app.views.index'),
View:
---
from django.views.generic import list_detail
def index(request):
return list_detail.object_list(request, 'app', 'module',
extra_context = {"region": request.s
This works for me:
(r'^mymodule/update/(?P\d+)/$',
'django.views.generic.create_update.update_object', dict(mymodule_info,
post_save_redirect="/mymodule/%(id)s/")),
But I have another problem: how to redirect to this page after updating
a related object.
for example:
(r'^myrelatedmodule/update/
Hi Sam,
This works for me:
(r'^mymodule/update/(?P\d+)/$',
'django.views.generic.create_update.update_object', dict(mymodule_info,
post_save_redirect="/mymodule/%(id)s/")),
But I have another problem: how to redirect to this page after updating
a related object.
for example:
(r'^myrelatedmodul
Its OK now.
Thanks Robert and Kenneth
Hello,
I have updated Django from svn today and this is the message I get when
I try to display an item update admin page:
'block' tag with name 'extrahead' appears more than once
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/events/events/1/
Exception Type: Tem
Thanks Georg,
The referer method did the trick.
Olivier.
I would like to add that a link to the login/registration form appears
on each page of my site (i.e defined in base.html)
Hello,
login and registration may requires several steps/forms/pages to
complete.
How do I redirect, after login registration completion, to the last
page visited before the first login/registration page ?
Do I need to save each visited page (request.path) to the session ?
If this is the way t
Hello,
I'm quite perfectionist and I do have a deadline for my project !
But authentication is a little bit hard and not so well documented.
Here is my view (see comments please):
class UserRegManipulator(formfields.Manipulator):
def __init__(self):
self.fields = (
form
It is OK now.
Thanks a lot.
Bye, Olivier.
Bingo!
There is no problem with en, but with fr ...
Olivier.
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/jsi18n/
Exception Type: KeyError
Exception Value:''
Exception Location: C:\soft\django_src\django\views\i18n.py in
javascript_catalog, line 156
Traceback (innermost last)
C:\soft\django_src\django\core\han
>have you removed your .pyc files after svn up?
yes
>heck the source of the HTML pages wether there is a reference to the script
>library in there and wether the path is correct
The looks strange:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="fr" xm
Georg,
I did not overload any admin template.
The problem appears the last time calendar.js and DateTimeShortcuts.js
have been updated by svn up.
Do I need to add a parameter in the corresponding model meta.Admin ?
Olivier.
Hello,
While gettext is in the PATH, I get the following javascript errors
browsing an admin page with calendar and DateTime widgets:
Erreur : gettext is not defined
Fichier source : http://127.0.0.1:8000/media/js/calendar.js
Ligne : 26
Erreur : gettext is not defined
Fichier source :
http://12
Georg,
it works only if I remove the r from the parameter at lines 78, 94 and
103.
Olivier.
PS: I have downloaded the win32 version of gettext from sourceforge.
Hello,
C:\soft\Python23\Lib\site-packages\sonikete>make-messages.py -l fr
processing language fr
Traceback (most recent call last):
File "C:\soft\django_src\django\bin\make-messages.py", line 78, in ?
(stdin, stdout, stderr) = os.popen3(cmd, 'r')
ValueError: popen3() arg 2 must be 't' or 'b
Thanks a lot
Many thanks to everyone.
Hello,
svn update done on 11/29
ADMIN_MEDIA_PREFIX = '/media/'
tiny_mce directory copied in
C:\soft\django_src\django\contrib\admin\media\js
MODEL:
from django.core import meta
from django.models.contacts import contacts
class Place(meta.Model):
name = meta.CharField(maxlength=200)
ci
Hello,
when I try to access the admin site Django is complaining aout missing
adminmedia.py which is true.
There is a adminmedia.pyc instead.
svn up does not retrieve the file.
Debug message is:
AttributeError at /admin/
'module' object has no attribute 'register_tag'
Tequest Method:
72 matches
Mail list logo