Re: get_model()

2010-07-08 Thread Kenneth Gonsalves
s - a relief to know that get_model(), which I use fairly often, is not going away. I needed to see the docs when I was trying to debug a problem on IRC and kinda panicked when I saw not docs on this. btw, django.contrib.comments also has a get_model() which is documented. -- Regards Kenneth Gons

Re: How can I Insert multiple records in one statement

2010-07-08 Thread Kenneth Gonsalves
'? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- 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 group, send em

Re: How can I Insert multiple records in one statement

2010-07-08 Thread Kenneth Gonsalves
rt 4 rows > it is two statements ;-). I suppose one needs a for loop: given a model called Prefix - with one field: 'name' pf = ['a','b','c'] for x in pf: Prefix.objects.create(name='%s' %x) of course it is three statements. -- Regards Kenne

Re: Cannot connect to #django on irc

2010-07-09 Thread Kenneth Gonsalves
eed a password for registering which will work on all freenode channels. Get onto freenode and do: /msg nickserv register this will register your nick if it is not already registered. Once registered, to identify: /msg nickserv identify and for help: /msg nickserv help -- Regards Kenneth Go

Re: could not join irc #django channel

2010-07-10 Thread Kenneth Gonsalves
search on this list - the same problem came up yesterday with almost the same topic. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: cannot add many projects to users in ADMIN

2010-07-12 Thread Kenneth Gonsalves
an one project. Also it is not a good idea to have a model called 'User' as the admin module also has a model User. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Dajax or Jquery

2010-07-13 Thread Kenneth Gonsalves
ript toolkits with django (jquery among them). I suspect you would be best off using both. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Saving File/Image in tmp. I'm in trouble ...

2010-07-13 Thread Kenneth Gonsalves
he > servers '/tmp' directory, this is the step I need to skip or similar. > I'm getting my ass kicked. > does it not save it in tmp in the process of upload and then delete it? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message bec

Re: Saving File/Image in tmp. I'm in trouble ...

2010-07-13 Thread Kenneth Gonsalves
a copy. Is there anyway to skip > this physical directory and play with each image file in RAM? Or is > that a mad idea? > so add a line that deletes the file from /tmp the moment it is saved -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message

Re: Existing sites using Django

2010-07-13 Thread Kenneth Gonsalves
reat it is. I'm not looking for front-end features, rather > speed of page request or volume of data. http://bitbucket.org -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Logic

2010-07-16 Thread Kenneth Gonsalves
On Friday 16 July 2010 14:51:22 Ravango wrote: > I've just started using Django for my project to create a web server. > what do you mean by 'web server'? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are sub

Re: Database systems

2010-07-16 Thread Kenneth Gonsalves
an by 'support' here? > I thought South was DB agnostic. > come on IRC and watch all the complaints from MySQL users when south advises them to use a proper RDBMS. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are sub

Re: Logic

2010-07-16 Thread Kenneth Gonsalves
On Friday 16 July 2010 18:56:12 Ravango wrote: > ust call the Bioinformatics application from the "views.py". > yes -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django use

Re: Best way to get data into a HTML table?

2010-07-17 Thread Kenneth Gonsalves
r data model's fields - that is what django is for. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- 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.co

Re: Django IDE

2010-07-17 Thread Kenneth Gonsalves
On Saturday 17 July 2010 21:23:03 Jitendra Joshi wrote: > What is the best open source Django IDE ? > geany -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group.

setlang is not working

2010-07-19 Thread Kenneth Gonsalves
error is generated and the language does not change. The only thing runserver spits out is: "POST /i18n/setlang/ HTTP/1.0" 302 0 any one faced this problem? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to

Re: setlang is not working (solved)

2010-07-19 Thread Kenneth Gonsalves
On Monday 19 July 2010 12:38:32 Kenneth Gonsalves wrote: > hi, > > I have a site running on pre csrf (11603). In that I have a function to > change languages which calls setlang as per the docs. This language change > works perfectly. I am now trying to upgrade to the la

Re: how to develop cms on django

2010-07-19 Thread Kenneth Gonsalves
out 10 mails in this list to identify, understand and correct an indentation error? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: forms

