Re: Is there a way to insert data from a csv file into my database?

2011-07-25 Thread km
pls try "copy" in postgres. KM On Mon, Jul 25, 2011 at 7:46 PM, Josh <jos.carpente...@yahoo.com> wrote: > pgloader is for Postgres I think. If it has to be to a single table it > shouldn't be that difficult in Python: > > > 1) get sqlalchemy and declar

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread km
{{MEDIA}} or {{STATIC}}; which is much simpler than meddling with STATIC or MEDIA variables. Isnt it ? KM > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@g

Re: class based views

2011-05-12 Thread km
ah! thanks - thisis what i require. regards, KM On Thu, May 12, 2011 at 1:31 PM, Michal Petrucha <michal.petru...@ksp.sk>wrote: > On Thu, May 12, 2011 at 12:26:13PM +0530, km wrote: > > Hi all, > > > > I do not find any help page on migrating existing functi

class based views

2011-05-12 Thread km
Hi all, I do not find any help page on migrating existing function based views (defined in views.py of django app) to class based views in django.1.3 pointers and help appreciated. regards, KM -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Is there any Open Source Django Newspaper CMS?

2011-03-24 Thread km
try https://www.django-cms.org/ KM On 3/24/11, Rehmetjan Tursun <rehmetjan.tur...@gmail.com> wrote: > Thanks Shacker, this is really helped me. this is really what I want to. > Ellington is Commercial, not for free. Armstrong CMS is good and open > source. > but it says it wil

Re: mod_wsgi or mod_fcgi

2011-02-25 Thread km
yes nginx+uwsgi seems to be the best combination for django. KM On Fri, Feb 25, 2011 at 5:36 AM, Eugene MechanisM < eugene.mechan...@gmail.com> wrote: > > I used this for several months, and encountered all kinds of horrible > memory > > allocation problems, crashes

handle runtime exceptions in django view functions

2011-02-06 Thread km
Hi all, How do I log exceptions to a file from view functions at runtime ? I am using nginx (0.8.54) + uwsgi (0.9.6.7) + django(1.2.4) setup with python 2.7 the uwsgi doesnt seem to log any errors from the django views even when I use --logto option for uwsgi pls let me know thanks, KM -- You

Re: Amazing work

2011-02-02 Thread km
u manage to avoid stumbling over > django all these years? > -- > regards > KG > http://lawgon.livejournal.com > Coimbatore LUG rox > http://ilugcbe.techstud.org > Hi KG, Pls dont drag the post unnecessarily. This is not your ilugc mailing list. KM > You received this m

Re: django + cherokee configuration problem

2011-01-23 Thread km
oints to /path/to/mymedia and the django project root points to /path/to/myproject but still i have the same issue. regards, KM > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-user

django + cherokee configuration problem

2011-01-23 Thread km
fined name does not work (viz., www.example.com) when used as url in a browser. 5) How do I display (render) "myproject" on the browser using http://localhost/myproject OR http://www.example.com ? which is the correct way ? pls let me know regards, KM -- You received this message because

Re: templates - pulling child templates

2011-01-21 Thread km
Hi all, The docs say we can have multiple child templates extending the parent template. But then how to render multiple child templates in one call ? regards, KM On Fri, Jan 21, 2011 at 8:14 PM, km <srikrishnamo...@gmail.com> wrote: > > Hi all, > > On Fri, Jan 21, 2011

Re: templates - pulling child templates

2011-01-21 Thread km
Hi all, On Fri, Jan 21, 2011 at 6:03 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Friday, January 21, 2011 12:08:57 PM UTC, km wrote: >> >> Hi all, >> >> I am trying to display a parent django template (base.html) with a view >> function called &

templates - pulling child templates

2011-01-21 Thread km
ils, which extend base.html does not get pulled automatically. both base.html and child html are in the same dir. I am using django 1.2.4 on ubuntu 10.10 what could be the problem? pls let me know. regards, KM -- You received this message because you are subscribed to the Google Groups "Djan

newbie

2011-01-15 Thread km
) ? 2) jquery-ui provides widgets otherthan those act on form elements. for example most jquery widgets manipulate elements to make tabs or accordion appear. In that case does the ui-design have to be manually designed and restricted to the templates ? pls let me know. thank you regards, KM

django-tagging generic view

2010-01-03 Thread ~km
Hello, I'm using the `django-tagging`v0.3.0( http://code.google.com/p/django-tagging/ ) app for tagging my blog posts (obviously). Now I wanted to create a view, which takes a tag and returns all related posts, posts which have the same tag. My code: from tagging.views import

Re: django 1.1 - Fetching month based data.. No data

2009-12-20 Thread ~km
Sorry I couldn't finish it all... Here's the complete post: http://pastebin.com/f36abac82 -- 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

django 1.1 - Fetching month based data.. No data

2009-12-20 Thread ~km
Problem plot: I get no data (blog entries) when querying the monthly and daily archive, making use of the date based generic views from Django 1.1. Can you see the problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Creating a Django project alike stackoverflow.com

2009-12-01 Thread ~km
Thanks for the many, great answers! First off I'm not surprised that I'm not the first with the idea, but I'm surprised that there are so many projects running, trying to clone SO. Does anyone have experience with SOclone and Co.? I'll be trying it/ them tonight, and see what they're like...

Creating a Django project alike stackoverflow.com

2009-11-30 Thread ~km
Hello, I'm a Python enthusiast and Django newbie. I'm trying to develop a website with an "Ask and Get an Answer"-Interface, with the goal to get a strong community; see http://stackoverflow.com to get an idea. For more information on stackoverflow.com see

threadlocals, created_by and save problem

2006-09-27 Thread Ganesh KM
Hi,    i am using http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser to automatically add updated_by and created_by info, class Entry(models.Model):    name = models.CharField('name', maxlength=100)     content = models.TextField('content')     created_by = models.ForeignKey(User,