Re: Users?

2007-07-13 Thread theju
Check out the Django-registration package on http://code.google.com/p/django-registration that has all the features that you require. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: JavaScript in template

2007-07-14 Thread theju
It is better you refer to the Django Documentation on serving static files http://www.djangoproject.com/documentation/static_files/ for greater clarity. Anyways here is the solution below: On Jul 14, 2:47 pm, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > Hi, how do I specify the source of JS scr

Re: is there any host servers that supports Django based sites?

2007-07-14 Thread theju
Hi Michael, Quite a few hosting services support Django (and also mod_python). Here is the list of Hosting Providers from the Django Website http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts On Jul 14, 4:09 pm, Michael <[EMAIL PROTECTED]> wrote: > I've been searching for free hosting serv

Re: Test response context & template always as lists?

2007-07-14 Thread theju
Probably this post would be best answered on the Django-developers list. Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ 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: Error from python manage.py syncdb

2007-07-16 Thread theju
Your postgresql database is not running. So $ su postgres then go to the postgres user's home directory and then $ postgres -D data/ The database server starts running...then try your syncdb...it'll work. Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ You recei

Re: Which database, and why?

2007-07-20 Thread theju
On Jul 20, 10:50 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I know that PostgreSQL is recommended, but why? Are the django > developers assuming a high-traffic, database intensive site. Are the > django developers assuming that you will not be using shared hosting? > I seems to me, that if you a

Re: How to implement Django-like models?

2007-07-21 Thread theju
[snipped] > Unfortunately, I do not really understand the code > that does all the magic in the django.db.models module. I don't think > it is possible to use Django models without a database. Therefore, > can anybody point me to some tutorial/documentation on how to do this > kind of meta progra

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread theju
Well almost every Ajax framework will work with Djangobut for your requirements, Scriptaculous (based on Prototype) fits perfectly. Check out http://script.aculo.us They also have an article on their wiki for integrating Django and Scriptaculous. Hope you find it useful. -Thejaswi Puthraya On

Re: We have telugu

2007-03-09 Thread theju
First of all let me congratulate Kenneth and his developers for their awesome work. Django will start catching on real fast in India now. Great Work MatesKeep it up. Regards Thejaswi Puthraya --~--~-~--~~~---~--~~ You received this message because you are su

Re: We have telugu

2007-03-10 Thread theju
Would love tobut is it available in the main packageor is there any way of obtaining it? On Mar 10, 9:42 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 10-Mar-07, at 8:59 AM, theju wrote: > > > First of all let me congratulate Kenneth and his developers for thei

Re: search criteria

2007-03-12 Thread theju
There is something called as Full text Search (i believe it is called TSearch2...not sure of the name though) in postgresql. Google for further info. If you use some other database you might have to use: 1) Xapian http://www.xapian.org 2) pyLucene http://pylucene.osafoundation.org/ 3) Swish-E (I

Re: Displaying previous entries

2007-03-13 Thread theju
Hi Björn, You can use the filter method to get the required output. The field lookup types will also be very helpful. So you could probably use Entry.objects.filter(your_datefield_lte = '2007-03-13') [:5] What the above piece of code does is it shows the last five entries from the Entry object w

Re: Displaying previous entries

2007-03-13 Thread theju
Oh sorry for the typo, the code should read as Entry.objects.filter(your_datefield__lte = '2007-03-13') [:5] (be wary of the double underscores) -Thejaswi Puthraya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Displaying previous entries

2007-03-13 Thread theju
Oh man...I am having such a bad day...too many typosreally sorry man. You can use the filter method to get the required output. The field lookup types will also be very helpful. So you could probably use Entry.objects.filter(your_datefield__lte = '2007-03-13') [:5] What the above piece of c

Re: Noob question about javascript files

2007-05-03 Thread theju
Since Javascript is a static file you have to define your js directory in your urls.py. I've used a lot of Javascript Libraries and all have worked successfully. First in urls.py (r'^js/(?P.*)$', 'django.views.static.serve', {'document_root': '/media/agora/js/lib/MochiKit/'}), And then in your

Saving Objects from Models??

2007-05-10 Thread theju
I have a class in a model(shown below). class Paper_UserReg(models.Model): def __init__(self,username,password,name_of_author,email_of_author,college_name,unique_id=None): self.username = username

Re: Saving Objects from Models??

2007-05-10 Thread theju
The data is sanitized (taken from a form,cleaned and put in hidden fields, confirmed by the user and then saved to a model...its just that i've not showed all the code) and only then am I posting it to the model. Anyways thanks for the idea on the super __init__ function. Will check it up... Tha

DJANGO_SETTINGS_MODULE undefined error

2006-12-07 Thread theju
Hi, I use Django 0.95 with python 2.4.4 on Fedora Core 6. I want to use the object_list generic view from django.views.generic.list_detail.object_list, but whenever i use the following command (in a python shell) >>> from django.views.generic import list_detail I get the following error. /// Trace

Re: DJANGO_SETTINGS_MODULE undefined error

2006-12-08 Thread theju
Thank You Baurzhan, Your tip worked, but how do we export variables in Windows (just curious) -Thejaswi On Dec 7, 8:15 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello Thejaswi, > > On Thu, Dec 07, 2006 at 09:59:28AM -, theju wrote: > > whenever i use the fo