2010-07-20 Thread Kenneth Gonsalves
Reportform(request.POST) if form.is_valid(): fm = form.save() -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: values() returning more than values

2010-07-21 Thread Kenneth Gonsalves
ntries. by duplicates do you mean the whole row is duplicate or it is duplicate with the exception of the id of the row? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: setting up datebase

2010-07-23 Thread Kenneth Gonsalves
ave you added your apps to settings.py? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- 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

Re: working with model fields

2010-07-23 Thread Kenneth Gonsalves
h and height for it ? yes - use attrs -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- 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

Re: Python/Django hosting

2010-07-29 Thread Kenneth Gonsalves
to pick up European or US host? I do not see the license - if it is under some open source license, I can give you shell access and host it on our server free. Please contact me offlist. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because

Re: Django Dev server doesn't reflect changes

2010-07-29 Thread Kenneth Gonsalves
On Friday, July 30, 2010 10:55:13 am barun wrote: > I've restarted the server, browser. Do I need to do anything else? browser cache? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "

Re: drop table books_book

2010-08-02 Thread Kenneth Gonsalves
e books_book_authors > Creating table books_book > Installing index for books.Book_authors model > Installing index for books.Book model > No fixtures found. > > what is my wrong ? I do not see anything wrong. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC --

Re: problem : create form

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 01:19 -0700, Jagdeep Singh Malhi wrote: > i use command for create application > #python manage.py startapp form > > after this a use this code in model.py file > > from django import forms > > class ContactForm(forms.Form): > subject = forms.CharField(max_length=100) >

Re: problem : create form

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 02:09 -0700, Jagdeep Singh Malhi wrote: > > Why do you think you would get any SQL with that? You're creating a > > form, not a model. > ok > I also want to store the value in database using form. make a model - use ModelForm - or just plain form > > Now what i can do? > any

Re: PIL failed in virtualenv?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 03:43 -0700, joconnell wrote: > It looks like it might be a similar issue. Was due to missing > dependencies - python-dev (among others) actually it was due to missing python-dev -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
On Wed, 2010-08-04 at 11:04 -0300, André A. Santos wrote: > hmmm... > Dr thanks for answering... my doubt is if is better put the business > rules > code on Python or Django... got it? let us put it this way: in java programming, where do you put the business rules? -- reg

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
database structure - models presentation - templates business logic - views of which models and views are done in python and the presentation done with html, css, javascript etc. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Djang

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
ion or for saving. -- regards Kenneth Gonsalves -- 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 group, send email to djang

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Kenneth Gonsalves
f business logic - which probably has as many definitions as MVC. -- regards Kenneth Gonsalves -- 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 group, s

Re: Django IDE

2010-08-05 Thread Kenneth Gonsalves
ost, > never > heard of that. geany - lightweight and easy to use -- regards Kenneth Gonsalves -- 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 fro

Re: Footer dynamic data

2010-08-06 Thread Kenneth Gonsalves
On Fri, 2010-08-06 at 14:03 -0700, kostia wrote: > I have a footer on my site. It has to be filled in with data which > comes from the database. Each view will have to load this common > footer data. How can I organise such a behaviour in my views.py file? try templatetags -- regard

unexpected programming error

2010-08-07 Thread Kenneth Gonsalves
ackends/util.py" in execute 15. return self.cursor.execute(sql, params) File "/usr/lib/python2.6/site-packages/django/db/backends/postgresql/base.py" in execute 57. return self.cursor.execute(smart_str(sql, self.charset), self.format_params(params)) Exception

Re: Translation

2010-08-11 Thread Kenneth Gonsalves
ge and the l10n page. -- regards Kenneth Gonsalves -- 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 group, send email to djang

Re: Translation

2010-08-11 Thread Kenneth Gonsalves
On Tue, 2010-08-10 at 10:27 -0700, kostia wrote: > Of couse I included a {% load i18n %} tag and then used {% trans %} > tags in each file. > > Still no solution how about compilemessages and makemessages? did you do that? -- regards Kenneth Gonsalves -- You received this message

Re: Translation

2010-08-11 Thread Kenneth Gonsalves
On Tue, 2010-08-10 at 11:11 -0700, kostia wrote: > I guess some guru can look at the code above and find an error. If I > will be so lucky) I cannot see a locale folder in your site - how do you expect translation to work without that? -- regards Kenneth Gonsalves -- You received this m

