Re: Add your own template library

2012-09-30 Thread Ashish Jain
Hi, Yes it do have __init__.py I have created a simple project of template tags and have installed it as a python package with setup.py. After which I am referring it into my website. - Thanks for reply On Monday, 1 October 2012 09:45:46 UTC+5:30, Laxmikant Gurnalkar wrote: > > Hi Ashish, >

Tools - Slow in python django fw

2012-09-30 Thread siva
Hi , We have converted our tools from php to django framework but tool performance is very slow compare to php . Please let us what are things we have to do ... Thanks, Siva -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discus

How to force django.views.i18n.set_language to use cookies

2012-09-30 Thread Ezequiel
Hi All. Is there anyway to force django.views.i18n.set_language view to use cookies rather than session (I need that enabled but just for the admin not for my main app)? Thanks in advance. Ezequiel http://flickrock.com/mikelpierre -- You received this message because you are subscribed to the G

Add your own template library

2012-09-30 Thread Ashish Jain
Hi, I have created a custom template tags library which I would like to use across my application. I referred this code snippet, http://djangosnippets.org/snippets/342/ but still when I refer the tag in my code as: {% load repeat %}. It says 'repeat' is not a valid tag library, tried django.te

Re: django and mysql versions

2012-09-30 Thread Javier Guerra Giraldez
On Sun, Sep 30, 2012 at 12:38 PM, Dennis Lee Bieber wrote: > The main features that have been added to MySQL are views, triggers, > stored procedures... And "prepared statements". I beg to differ: http://dev.mysql.com/doc/refman/5.0/en/create-view.html http://dev.mysql.com/doc/refman/5.0/e

Re: model field not null

2012-09-30 Thread Bill Freeman
null=True is the opposite of what you are asking for anyway. You can use null=False, and the column will be created with the database's version of: NOT NULL Which is the postgres spelling. This will prevent the database from allowing a database NULL from being stored there. But it will NOT

Re: Making form label a href

2012-09-30 Thread Tomas Neme
> Is there some way to have the form label be a href? you'll have to change the forms templates to something like {% for field in form %} {{ field.label }} {{ field }} {% endfor %} -- "The whole of Japan is pure invention. There is no such country, there are no such people" --Oscar Wilde

Making form label a href

2012-09-30 Thread Larry Martell
In an app I've inherited, there are forms generated with {{ form.as_p }} in the template. This generates HTML like this, for example: Group 12S 13S 22SOI Is there some way to have the form label be a href? -- You received this message because you are subscribed to the Google Groups "D

Re: django and mysql versions

2012-09-30 Thread Elizabeth Rachel Lemon
Thanks for the response -- this is really useful information about what MySQL features new to version 5.5 are not handled by MySQLdb. In this case, my reasons for asking about using MySQL 5.5 aren't really about wanting any features that are available only in 5.5, but more about a situation wh

app for kickstarter-like goals

2012-09-30 Thread Matteo Suppo
I'm developing a website for a non-profit organization. They want something similar to kickstarter, only based on people instead of money. Let's say there's an event. A birthday. If 5 people preorder the ticket there will be a clown* If 10 people preorder the ticket there will be a clown orches

django and mysql versions

2012-09-30 Thread Elizabeth Rachel Lemon
According to this page: https://docs.djangoproject.com/en/dev/ref/databases/ "Django supports MySQL 5.0.3 and higher." But the next section says that MySQLdb is required, and when you click the link to MySQLdb from that page, it goes to this page: http://sourceforge.net/projects/mysql-python/ wh

non-root SCRIPT_NAME, mod_wsgi and RewriteRule

2012-09-30 Thread Sebastiaan Snoeckx
I have my Django website and my static files deployed under the same directory (i.e. no separate 'static' directory), according to the following Apache RewriteRule: RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST

display thousand separator.

2012-09-30 Thread Nicolas Emiliani
Hi list! I'm having a localization issue. The thing is that I have an AdminForms that contains a value field (wich is a model.BigInteger at the model ) and when the value is displayed at the admin form I would like it to show the THOUSAND_SEPARATOR as configured in setting.py. So this is what I've