Re: Establish "reverse relationships" between models?

2010-06-03 Thread Dmitry Dulepov
f view, there is no known relationship to Alarm. class Alarm(models.Model): ... building = models.ForeignKey(Building, related_name = 'alarm') ... You need to name it properly, that's all. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov

Re: utf8-problems

2010-06-03 Thread Dmitry Dulepov
n dev and production systems: show variables like 'character_set_%' I would also check character sets in "show create table" in both environments. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are

Re: utf8-problems

2010-06-03 Thread Dmitry Dulepov
ese character sets in MySQL and conversion to each of them happens at certain points at a time during processing. > Can I fix it using a config entry in django? I don't think you can fix it with a setting but I can be mistaken here. The best is to use the same settings for all hosts. I keep

Re: Filtering

2010-06-03 Thread Dmitry Dulepov
27;A special model manager that returns only available users''' def get_query_set(self): query_set = super(TYPO3UserManager, self).get_query_set() return query_set.exclude(models.Q(disabled = 1) | models.Q(deleted = 1)) class TYPO3User ... objects = TYPO3UserMa

Re: Directory structuring

2010-06-04 Thread Dmitry Dulepov
to In both cases overwrite files in production unconditionally. Apache will not see these changes until you restart it (or touch wsgi file), so you have time to fix any conflicts. But if you force overwrite, you should not have any conflicts. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd

Re: *Immediate* session expiration problem/bug in IE

2010-06-04 Thread Dmitry Dulepov
to add something to cookies to make MSIE happy. I do not remember exactly what it is. There is a Microsoft Knowledge Base article about it. Google for it, may be it helps. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because

Re: How to use Django with Apache and mod_wsgi

2010-06-04 Thread Dmitry Dulepov
d mod_wsgi": http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/ -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Template issue, maybe?

2010-06-05 Thread Dmitry Dulepov
et all the links I expect, and they work as expected, > but they are all down the left side of the page with none of the > coloring is there. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subs

Re: Directory structuring

2010-06-06 Thread Dmitry Dulepov
ags/branches/trunk? Subversion documentation has a lot of examples and tells how to use tags and branches. Please, check that. There is too much information to post it here. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message bec

Re: Django + Ajax + Jquery

2010-06-06 Thread Dmitry Dulepov
Hi! tazimk wrote: > I want to use ajax in my templates using jquery. > Can someone provide me some sample examples /links related to > this. http://www.google.com/ may be? The question is too broad. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-du

Re: How to share a session with a php application.

2010-06-06 Thread Dmitry Dulepov
a major security issue. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.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-us...@googlegroups.com. To

Re: How to share a session with a php application.

2010-06-06 Thread Dmitry Dulepov
d from the PHP session. You can also search or create a PHP session serializer that writes to the database. Then you can read from the database in your Django app. I would go this way as it makes less hacking than accessing session files. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web

Re: Django is not work Error :Message

2010-06-07 Thread Dmitry Dulepov
ngs.py. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.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-us...@googlegroups.com. To unsubscribe from this grou

Re: django + ajax

2010-06-07 Thread Dmitry Dulepov
Hi! tazimk wrote: > Also how should I implement the same thing using jquery library ? This may help: http://www.google.com/search?&q=django+jquery+ajax -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because

Re: Django/MySQL trailing spaces bug?

2010-06-08 Thread Dmitry Dulepov
d say the behaviour of > /iexact/ certainly looks inconsistent as it is *more* exact than > /exact/ but on balance it appears that /exact/ is not doing the right > thing here? If you want space to take part in comparison, use char fields instead of varchar. See: http://dev.mysql.com/doc/refm

Re: Generate thumbnails from videos

2010-06-09 Thread Dmitry Dulepov
o take the thumbnail... -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.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-us...@googlegroups.com. To

Re: error : python manage.py shell

2010-06-11 Thread Dmitry Dulepov
Hi! Jagdeep Singh Malhi wrote: > IndentationError: unindent does not match any outer indentation level You need to learn Python :) Indentation matters in Python. If previous lines of your file use spaces and this line uses tabs, you'll get a wrong indentation error. -- Dmitry Dulepov

Re: Multiple AJAX sends within a views.py-function

2010-06-11 Thread Dmitry Dulepov
easier way to achieve your real goal? What is your original task? Why data prepration takes so long? May be you can optimize it with indexes? -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Goo

Re: Selling Django

2010-06-17 Thread Dmitry Dulepov
ot;. These all are different things, they are not comparable. Thus you cannot sell one thing as another. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Google Groups "Django users&

Re: how to use render_to_response, ajax and javascript variables

2010-06-17 Thread Dmitry Dulepov
Hi! Matt Hoskins wrote: > return HttpResponse(simplejson.dumps(data),mimetype='text/plain) Small correction: mime type should be application/json. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subsc

Re: Cannot import a module when deployed in Apache WSGI

2010-06-17 Thread Dmitry Dulepov
rectory exist? Normally, your 'site-packed' should in Python path, not its subdirectories. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django Sphinx or haystack Xapian

2010-06-24 Thread Dmitry Dulepov
index my forums. 2 minutes of Sphinx indexing is just nothing compared to others. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Debugging Django under wsgi and pydev

2010-07-07 Thread Dmitry Dulepov
rom google to run apache > httpd -x which I'd take as being a first step towards it but not the > actual solution. Works ok for me. Follow pydev's information about using the debugger. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You

Re: how to develop cms on django

2010-07-19 Thread Dmitry Dulepov
s. You simply can't do that in a short time frame with am unknown technology. Forget it. This is a planned failure. -- Dmitry Dulepov Twitter: http://twitter.com/dmitryd/ Web: http://dmitry-dulepov.com/ -- You received this message because you are subscribed to the Google Groups "Dj