Re: Reporting Library??

2010-08-12 Thread Kenneth Gonsalves
eraldoreports.org/> . Built on top of > ReportLab and > has pretty good Django support as well. wow - looks good -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Django Matrimonial Apps,

2010-08-13 Thread Kenneth Gonsalves
On Fri, 2010-08-13 at 20:08 +0100, Rizwan Mansuri wrote: > I would appreciates if anyone would like to join for this project. I > am > aiming to finish this within three month with basic functionality. is it to be open source? -- regards Kenneth Gonsalves -- You received this messag

RE: Django Matrimonial Apps,

2010-08-14 Thread Kenneth Gonsalves
On Sat, 2010-08-14 at 12:28 +0100, Rizwan Mansuri wrote: > I belies in open sources 100%. Anything what I will write would be > 100% open > source. in which case - where is the code - I would like to join -- regards Kenneth Gonsalves -- You received this message because you are subs

Re: django queryset get only one result for one column pair

2010-08-14 Thread Kenneth Gonsalves
not have a unique_together for user and problem? -- regards Kenneth Gonsalves -- 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 group, send email t

Re: Django 1.3

2010-08-15 Thread Kenneth Gonsalves
ee on IRC, it does not play well with mysql and sqllite - I have never used it. -- regards Kenneth Gonsalves -- 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 unsub

Re: Convert php project into django

2010-08-15 Thread Kenneth Gonsalves
ne, it would be much quicker to rewrite the code afresh rather than attempt to translate it. -- regards Kenneth Gonsalves -- 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.

Re: Best OS - VPS environment

2010-08-16 Thread Kenneth Gonsalves
On Mon, 2010-08-16 at 01:54 -0700, Dan wrote: > What do people recommend? debian lenny -- regards Kenneth Gonsalves -- 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...@googleg

Re: /path/to/project

2010-08-17 Thread Kenneth Gonsalves
On Tue, 2010-08-17 at 21:48 -0300, Alex s wrote: > What does "/path/to/project" means ? if your project is in /home/alex/projects/myproject/ then /path/to/project/ is '/home/alex/projects/' -- regards Kenneth Gonsalves -- You received this message because you are s

Re: /path/to/project

2010-08-17 Thread Kenneth Gonsalves
On Tue, 2010-08-17 at 22:14 -0300, Alex s wrote: > > Using your example '/home/alex/projects/' need to be replaced by: > "WSGIScriptAlias / /home/alex/projects/mysite/apache/django.wsgi" > > Rigth? wrong - /home/alex/projects/mysite/apache/ -- regards Kenne

Re: /path/to/project

2010-08-17 Thread Kenneth Gonsalves
On Wed, 2010-08-18 at 10:19 +0530, Kenneth Gonsalves wrote: > On Tue, 2010-08-17 at 22:14 -0300, Alex s wrote: > > > > Using your example '/home/alex/projects/' need to be replaced by: > > "WSGIScriptAlias / /home/alex/projects/mysite/apache/django.wsgi"

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Kenneth Gonsalves
pment in a rapid manner, it is not part of the django framework. -- regards Kenneth Gonsalves -- 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 th

duplicate post_save signals

2010-08-17 Thread Kenneth Gonsalves
anyone faced this problem? -- regards Kenneth Gonsalves -- 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 group, send email to django-user

Re: duplicate post_save signals

2010-08-18 Thread Kenneth Gonsalves
updated, django saves it twice. In which case it would be logical? > > On 18 August 2010 16:48, Kenneth Gonsalves wrote: > > hi, > > > > I am using a two post_save signal handlers for two different models. On > > certain conditions they have to send emails to me and

Re: duplicate post_save signals

2010-08-18 Thread Kenneth Gonsalves
; registrations which cause them to fire twice. > > signals.post_save.connect(_do_thingy, sender=Blah, > dispatch_uid="mymodule") yes - actually there was a double import - I removed it and also added despatch_uid - looks like the problem is solved -- regards Kenneth Gonsal

Re: phonebook

