take a look at that discussion:
http://groups.google.com/group/django-users/browse_thread/thread/1de89cdee99b1086
lerner wrote:
> def output(request):
> response = HttpResponse(mimetype='text/csv')
> response['Content-Disposition'] = 'attachment; filename=%s' %
> 'address.csv'
> t = l
On Aug 26, 7:19 pm, Arul wrote:
> I did the same steps that you followed, it didnt work for me.
> But when i tried in another system it works fine.
> Probably there is some problem with my system settings.
I found the problem in my machine.It is the version problem.
In django 1.0.2 it was not
Let's say I have a model and an associated ModelForm and am doing the
typical save of the ModelForm to modify the instance. I'd like to
generate a report that identifies what fields were changed and what
the old and new values were. I initially did this by doing a deepcopy
of my instance, then s
Thank you very much , I got it
On Wed, Aug 26, 2009 at 6:07 PM, Daniel Roseman wrote:
>
> On Aug 26, 6:55 am, Apple wrote:
> > hi , now I want to pass a parameter named user (user is a instance of
> > User) to the self_defined tags,could I do this ? I think the passed
> > parameter are all strin
On 26 Aug 2009 03:58:58-0700, Nanopino wrote:
>
> i've actually have semi success in getting django to work on godaddy.
> It displays the "Congratulations on your first Django-powered page."
> You will have to be signed up for the linux shared hosting Deluxe or
> higher plan in order for fastcgi t
Where did you get the files?
if you go to the pyfacebook at google
http://code.google.com/p/pyfacebook/the project is now hosted in
github.
So if you downloaded from google it may be outdated.
The installation is much more simpler than what the tutorial says, so i
recommend to download from http://
Assume i have the following:
class Image(models.Model):
image = models.ImageField(upload_to="path/to",
width_field="width", height_field="height"
do i create new Integer fields there for width and height? With this
i can do things like:
>>> Image.objects.get(pk=1).image.width
However this
steps followed here:
http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial
page with error is here:
http://kennethdavid.net/fbapp/fbsample/
obviously, python.conf is setup correctly to call the correct settings
file. facebook is a link (ln -s) to /pyfacebook/facebook, as per
i
def output(request):
response = HttpResponse(mimetype='text/csv')
response['Content-Disposition'] = 'attachment; filename=%s' %
'address.csv'
t = loader.get_template('csv.html')
#objs = Address.objects.get_list()
objs = Address.objects.all()
d = []
for o in objs:
2009/8/27 mettwoch :
>
> I'm now using Foxit Reader. Thanks for the tip. The following works
> perfectly in the Django shell and prints the document in
> attachment.file.path to the specified network printer:
>
> p = Popen (['C:\\Program Files\\Foxit Software\\Foxit Reader\\Foxit
> Reader.exe',
>
Hi - need some suggestions.
I am trying to put together an app that allows users to submit links
to videos at popular video sharing sites (e.g., youtube, vimeo, etc)
-- the links get submitted, data about the video (title, description,
play count, etc) is collected from the respective site and po
Hi again. Sorry to disturb you again, but I ran into another issue
related to this template tag I wrote.
I get the following error:
TemplateSyntaxError at /
Caught an exception while rendering: Truncated incorrect DOUBLE value:
'user'
I am not sure what it means exactly, but I beleive the erro
HI guys. I was trying to configure my django project in a subdirectory
of the root, but didn't get things working.(Locally it works perfect).
I followed the django official django documentarion to deploy a
project with mod_python. The real problem is that I am getting "Page
not found" errors, when
Thanks Karen you've been helping me out recently with debugging a few
things and have been a really great asset.
Cheers,
Ryan Kaskel
On Aug 26, 7:19 pm, Karen Tracey wrote:
> On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote:
>
> > This is where it says the problem is in the template:
>
> > Templa
I'm getting the same problem. --Using tinymce and FF3.5.
If you find a good fix, I hope you share! Cheers!
Alastair Campbell wrote:
> Ok, I think I got to the bottom of this, it's a combination of TinyMCE
> and Firefox 3.5
>
> Unfortunately my Firebug expertise isn't that great, but with a fe
On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote:
>
> This is where it says the problem is in the template:
>
> Template error
>
> In template /usr/local/lib/python2.6/dist-packages/django/contrib/
> admin/templates/admin/base.html, error at line 30
> Caught an exception while rendering: unsupported
State in admin rendering process when error occurred:
/usr/local/lib/python2.6/dist-packages/django/template/debug.py in
render_node
74. e.source = node.source
75. raise
76. except Exception, e:
77. from sys import exc_info
78. wrapped = TemplateSyntaxError(u'Caught an exception while
Hello all. I'm wondering how I can tell Django to use
MySQLdb.cursors.SSCursor instead of the default MySQLdb.cursors.Cursor. The
critical difference here is that SSCursor uses mysql_use_result and streams
data from the server rather than loading it all into memory at once.
Anybody know if that's
Hi,
I have many applications in my project. I've carefully translated them
launching manage.py makemessages from within each application
directory, so that each app has its own locale/ directory with
translations.
When it comes to translating project-level strings, and I launch
makemessages from
On 08/26/2009 03:52 PM, Dirso wrote:
> I'd like to create a dynamic treelist (using Ajax, Django and
> Postgres). Did anyone know tutorial ou code piece that could do this
> magic?
>
>
Hi Dirso,
I've done something similar to what you are describing, using jQuery,
the dynatree jQuery plugin,
Sorry :o)
My fault. I was testing on the wrong site :o) It works perfect with
this:
def render(self, context):
try:
context[self.varname] = Blog.objects.get(user=self.user)
except ObjectDoesNotExist:
return "
Hi, I want display in change_list view, user who added an object and date. I
did that:
-- models.py ---
class One(models.Model):
..
def user(self):
return self.user.username
def date(self):
return self.date
-- admin.py --
Hi again. I tried that. But it doesnt change anything.
Here is what I tried:
class BlogNode(Node):
def __init__(self, user, varname):
self.user, self.varname = user, varname
def render(self, context):
try:
context[self.varn
I'm having trouble getting the admin javascript to function in production
(debian/apache2). I've tried creating a sybolic link in the django root
folder, and using a location Alias in apache, but the result is the same.
Admin css files load, images load, and you can view the js files, but they
do
I'm having trouble getting the admin javascript to function in production
(debian/apache2). I've tried creating a sybolic link in the django root
folder, and using a location Alias in apache, but the result is the same.
Admin css files load, images load, and you can view the js files, but they
do
On Wed, Aug 26, 2009 at 2:20 PM, zayatzz wrote:
> Correct me, if im wrong, but as i understand that the
> more rows there is in a table, the slower aquiring stuff from it will
> be, right?
wrong
any RDBM worth its salt can go to tens or hundreds of millions before
you feel it. granted, of cours
Hi,
I'd like to create a dynamic treelist (using Ajax, Django and
Postgres). Did anyone know tutorial ou code piece that could do this
magic?
Thanks,
Dirso
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
This is where it says the problem is in the template:
Template error
In template /usr/local/lib/python2.6/dist-packages/django/contrib/
admin/templates/admin/base.html, error at line 30
Caught an exception while rendering: unsupported operand type(s) for
+=: 'function' and 'list'
20
21
You can:
1) redefine your sa models in django models.py
2) use sqlalchemy-migrate for database migration and initial data
population, I never used json for initial data with migrate
drakkan
On 26 Ago, 17:29, ajay wrote:
> HI,
> I have used sqlalchemy for database model creation instead dja
Hello
I'm just as big django newbie as im mysql (or any other sql, for that
matter) newbie. Correct me, if im wrong, but as i understand that the
more rows there is in a table, the slower aquiring stuff from it will
be, right? Since i have an idea, that (if its successful) will
eventually hold hu
I am getting a very strange error and I can't tell if it is coming
from my code or Django's code. I have not modified the templates of
the admin interface at all. Below is the error. I am trying to access
http://localhost:8080/. This error still occurrs if I remove all apps
from the install apps l
Hey Guys, you think there is a way to integrate a ListServ from Google
Group into the admin of django?
I have a neighborhood website and we are working on the member
directory, paypal integration for dues but the only thing outside of
the admin is this Listserv and it would be amazing to get it
i
stevedegrace wrote:
> Variables you bind within the template itself don't seem to behave
> this way.
>
> Instead they are scoped. If a variable is bound inside a block tag,
> the binding is only valid within that block. I didn't do enough
> experiments yet to tell you how it behaves with nested
On Wed, Aug 26, 2009 at 9:43 AM, Sandra Django wrote:
> I have a group, where all users that belongs to this groups only can access
> to a form, and I want that when anyone is logged, go directly to that form,
> not to Django view by default. How I can do it? Depending on the group,
> return that
I'm now using Foxit Reader. Thanks for the tip. The following works
perfectly in the Django shell and prints the document in
attachment.file.path to the specified network printer:
p = Popen (['C:\\Program Files\\Foxit Software\\Foxit Reader\\Foxit
Reader.exe',
'/t',
attachment.fil
On Aug 26, 4:14 pm, gentlestone wrote:
> I'm looking for a support for viewing models in templates.
>
> Forms is a nice support but it is made for editing objects, not for
> viewing objects. I found some attemps on the internet, like using
> forms with ReadOnlyWidgets, but I thing it is not the w
Hi Wendy, sorry for the delay.
On 23 aug, 04:43, zignorp wrote:
> Then in the admin.py file for films, which lives inside of mysite, I
> added the media subclass, which I was told to do by some other helpful
> person on the list, I used the absolute path, on my mac, which is the
> one that sho
HI,
I have used sqlalchemy for database model creation instead django
default ORM.
Now i need to use fixture to load the initial data as i run test
cases.
This is error message "DeserializationError: Invalid model
identifier:"
The models are not defined in models.py file as i am us
Thanks but it seems that in this example (if I have understood
correctly) it loads the entire request into memory. I need to convert
stuff on the fly using streams on both input and output as both may be
huge. I have a number of stages of transformation and it wouldn't take
very many requests to b
I'm looking for a support for viewing models in templates.
Forms is a nice support but it is made for editing objects, not for
viewing objects. I found some attemps on the internet, like using
forms with ReadOnlyWidgets, but I thing it is not the way.
Forms are great, because a template-designer
Hi friends, another doubt...
I have a group, where all users that belongs to this groups only can access
to a form, and I want that when anyone is logged, go directly to that form,
not to Django view by default. How I can do it? Depending on the group,
return that form.
Thanks for any help,
Sandra
When I have arrays of 100,000+ the performance of lists gets
unacceptable in standard c python. That's why arrays exist in python!
After doing research and testing, I have decided to rebuild the
project in java with embedded jython. For some bizarre reason jython
performance increases with large
This is a wrapper function and some instructions for enabling caching
of the /jsi18n/ javascript string catalog: http://wtanaka.com/django/jsi18ncache
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
Thanks a lot Karen.
I did the same steps that you followed, it didnt work for me.
But when i tried in another system it works fine.
Probably there is some problem with my system settings.
Thanks,
Arul
--~--~-~--~~~---~--~~
You received this message because you are
I wrote a little concentration game in Django and put it up on Google
App Engine:
http://matt-scratch.appspot.com/
I'm sure there are some awkward places in the code where I could
leverage Django better. If anyone is curious and would like to
comment or make suggestions, the source code (Django
On Wed, Aug 26, 2009 at 9:11 AM, Arul wrote:
>
> I tried with reopening the command prompt after setting the path via
> GUI and
> also I tried with setting the path in the active command prompt, but
> it didnt work.
> Anyway if i give "sqlite3" in the command prompt, it gives me the
> sqlite prom
On Aug 26, 5:08 pm, Karen Tracey wrote:
> That's how to do it. Note that changing the system path via the GUI does
> not affect already-open command prompts so you will need to open a new
> command prompt or manually do the path update in the command prompt you are
> using also.
I tried with
Jannis Liedel writes about a great widget for FK fields
http://jannisleidel.com/2008/11/autocomplete-form-widget-foreignkey-model-fields/
I manged to get it to work on one site, but not on others.
Widget uses admin search functionality through url:
/admin/app/model/search/?
q=foo&search_fields=m
On Aug 26, 12:11 pm, Gath wrote:
> Guys,
>
> Am going through the practical django book and am trying the weblog
> application in Chapter 4, but when i go to test the application on my
> cms application (that i created from the same book, from Chapter 2 &
> 3) "coltrane" application does not appe
On Wed, Aug 26, 2009 at 6:49 PM, Peter2108 wrote:
>
> I'm trying to help fix but #6138. I've done a patch for the code and a
> separate test.py module. But someone ('Alex') added a request to
> "Please put the tests in the same diff as the patch itself, it is
> possible to use svn add locally". I'
On Aug 26, 1:51 pm, MIL wrote:
> Okay. Seems logic. But Im not sure what I should do.
>
> So what would you do?
>
> Thanks
Add return "" at the end of your render() method.
--
DR.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Okay. Seems logic. But Im not sure what I should do.
So what would you do?
Thanks
On 26 Aug., 12:09, Daniel Roseman wrote:
> On Aug 26, 12:44 am, MIL wrote:
>
>
>
> > Hi guys :o)
>
> > Im attempting to create a template tag but I get a strange response.
> > it returns "None" where I put the {
Many thanks Karen. The key was "run svn diff from the top-level trunk
directory"
in the docs. Sorry, I should have re-read them!
Should be OK now,
Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
On Wed, Aug 26, 2009 at 6:49 AM, Peter2108 wrote:
>
> I'm trying to help fix but #6138. I've done a patch for the code and a
> separate test.py module. But someone ('Alex') added a request to
> "Please put the tests in the same diff as the patch itself, it is
> possible to use svn add locally". I
Using Django v1.1/mod_wgsi v2.5.
I'm forced to use CA's Netegrity SiteMinder to authenticate users. I
couldn't find anything regardng integration with Django (so that Django
can provide authorization). I have integrated Django authentication
with an LDAP server, but I need to use SiteMinder ins
On Wed, Aug 26, 2009 at 5:47 AM, Arul wrote:
>
> But i need to use it with the django using the "manage.pt dbshell"
> command.
> I tried adding the sqlite.exe path to the windows system path. It
> didnt work.
>
That's how to do it. Note that changing the system path via the GUI does
not affect
Hello Karen,
thanx a lot for the information and sorry for being so unspecific.
Sounds like my problem. I'm using python 2.5 and sqlite3 (in my dev
environment). So I'll try to upgrade sqlite.
Cheers,
Georg
On 26 Aug., 14:05, Karen Tracey wrote:
> 2009/8/26 Georg Göttlich
>
>
>
> > Hello ever
2009/8/26 Georg Göttlich
>
> Hello everybody,
>
> I'm not sure if this is a bug in django or if it works as designed.
> That's why I'm asking here first, before filing a bug.
>
> When using annote() on a model, it's date values become unicode
> values.
>
> Is this normal behavior and if so, is th
Hi all,
I am using the sqlite database for django application. I need to alter
the table and i tried to use "manage.py dbshell" command. It shows me
"Error: You appear not to have the 'sqlite3' program installed or on
your path."
I tried downloading the sqlite3.exe file and used "sqlite3 c:\proj
hi
iam new to python and Django and i am very much intrested in woe\rking with
these framework than other ones.
i request you to give me some tips of programming in these framework and
some online resource so that i can become an effective prgrammer in these
framework...
with
i've actually have semi success in getting django to work on godaddy.
It displays the "Congratulations on your first Django-powered page."
You will have to be signed up for the linux shared hosting Deluxe or
higher plan in order for fastcgi to be enabled. I can show you how to
get it up and runnin
Thank you
On Wed, Aug 26, 2009 at 11:43 AM, James Bennett wrote:
>
> On Wed, Aug 26, 2009 at 4:03 AM, Tomáš Drenčák wrote:
> > I'd like to send mass email from custom command which will be called
> > by cron. Problem is that each email could be in different language.
> > How can I change actual l
Hello everybody,
I'm not sure if this is a bug in django or if it works as designed.
That's why I'm asking here first, before filing a bug.
When using annote() on a model, it's date values become unicode
values.
Is this normal behavior and if so, is there a way to prevent this?
Cheers,
Georg
Ok thanks. I did it as a trick: i create the form hardcoded in html
that I do not display thanks to css, I copy it to another place when
I need it with newDiv.innerHTML = staticDiv.innerHTML, and I browse
htmlDom elements of the copy to add dynamic properties. It all works
fine. THanks again.
Guys,
Am going through the practical django book and am trying the weblog
application in Chapter 4, but when i go to test the application on my
cms application (that i created from the same book, from Chapter 2 &
3) "coltrane" application does not appear on the admin index page as
the book sugges
I recently discovered that in templates you can do
{{ _("string")|filter }}
so "string" is translated before being filtered.
This is useful for me until this ticket is being commited:
http://code.djangoproject.com/ticket/5972
Anyone knows where in Django documentation is this _() use document
I'm trying to help fix but #6138. I've done a patch for the code and a
separate test.py module. But someone ('Alex') added a request to
"Please put the tests in the same diff as the patch itself, it is
possible to use svn add locally". I'm at a loss here I'm afraid. The
only way I know to generate
On Aug 26, 8:38 pm, Hussein B wrote:
> I changed it to the following:
>
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE SshConnector.settings
> PythonPath "['/home/me/', '/home/me/SshConnector/'] +
> s
I changed it to the following:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE SshConnector.settings
PythonPath "['/home/me/', '/home/me/SshConnector/'] +
sys.path"
PythonDebug On
I tried this URL
http
hmm, I found the answers
1. use a pre_delete signal instead of overwrite the model's and
queryset's delete methods
2. use a specific exception subclass and catch it int the view
Am I correct?
On 26. Aug, 11:45 h., gentlestone wrote:
> Because of Django CASCADE ON DELETE behavior I want to refuse
On Aug 26, 7:51 pm, Kenneth Gonsalves wrote:
> On Wednesday 26 Aug 2009 2:42:47 pm HB wrote:
>
> > Hey,
> > I'm trying to deploy my first Django application to Apache.
> > The project is located under: /home/me/SshConnector/
> > Here is my configuration:
>
> >
> > Options Indexes Foll
On Aug 26, 12:44 am, MIL wrote:
> Hi guys :o)
>
> Im attempting to create a template tag but I get a strange response.
> it returns "None" where I put the {% if blog_detail %} tag
>
> Here is my template tag
>
> class BlogNode(Node):
> def __init__(self, user, varname):
>
On Aug 26, 6:55 am, Apple wrote:
> hi , now I want to pass a parameter named user (user is a instance of
> User) to the self_defined tags,could I do this ? I think the passed
> parameter are all strings , is there a way to get its real type ?
> thank you for your replying !
You can use the templ
On Aug 26, 9:35 am, adelaide_mike wrote:
> After adding a model to my Django 1.0.2 app I would like to change the
> names of two models. Will the syncdb take care of this for me? I
> anticipate I will need to change the table names in PostgreSQL.
>
> Any caveats? Any hints? TIA
>
> Mike
No,
On Wed, Aug 26, 2009 at 4:03 AM, Tomáš Drenčák wrote:
> I'd like to send mass email from custom command which will be called
> by cron. Problem is that each email could be in different language.
> How can I change actual language so ugettext and template rendering
> will return correct localized s
On Wednesday 26 Aug 2009 2:42:47 pm HB wrote:
> Hey,
> I'm trying to deploy my first Django application to Apache.
> The project is located under: /home/me/SshConnector/
> Here is my configuration:
>
>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Ord
Because of Django CASCADE ON DELETE behavior I want to refuse deletion
of the object with related objects. I overwrote my del method in the
model:
def delete(self):
"Allow only if there are no related objects"
seen_objs = CollectedObjects()
self._collect_sub_objects(se
Hi,
I'd like to send mass email from custom command which will be called
by cron. Problem is that each email could be in different language.
How can I change actual language so ugettext and template rendering
will return correct localized string?
When I don't change anything, internationalization u
The previous conf is python.conf under /etc/httpd/conf.d
On Aug 26, 12:12 pm, HB wrote:
> Hey,
> I'm trying to deploy my first Django application to Apache.
> The project is located under: /home/me/SshConnector/
> Here is my configuration:
>
>
> Options Indexes FollowSymLinks MultiView
Hey,
I'm trying to deploy my first Django application to Apache.
The project is located under: /home/me/SshConnector/
Here is my configuration:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_pyt
After adding a model to my Django 1.0.2 app I would like to change the
names of two models. Will the syncdb take care of this for me? I
anticipate I will need to change the table names in PostgreSQL.
Any caveats? Any hints? TIA
Mike
--~--~-~--~~~---~--~~
You r
On Wed, Aug 26, 2009 at 2:10 AM, w y wrote:
> Otherwise just ignore this e-mail
I'm going to try. If I/we can't, will you please take this off-list?
Thanks,
ALL
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
Dear Sir,
I got your e-mail as I prescribed this e-mail list. I am a Python/Django Web
programmer. Since year 1995, I have been working in programming field with C,
C++, Java, PHP, DHTML, Python, shell scripts and Django.
For this opportunity, I have two quick questions. Is part-time ok? Is
Simon Lee schrieb:
> Hi Thomas,
...
>
> I did a search on the web but found only two links on similar error
> without any solution. Does anyone know what caused "Symbol not found:
> _PQbackendPID"?
>
Try to to install a new version von psycopg2, since it seems to be broken.
Try to use psyco
Thank you very much. I think i get the idea.
Greetings
Sven
On Tue, Aug 25, 2009 at 10:51 PM, Peter Bengtsson wrote:
>
> I fear your only option is to write a recursive function which you
> feed with what you define to be "the end of the chain".
> You can collect all the entries in a mutable l
85 matches
Mail list logo