2010-08-18 Thread Kenneth Gonsalves
On Tue, 2010-08-17 at 22:17 -0700, samir wrote: > i wanna write phonebook with django . > i wrote some thing but i have problem with views.py . please post the code that is giving you problems, also the full error message if any. -- regards Kenneth Gonsalves -- You received this m

Re: Model Custom Validator between more than one field

2010-08-18 Thread Kenneth Gonsalves
On Wed, 2010-08-18 at 09:02 -0300, Renne Rocha wrote: > Is it possible to do this? Or the only way to validate the > relationship between two fields is with form validation? > > this may help: http://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddo#id1 -- reg

Re: the structure of a registration app

2010-08-23 Thread Kenneth Gonsalves
number and personal details depending on what your site is for -- regards Kenneth Gonsalves -- 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 unsubscrib

Re: Newbie question: can foreign key fields used as search fields on admin page?

2010-08-26 Thread Kenneth Gonsalves
#x27; into search_fields so that in admin > page books showed can be narrow down by a specific publisher? I tried > it but got the following exception: search_fields = ['foreign_key__related_fieldname'] (from the docs) -- regards Kenneth Gonsalves -- You received this message b

Re: Which PostgreSQL driver do you use

2010-08-26 Thread Kenneth Gonsalves
ver since I can remember. -- regards Kenneth Gonsalves -- 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 group, send email to django-users+uns

Re: question on directory structure for deploying project

2010-08-26 Thread Kenneth Gonsalves
o error page the question is that does brooski directory have an __init__.py file in it. If so, It should not be on the path - only the parent directory should be in the path. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Djan

Re: Which PostgreSQL driver do you use

2010-08-26 Thread Kenneth Gonsalves
1.4. > > psycopg2 is now the preferred driver for Django (using the > postgres_psycopg2 backend). that is what I meant (forgot to add the '2') -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: What replaced mod_python

2010-08-27 Thread Kenneth Gonsalves
mod_wsgi has practically replaced mod_python. The mod_python project is dead and apache has withdrawn support for it. For legacy reasons django still supports mod_python, but it is no longer the preferred platform. You could also look at things like nginx with fcgi. -- regards Kenneth Gonsalves --

Re: mod_wsgi setup issue

2010-08-27 Thread Kenneth Gonsalves
on['PYTHON_EGG_CACHE'] = '/srv/www/brooski.net/.python-egg' os.environ['DJANGO_SETTINGS_MODULE'] = brooski.settings -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Unable to add two Numbers

2010-08-29 Thread Kenneth Gonsalves
On Sun, 2010-08-29 at 22:50 +0530, Harbhag Singh Sohal wrote: > me try use request.POST function to get the value, but me also fail to > get the form values. > > Please suggest me how i get the value from form text fields and store > in database. please post your code --

Re: Unable to add two Numbers

2010-08-29 Thread Kenneth Gonsalves
rds Kenneth Gonsalves -- 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 group, send email to django-users+unsubscr...@googlegroups.com. For

Re: manage.py: syncdb/sql do not pick up models from custom directory structure

2010-08-29 Thread Kenneth Gonsalves
import * - you may get an error here -- regards Kenneth Gonsalves -- 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 group, send

Re: Web hosting?

2010-08-31 Thread Kenneth Gonsalves
t small site - webfaction slightly higher cost - medium site - linode/slicehost/gandi more pricey for bigger sites - hetzner huge sites - amazon -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

how to add two numbers with django - revisited

2010-08-31 Thread Kenneth Gonsalves
hi, there was a recent thread on this subject, and I had an idea that this may be a good way to give a basic instruction in the way django works to people who come from radically different backgrounds: http://lawgon.livejournal.com/80621.html -- regards Kenneth Gonsalves -- You received this

Re: Customising errors in a form according to user region

2010-09-03 Thread Kenneth Gonsalves
region. How would I > customise the form object's validation messages? use i18n (look up internationalization and localization in the docs) -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Spam filters for Django?

2010-09-03 Thread Kenneth Gonsalves
types of algorithm can be used for spam > filtering? the three most common ways are to only allow logged in users to post, captchas or akismet or a combination of the three. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Dja

Re: Spam filters for Django?

2010-09-03 Thread Kenneth Gonsalves
with a link 3. clicks on the link and has to fill in his username, and password twice that extra step seems to baffle the spammers. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Problem with ModelForm

2010-09-04 Thread Kenneth Gonsalves
On Sat, 2010-09-04 at 09:19 -0700, Jagdeep Singh Malhi wrote: > form = Input(request.POST) form = InputForm(request.POST) -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Having issue setting UP admin section in Dajngo

2010-09-06 Thread Kenneth Gonsalves
On Sun, 2010-09-05 at 22:29 -0700, aliahsan wrote: > 26. ^admin/(.*) this may be the offending line - which version of django are you using and which version of django was the app written for? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Goo

Re: Having issue setting UP admin section in Dajngo

2010-09-07 Thread Kenneth Gonsalves
On Tue, 2010-09-07 at 13:30 +0500, Ali Ahsan wrote: > (r'^admin/(.*)', admin.site.root), as far as I remember this is correct for that version - so I do not think I can help here ... -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the

Re: Language Translation

2010-09-08 Thread Kenneth Gonsalves
pport for t range of languages. -- regards Kenneth Gonsalves -- 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 group, send email to django-users+unsubs

Re: Django in production server

2010-09-08 Thread Kenneth Gonsalves
server > with Apache with this manual > http://www.howtoforge.com/installing-django-on-debian-etch-apache2-mod_pythonI > please do not use mod_python. The mod_python project is dead - use mod_wsgi -- regards Kenneth Gonsalves -- You received this message because you are subscribed

Re: How does django convert string to modules

2010-09-08 Thread Kenneth Gonsalves
On Wed, 2010-09-08 at 18:46 -0700, maroxe wrote: > I want to use it later like this: RESOURCE_RENDERER'video' I cannot > assign directly the function name(eg video_player) because it lives in > a module that needs settings.py > > Any idea? check out getattr() --

Re: 404 handler not working on live hosting environment

2010-09-09 Thread Kenneth Gonsalves
apache on your dev server? -- regards Kenneth Gonsalves -- 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 group, send email to django-users+uns

Re: 404 handler not working on live hosting environment

2010-09-09 Thread Kenneth Gonsalves
d problems like this in production you should use a 3-stage deployment: 1. develop with runserver 2. have a staging server (maybe on the same devel machine) which tries to replicate the production environment 3. then move the code/changes to the production server. (I hope you are using some VC

Re: date translation

2010-09-09 Thread Kenneth Gonsalves
On Thu, 2010-09-09 at 06:59 -0700, imgrey wrote: > in locale/no/LS_MESSAGES/django.po > msgid "DATETIME_FORMAT" > msgstr "" this has nothing to do with the format to be used - this just translates the word 'DATETIME FORMAT' into norwegian -- regards K

Re: 404 handler not working on live hosting environment

2010-09-10 Thread Kenneth Gonsalves
On Fri, 2010-09-10 at 09:55 +0200, Sithembewena Lloyd Dube wrote: > Thanks Kenneth, we were also discussing yesterday how we need to have > a > "safer" deployment strategy. > > We are using TortoiseSVN for version Control. you could look into upgrading from windows als

Re: Wiki in Django?

2010-09-12 Thread Kenneth Gonsalves
is open sourced yet -- regards Kenneth Gonsalves -- 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 group, send email to django-users+unsubscr

haystack problem - already registered error

2010-09-14 Thread Kenneth Gonsalves
ck, StockIndex) File "/usr/lib/python2.6/site-packages/haystack/sites.py", line 45, in register raise AlreadyRegistered('The model %s is already registered' % model.__class__) haystack.exceptions.AlreadyRegistered: The model is already registered -- regards Kenneth Gonsalves

Re: syncdb on Django

2010-09-15 Thread Kenneth Gonsalves
On Wed, 2010-09-15 at 13:44 +0800, Odkoo Ch wrote: > django.core.exceptions.ImproperlyConfigured: You haven't set the > database > ENGINE setting yet. what version of django? In the current version you need: 'ENGINE': 'django.db.backends.mysql' -- regards K

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-21 Thread Kenneth Gonsalves
rom my admin.py: class ArticleAdmin(admin.ModelAdmin): class Media: js = ('/sitemedia/js/tiny_mce/jscripts/tiny_mce/tiny_mce.js', '/sitemedia/js/tiny_mce/jscripts/tiny_mce/textareas.js',) admin.site.register(Article, ArticleAdmin) -- regards Kenneth Gonsa

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-22 Thread Kenneth Gonsalves
-- regards Kenneth Gonsalves -- 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 group, send email to django-users+unsubscr...@googlegroups.com. F

Re: IDE for Python/django

2010-09-27 Thread Kenneth Gonsalves
t GUI > > based,,i prefer editor like vim which supports python scripts > > GUI based, but lightweight "Geany" IDE is. :) geany rocks -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users&

Re: DjangoCon 2011

2010-09-27 Thread Kenneth Gonsalves
provide all facilities free of cost (except accomodation - although some make their guest houses available for the VIPs), and in fact, compete with each other to offer hosting. We have just finished Pycon India where we got three state of art auditoriums free of cost. -- regards Kenneth Gonsalves -- Y

Re: Where to create a Mezzanine project

2010-10-05 Thread Kenneth Gonsalves
de it? > > The mezzanine project will integrate blogs in the main Django > project. from what I can see, mezzanine is not an app to run inside a 'main' django project, but a standalone project of it's own - I could be wrong as I have not tried it out. -- regards Kenneth Gonsalves

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Kenneth Gonsalves
permissions. Thanks I do not understand this - I was under the impression that django always serves files through a view in a template. So you can control what the viewer sees in your view. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups &

Re: Re:

2010-10-11 Thread Kenneth Gonsalves
or you and me' which i written by and Indian, so the language will be easier to grasp. -- regards Kenneth Gonsalves -- 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 un

Re: Django setup

2010-10-12 Thread Kenneth Gonsalves
it? I've already tried the path. well, you only need to do this once - after that you can use manage.py from within your project. So I would not bother about this. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: Executing queries across multiple models

2010-10-13 Thread Kenneth Gonsalves
on in Person.objects.all(): print person for collection in person.collection_set.all(): for itm in collection.items.all(): print itm -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: mtv pattern(diagram)

2010-10-13 Thread Kenneth Gonsalves
diagram: request --> url --> view --> model --> view --> template -->url --> view --> model --> view --> url --> view ... -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: mtv pattern(diagram)

2010-10-13 Thread Kenneth Gonsalves
; template ---> response > |^ > |-| > > > Wouldn't it ? Why not ? should urls not come in somewhere? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: admin not working (likely permission issue)

2010-10-14 Thread Kenneth Gonsalves
On Wed, 2010-10-13 at 22:07 -0700, yearnestiac wrote: > I'm having trouble to get admin to work with Ubuntu/Apache modpython or wsgi or what? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Hosting many small Django websites

2010-10-14 Thread Kenneth Gonsalves
- currently I have one wsgi per site. -- regards Kenneth Gonsalves -- 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 group, send email t

Re: I18n in Django model

2010-10-15 Thread Kenneth Gonsalves
care with it on my own. try django-transmeta -- regards Kenneth Gonsalves -- 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 group, send email t

Re: Path issue on Linux

2010-10-17 Thread Kenneth Gonsalves
Linux?Am working > on > Ubuntu 10.04. Thanks. what do you want to type instead of python manage.py ? -- regards Kenneth Gonsalves -- 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

Re: Path issue on Linux

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 14:34 +0200, Sithembewena Lloyd Dube wrote: > Just manage.py , instead of always having to specify the > program to > run the command with (python). anyway you got the answer - chmod -- regards Kenneth Gonsalves -- You received this message because you are subs

Re: About Thumbnails

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 19:26 +0530, Venkatraman S wrote: > Look into django-photologue. It has some thumbnail generation > functions, i > guess. this is the best: http://github.com/SmileyChris/easy-thumbnails -- regards Kenneth Gonsalves -- You received this message because you are s

Re: About Thumbnails

2010-10-21 Thread Kenneth Gonsalves
On Thu, 2010-10-21 at 13:53 +0300, Ekin Yalgın wrote: > It is a good extension, but in template page, > > > {% load thumbnail %} > ... > assume that the image field is named photo: will work (note it is not object.photo.url) -- regards Kenneth Gonsalves Senior Associ

<    1   2   3   4   5   6   7   8   9   10   >