Re: Issue Deploying Django

2012-08-01 Thread kenneth gonsalves
On Tue, 2012-07-31 at 20:52 -0700, JJ Zolper wrote:
> Do I need to go through and install the python like adapters is that
> what it's complaining about? I don't think this has to do with my
> Django code on the server it's just a file missing right?

you need to install pycopg - and it is nothing to do with your code
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: REMOVE ME

2012-07-29 Thread kenneth gonsalves
On Sun, 2012-07-29 at 14:32 +0800, Russell Keith-Magee wrote:
> On Sun, Jul 29, 2012 at 1:56 PM, David Lam <david.k.l...@gmail.com>
> wrote:
> > Try this from manage.py shell
> >
> >>>>DjangoMailListSubscription.objects.filter(email="collective...@gmail.com").delete()
> 
> Andrew obviously wants to unsubscribe. 

are you sure - he has asked a question on validation of an uploaded
file. He seems to have made a mistake on the subject line.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Can i use django book

2012-07-28 Thread kenneth gonsalves
On Sat, 2012-07-28 at 03:10 -0700, ACK-Django wrote:
> hi i m new to django and i have installed django1.4
> so can i use this book http://www.djangobook.com/en/2.0/
> but its little old, so people tell me its there any drawback of using
> this book 

better to do the tutorial in the docs.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need urgrnt help for this new bee...

2012-07-28 Thread kenneth gonsalves
On Fri, 2012-07-27 at 06:14 -0700, Soumen wrote:
> I have just configured the Django webserver on our local server

what do you mean by 'configured'? have you made your models, views and
templates?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Need urgrnt help for this new bee...

2012-07-27 Thread kenneth gonsalves
On Fri, 2012-07-27 at 04:39 -0700, Soumen wrote:
> 1) For one of my application I need to fetch images from server for
> showing on the client.
> 2) Those images will come from different web servers.
> 3) These images will be scraped by a python script and will be saved
> into the respective folders of the storage.
> 4) I will fetch those images via my client.
> 
> For that I am selected these technologies.
> #. For storing images and retrieving from the cloud I am using App42
> servers.
> #. I am using the Django as webserver.
> #. for cron job : celery
> 
> Now I need to run the scraping script in side the web server(Django)
> and will use celery for running this script periodically. This script
> will fetch those data from different server and will store in APP42
> cloud server. But dont know how to do that ... 

first tell us what you have done so far - then we may be able to guide
you further.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django TypeError

2012-07-18 Thread kenneth gonsalves
On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> On Tue, Jul 17, 2012 at 11:59 AM, @@ <ask...@gmail.com> wrote:
> >  u = User.objects.all()
> > u is not a user.
> >
> Oh yes, thank you for pointing.
> Please help me with this :
> How can I get the user id or 'u' of the user who has login using
> Django inbuilt authentication, so that I can give different views to
> the users based on there permissions ?
> Thanks in advance. 

request.user
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is upgrading to a newer Django version generally hassle-free?

2012-07-15 Thread kenneth gonsalves
On Sat, 2012-07-14 at 13:38 -0700, Daniel Roseman wrote:
> Django makes a fairly strong commitment to backwards compatibility
> across versions, which is documented here:
> https://docs.djangoproject.com/en/1.4/misc/api-stability/
> They guarantee that any documented api will only be deprecated with
> two versions warning: for example, the old function-based generic
> views were marked as pending deprecated in 1.3, fully deprecated in
> 1.4, and will be removed completely in the future 1.5 release. So
> upgrading is usually pretty safe. 

also django is one of the few projects where one can happily run
production sites on trunk, upgrading every tuesday.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error in blog

2012-07-12 Thread kenneth gonsalves
On Wed, 2012-07-11 at 23:29 -0700, jun wrote:
> I was trying out the blog example in Django by Example but ran into
> this error: 
> Reverse for 'blog_post_add' with arguments '()' and keyword arguments '{}' 
> not found.
> 
> I think it has something to do with the urlpatterns since there is
> no /blog/post/add configuration there, and tried a few variations but
> nothing worked. 
> 
> What should I do next? Any django docs I can refer to, as in how to
> link the blog_post_add with the main url? 

what version of django are you using - is it the same version that is
being used in the example?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: configure apache and mod_python

2012-07-11 Thread kenneth gonsalves
On Wed, 2012-07-11 at 01:03 -0300, Carlos Andre wrote:
> Hi, i'm with a hard problem. also, my apache have a problem he not
> want be stated, i try use the xamppy and now be sure that problem! As
> I put apache and mod_python to work? 

mod_python is deprecated - please do not use it. Use apache and mod_wsgi
instead.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: cleaned_data in forms.py?

2012-07-10 Thread kenneth gonsalves
On Tue, 2012-07-10 at 05:56 -0700, Leandro Alves wrote:
> But I have a question... in this case why do I need to send "None" in
> "get_form_kwargs"

None is the default value to prevent a crash
>  and why should I use the  "super(ContactForm2, self).__init__(*args,
> **kwargs)" after the init? 

well, that is python syntax for inheritance

(both questions relate to python syntax)
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Regarding Template langauge

2012-07-10 Thread kenneth gonsalves
On Tue, 2012-07-10 at 00:42 -0700, web_premi wrote:
> I want to know that whether django support jsp or not? as well as what
> kind of other langauges does django support like
> dhtml,php,jsp,asp? which best suite for it?

none of the above
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: rendering modelForms

2012-07-10 Thread kenneth gonsalves
On Tue, 2012-07-10 at 04:06 -0700, mapapage wrote:
> I already read that, but my question is how can I css-style only some
> of my fields while the rest continue to be rendered by form.as_table.
> Is there such an option?

that I do not think you can do. What you have to do is to drill down
into the form and massage the elements. Please look at this  code to get
a general idea. The code does not touch the css, but you can add css as
you please:

https://bitbucket.org/lawgon/fossconf/src/71c974a48f25/templates/web/edittalk.html



-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Release considerations

2012-07-10 Thread kenneth gonsalves
On Tue, 2012-07-10 at 08:24 +0200, Jon Black wrote:
> I've been working on a task management project and am at a point where
> I'm happy to make my first release. The idea is that people can
> install
> the project on their own server (at home, at work, wherever) and use
> it
> to manage their tasks.
> 
> What should I consider doing before making the code available to both
> make life easier for the users/keep private information out of the
> repository? 

first choose a license.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: rendering modelForms

2012-07-09 Thread kenneth gonsalves
On Mon, 2012-07-09 at 04:27 -0700, mapapage wrote:
> In my django app I'm using modelForms and not simple django forms so
> in order to render the form I just do  {{ form.as_table }} an the
> template and everything is being displayed.  That's simple, but
> obviously any html code is being skipped, so I wonder how will I
> further customize my form (css stuff etc)+(I'd like to use twitter
> bootstrap)  Is there any way? I also want to upload a file, but how am
> I going to add the required header   if form.is_multipart %} enctype='multipart/form-data'{% endif %}>
> since my form is being automatically rendered only by
> {{ form.as_table }}? It confuses me.. can anyone help? 

please paste your template
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Hi all.. Please help me to build a sample django project

2012-07-09 Thread kenneth gonsalves
On Mon, 2012-07-09 at 16:09 +0530, hanumanth abhilash wrote:
> Thanks for the quick reply. I've gone through the same document in
> pieces.

please go through it fully.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If using South, does it even matter what the underlying database is?

2012-07-07 Thread kenneth gonsalves
On Sat, 2012-07-07 at 12:34 +0100, houmie wrote:
> # "local" is for Unix domain socket connections only
> local   all all peer
> 
> to
> 
> # "local" is for Unix domain socket connections only
> local   all all trust
> 
> 
> Is this the normal approach?  Do I have to do the same thing on my 
> production box? 

instead of 'trust' use password
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-05 Thread kenneth gonsalves
On Thu, 2012-07-05 at 12:29 +0530, manish girdhar wrote:
> thanks for the help friend..after manipulate that thing i got an error
> of*
> *UnboundLocalError at /record_system/studentid/
> 
> local variable 'rollno' referenced before assignment 

error in indentation - it is difficult to check this from your mail, so
please paste the code in dpaste.com so that we can see what the exact
indentation is.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: map in django

2012-07-04 Thread kenneth gonsalves
On Wed, 2012-07-04 at 17:38 +0530, Satvir Toor wrote:
> Hello!!! Everyone
> I am new to maps in django.I want to display map in django application
> and to capture the latitude and longitude for that location and  to
> save in database. Please give me reference. 

http://duckduckgo.com/?q=maps+in+django
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: to add counter in the project

2012-07-03 Thread kenneth gonsalves
On Tue, 2012-07-03 at 04:16 -0700, Bharati Sharma wrote:
> thanks  kenneth ...but will it count those entries also which I will
> enter
> in the database after using filter() and count()? 

if you want to know the number of assistant profs do a query like this:

no_of_asstprofs =
Faculty.objects.filter(job_title='AssistantProf').count()

do not store this in the database - call it when you need it. If you
have a counter, you need to maintain it - increment when adding, reduce
when deleting - which also means setting up signals to adjust the
counter when a model is changed. A huge waste of time and energy.


-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Advices on what web programming language used in template?

2012-07-03 Thread kenneth gonsalves
On Tue, 2012-07-03 at 15:30 +0800, Yu Min wrote:
> I'm going through django structure. And while struggling to 
> understand the django usage, I start to wonder what web programing 
> language goes well with the template system. 

could you clarify your question please? Do you want to know what
programming language is to be used in templates? Or do you want to know
what programming language is to be used to program templates?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: to add counter in the project

2012-07-03 Thread kenneth gonsalves
On Tue, 2012-07-03 at 01:08 -0700, Bharati Sharma wrote:
> actually I am making project of faculty management system of my
> college.I
> have added some of the faculty member's resume in the database. i want
> a
> counter in my project that should increment its value whenever a new
> faculty member's resume is added into the database. yes, it will
> require
> filter also as i want it should count no of assistant professors,no of
> associate professors etc seperatelyhelp me please.. 

you are storing redundant data in the database - not good. If you want
the number of assistant professors, use filter() and count(). 
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Filter FieldError

2012-07-03 Thread kenneth gonsalves
On Tue, 2012-07-03 at 02:47 -0700, Saroja Parameswaran wrote:
>  Can anyone tell me the solution?

double underscore __
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Deployment: Apache2, wsgi (Debian squeeze)

2012-07-03 Thread kenneth gonsalves
On Tue, 2012-07-03 at 15:03 +1200, Matt Smith wrote:
> Now I feel I'm stuck 
> between that old way of doing things and the django/wsgi way which I 
> can't get my head around even after reading the docs. 

I would suggest that you start with trying to understand the concept of
virtual host in Apache. Try to set up a virtual host serving static
content at the start and once you understand that, things will start
falling in place (I am from a similar background from you, and thats how
I did 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Can't figure out how to obtain organized list of my friends

2012-07-03 Thread kenneth gonsalves
On Mon, 2012-07-02 at 20:31 -0700, Keith D. Cardin wrote:
> I'm trying to create a "my friends" page, which will list the user's 
> friends listed in alphabetical order.
> I have two classes involved with this data: Profile [and] Friendship
> 
> *class Friendship(models.Model):*
> friend= models.ForeignKey(User,
> related_name='friend1')
> friendwith  = models.ForeignKey(User,
> related_name='friend2')
> 
> *class Profile(models.Model):*
> user = models.OneToOneField(User,
> unique=True,
> verbose_name=_('user'),
> related_name='profile')
> first_name   = models.TextField(max_length=50)
> last_name   = models.TextField(max_length=50)
> 
> The exact raw SQL query [successfully tested] is as follows:: 
> *select profiles_profile.first_name,profiles_profile.last_name FROM 
> profiles_profile, friends_friendship WHERE profiles_profile.user_id = 
> friends_friendship.friendwith_id AND friends_friendship.friend_id =
> 30 
> ORDER BY first_name ASC;*
> *
> *
> My problem is I'm not sure how to do this in Python. 
> '30' is the user's id/pk. 

to get a list of friends of a particular user this may work:

first get the user:
me = Profile.objects.get(user = myuser)

then get the friend1
friends = me.fiiend1_set.all()

the confusing thing about your models is that it seems to me that your
Friendship model should be split into two models.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: unable to connect freenode

2012-07-02 Thread kenneth gonsalves
On Mon, 2012-07-02 at 22:51 -0700, Smaran Harihar wrote:
> Thanks for the reply. How can i register?

/msg nickserv help register
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: unable to connect freenode

2012-07-02 Thread kenneth gonsalves
On Mon, 2012-07-02 at 10:32 -0700, Smaran Harihar wrote:
> And so I tried clicking on the link where it said #django on
> irc.freenode.net and then I get a popup of application launching which
> will
> connect to the freenode.net for #django channel and I ok it, but then
> nothing happens. 

you need to register your nick and be identified, otherwise #django will
not let you in
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: help - a bit urgent please(import data to a csv file)

2012-07-02 Thread kenneth gonsalves
On Sun, 2012-07-01 at 22:43 -0700, sp20 wrote:
> My senior IT programmer has developed Django frameworks to monitor
> project 
> information locally, but unfortunately he left the company. I quickly
> need 
> to add an export option to those pages such that they can export all
> the 
> data from it. I have quickly gone through Django tutorial to get some
> idea. 
> I have found the following link 

take a look at this:
https://docs.djangoproject.com/en/dev/howto/outputting-csv/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Avoiding code repetition in views

2012-06-29 Thread kenneth gonsalves
On Fri, 2012-06-29 at 01:07 +0200, Christophe Pettus wrote:
> > I hope i have been clear
> 
> I'm going to take a guess and surmise that you have a lot of different
> view functions, each one of which needs to pass a list of gigs into
> the context for the template and then render that page, and you're
> trying to avoid repeating the code that builds the list of gigs.  Is
> that correct?
> 
> You might look at whether you really need all those separate view
> functions, or if they can be rolled together.  You might also look at
> using class-based Views in 1.4 as a way to factor out the
> gig-list-building code in a reasonable way. 

or use templatetags
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-28 Thread kenneth gonsalves
On Thu, 2012-06-28 at 03:25 -0700, bruno desthuilliers wrote:
> ROOT_URLCONF<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-ROOT_URLCONF>
> >  setting.
> >
> >
> >
> It's also in the FineManual. If you look at the doc's home page,
> you'll 
> find a very explicit reference to middlewares : 
> 
> https://docs.djangoproject.com/en/dev/#the-view-layer
> 
> Should I mention that there's a "search" feature in the doc too ? 

but that is not yet fixed, it does not do multiword searches - better to
use duckduckgo's site feature.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: language

2012-06-26 Thread kenneth gonsalves
On Tue, 2012-06-26 at 04:59 -0700, armagan wrote:
> I'm trying to write the month name from number. I have done. But
> month's 
> name is English. I want to change the name to Turkish. 

this may help you:
https://docs.djangoproject.com/en/dev/topics/i18n/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Hey

2012-06-26 Thread kenneth gonsalves
On Mon, 2012-06-25 at 05:01 -0700, bruno desthuilliers wrote:
> > How can I extract data from DB so that I can take that data n send
> it to 
> > templates to display graphs according to DataBase values .
> > How can I write view function for that?
> >
> 
> 
> Everything you need to know is here : https://docs.djangoproject.com 

do they mention how to put a meaningful subject line ;-)
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New to Django, need help starting

2012-06-20 Thread kenneth gonsalves
On Wed, 2012-06-20 at 13:15 +0200, Diego pascual lopez wrote:
> > try typing /path_to_django/bin/django-admin.py startproject
> >
> 
> If you don't know the path of the django-admin.py, you can type
> 
> #which django-admin.py 

it will say 'no django-admin.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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New to Django, need help starting

2012-06-20 Thread kenneth gonsalves
On Tue, 2012-06-19 at 19:57 -0700, Morris Zeitouni wrote:
> I just downloaded and installed Django. I am trying to run the command
> of 
> startproject, but when I type in "django-admin.py startproject
> iFriends," 
> Terminal is telling me-" -bash: django-admin.py: command not found."
> Why is 
> it not understanding the django- admin function?
> I am using Mac OS X 10.7.3, Django 1.4, and Python 2.7.2. 

try typing /path_to_django/bin/django-admin.py startproject

or 

symlink django-admin.py to /usr/bin/django-admin.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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Writing or editing files using Django

2012-06-19 Thread kenneth gonsalves
On Tue, 2012-06-19 at 00:40 -0700, Blaxton wrote:
> I am a newbie in Django and in need of some hints to 
> point in the right direction. 
> 
> I am building a new 
> application which users would enter some names and then 
> after 
> clicking on submit, some non .html files should be created or
> modified 
> while entered data should be inserted in some parts of the file that 
> have been created 
> or modified. also those files are not going to be
>  served in web, they are just 
> some static files located at 
> different locations in system for other uses. 

why use django? just plain html using cheetah or mako or jinja and some
python will do the trick.
> 
> should I start using template  to generate those non html files ? 
> does Django has
>  a module to create a file and capable of insert parameters to file ? 
> which python template is best suited and supported by Django ? jinja2 
> or mako or cheetah ? 

the django template language is best suited and supported by django - of
course you are free to use anything you want.
> 
> what is the best way of calling C++ 
> programs within Django ? 

subprocess.call()?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to trigger perl scrip in Django

2012-06-19 Thread kenneth gonsalves
On Mon, 2012-06-18 at 22:57 -0700, Pervez Mulla wrote:
> I am Newbie.recently started with django,how to trigger simple Perl
> script 
> in django project, 

this has nothing to do with django - use python. Search for
subprocess.call() (is some professor somewhere giving his students an
assignment?)
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: multiple databases [was]Trying to find something in multiple databases... Confused...

2012-06-18 Thread kenneth gonsalves
On Mon, 2012-06-18 at 05:12 -0700, Daniel Roseman wrote:
> Multiple databases is a whole different 
> question, which you really don't want to get into as a newbie (or,
> indeed, 
> at all if possible). 

could you elaborate on this - I was thinking on getting into multiple
databases and would appreciate your take.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:26 -0700, cmac0tt wrote:
> I was told by someone I had to use print() then write() then save.page
> to 
> pass the data permanently as opposed to just printing the data and
> losing 
> it. It didnt logically make sense to me, which is why I kind was
> hoping 
> people could explain their answers a little if possible rather than
> just 
> saying "do this"/ 

was the gentleman who told you that a python programmer? A print
statement just sends something to the console and is usually used to
debug. You have an empty print statement which will just print '()' on
the console. I have never heard of the write() statement as a python
builtin. Of course there is a whole lot of python I do not know, so I
may be wrong.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 15:52 +0530, kenneth gonsalves wrote:
> > 
> 
> what does write() do?
> 
> btw, line 56 in models needs to be indented
> lines 54 and 55 have a double indent. Why?
> lines 21, 22 and 32 will never be executed. 

oh, and your indents in 17 and 18 are not consistent with 21-22. A good
practice in python is to have *all* indents 4 spaces wide.

oops - you have a try statement in line 37, but no except statement.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:10 -0700, cmac0tt wrote:
> here is the dpaste: 
> 
> http://dpaste.com/760213/
> 
> 

what does write() do?

btw, line 56 in models needs to be indented
lines 54 and 55 have a double indent. Why?
lines 21, 22 and 32 will never be executed.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'ascii' codec can't encode character u'\xe4' [solved]

2012-06-15 Thread kenneth gonsalves
On Thu, 2012-06-14 at 08:26 -0700, bruno desthuilliers wrote:
> > apache + wsgi 
> >
> 
> 
> Ok, so that's the same setup we use... Are you/they using the 
> WSGIDaemonProcess and WSGIProcessGroup directives ? (I bet they do if
> it's 
> shared hosting and they know what's good for them).

yes
>  But anyway: I did not 
> test the damn thing thoroughly but IIRC the problem appeared whether 
> running daemon or embedded mode - the django process env is stil
> inherited 
> from the Apache process. Using os.setenv in the .wsgi script is
> _supposed_ 
> to cure the problem but our experience (here again I did not have time
> to 
> really explore the problem :-/) is that it often doesn't work (can't
> even 
> tell if it ever worked at all), so we alway end up editing apache conf
> - 
> which _is_ a know working solution.

they give users a small snippet of httpd.conf which we can edit - I put
this line:

SetEnv Locale UTF8

and it is working. Thanks for the hints, I now remember that I had
solved this problem long ago, but it is so long since I have used
apache, that i had forgotten 
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 23:46 +0200, Hendrik Speidel wrote:
> as an alternative you can provide your own Storage implementation like
> outlined here:
> 
> http://source.mihelac.org/2011/02/6/rename-uploaded-files-ascii-character-set-django/
> 
> 

I have told the client to use only ascii for the time being - but that
is not a solution - for example assume that the same files are
accessed/uploaded by other applications. 
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 04:19 -0700, bruno desthuilliers wrote:
> > I have an application which runs on a webfaction hosting.
> 
> 
> 
> How is it deployed exactly ? 

apache + wsgi 
> (sorry never used webfaction hosting for django - nor for anything
> else 
> FWIW)

not my choice, client choice
>  
> 
> > I also have 
> > the same app running on my devel machine. The code in the two
> machines 
> > are pulled from the same repo. Django versions are identical.
> Python 
> > versions are identical. I try to upload a file called Lisäinfo 
> > kummeille.pdf in the dev machine. No problem. When I try the same
> file 
> > in webfaction, I get the above error. I have checked and find I can
> use 
> > python to open and save a file of the same name from the python
> prompt 
> > in the webfaction shell. In templates, admin and and generated
> pdfs, 
> > these non ascii characters are handled perfectly. Has anyone got
> any 
> > clues about this?
> 
> 
> 
> 
> Each time I had this problem, it happened that the server process was
> using 
> Apache's default locale, and that Apache default's locale was "C", not
> the 
> utf8 locale configured for users. Not much of a problem for me since I
> have 
> admin access but that may not be the case with webfaction :-/

I think that should be it - my dev server runs nginx (and on my own
server I have root and anyway do not use apache.

-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
self.exists(name):
File
"/home/kenyakids/webapps/django/lib/python2.7/django/core/files/storage.py" in 
exists
  230. return os.path.exists(self.path(name))
File "/usr/local/lib/python2.7/genericpath.py" in exists
  18. os.stat(path)

Exception Type: UnicodeEncodeError at /admin/web/download/add/
Exception Value: 'ascii' codec can't encode character u'\xe4' in
position 71: ordinal not in range(128)


-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: image in browser

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 14:21 +0530, Satvir Toor wrote:
> > This is a strange thing to want to do. What are you doing with `img`
> in the
> > template?
> I am using image_data variable as a image source in the template(html
> file).
> 
> 
>  What should i ??? Image is not displaying.
> 
> 

from the questions you have been asking on the list it seems to me that
you are unfamiliar with web programming. I suggest that you take some
time out to learn the basics of web programming and also to understand
how django works. I suggest you do the tutorial in the official
documentation. Also you should learn at least the basics of javascript.
The problem you have been bringing up in the last week is not best
solved by generating an image on the server side and passing it to the
template. The problem is solved by generating the data server side,
passing this data to the template and using a js library to generate and
render the image on the 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Filter by today

2012-06-12 Thread kenneth gonsalves
On Tue, 2012-06-12 at 07:46 +0100, Simon Pickles wrote:
> result = Attempt.objects.filter(timestamp = date.today())

should it not be datetime.datetime.today()?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Validating a specific form field

2012-06-12 Thread kenneth gonsalves
On Tue, 2012-06-12 at 03:25 -0700, gnesher wrote:
> but this seems like a bad way of doing this (error message might
> change 
> etc.) Is there a better way to run the validation ? 

https://docs.djangoproject.com/en/dev/ref/forms/validation/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs in django

2012-06-12 Thread kenneth gonsalves
On Tue, 2012-06-12 at 11:24 +0530, Satvir Toor wrote:
> On Tue, Jun 12, 2012 at 11:15 AM, Alec Taylor <alec.tayl...@gmail.com>
> wrote:
> > Put it in the template or whatnot
> >
> > Might be an easier job for a javascript graph library, or even
> processing-js
> okie.But i am not clear with javascript graph libraray 

take a look at this:
https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs for my Django Application

2012-06-10 Thread kenneth gonsalves
On Mon, 2012-06-11 at 11:06 +0530, Tanveer Ali Sha wrote:
> Anyone knows about  Django-Chartit..??
> Is it good to make use of this for my application?? 

my rule of thumb - if an app has not had a commit in the last 3 months,
approach with care. (caveat I have not used the app) 
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: User registeration

2012-06-08 Thread kenneth gonsalves
On Fri, 2012-06-08 at 00:05 -0700, AJAYI THEOPHILUS wrote:
> i have just uploaded a django site http://www.kuuzar.com but when
> users  register it returns with the error IntegrityError at /accounts/
> register/
> 
> duplicate key value violates unique constraint
> "auth_user_username_key"
> DETAIL:  Key (username)=() already exists. 

that means that a user with that name has already been created.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Graphs for my Django Application

2012-06-08 Thread kenneth gonsalves
On Fri, 2012-06-08 at 12:50 +0530, Tanveer Ali Sha wrote:
> How can I provide graphs in my djnago application.I wanna implement
> this
> for my Network Analysis Application .

https://developers.google.com/chart/



-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re:

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 15:56 -0400, vinoth kumar renganathan wrote:
> i am getting the error as django.core.exceptions.ImproperlyConfigured:
> Error loading MySQLdb module: No module named MySQLdbin
> settings.py
> i used mysqldb so how to overcome this problem and my ubuntu is 32bit
> so
> anyone please give the correct solution 

install MySQLdb
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: about_dajngo

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 09:59 -0300, Andre Terra wrote:
> You can also use the Google Chart Tools, if you only need low to
> moderate
> complexity charts.
> 
> https://developers.google.com/chart/ 

very attractive results
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: url_dir

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 16:02 +0530, Satvir Toor wrote:
> I installed a application source code downloaded from Internet .
> Please explain me the following code that exists in urls.py file of
> the project.
> url(r'^pyrheology/plot/str/(?P\d+).png$',\
> 'pyrheology.views.str_tmc_plot_img',\
> name='pyrheology-str-tmc-plot-img'), 

it captures a name of the pattern 'a number of digits'.png and stores it
in a variable called 'str_tmc_id' and sends the same to a view function
called 'str_tmc_plot_img'

(as mentioned before, *please* do the tutorial)
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: about_dajngo

2012-06-06 Thread kenneth gonsalves
On Wed, 2012-06-06 at 12:26 +0530, Satvir Toor wrote:
> On Wed, Jun 6, 2012 at 10:47 AM, kenneth gonsalves
> <law...@thenilgiris.com> wrote:
> 
> > any library that you ordinarily use in your html pages will work.
> What are the major uses of numpy and matplotlib libraries in django. 

django is just python - any python library can be used in a view
function to generate data/information which can be passed to a template.
You will have to use some js library to render this data in the html
page. There are lots of these libraries available - from your question
it looks like you are not aware of how django works - I suggest that you
do the official tutorial or take a look at how django works with
reportlab to create pdfs.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: about_dajngo

2012-06-05 Thread kenneth gonsalves
On Tue, 2012-06-05 at 21:51 -0700, Satvir Kaur wrote:
> I have problem regarding the graphs in django. which libraries are
> required to plot graph in django framework. 

any library that you ordinarily use in your html pages will work.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: list of year form

2012-06-04 Thread kenneth gonsalves
On Tue, 2012-06-05 at 10:04 +0700, subtitle indo wrote:
> I want to create list of year select form.
> I know that i can generate the value using html.
> Is there a way to generate the value using forms API.
> 
> For example, i want to generate select field that display year from
> 1970-2011. 

I do not know if this is pythonic

def currentyear():
return datetime.today().year

BIRTH_YEARS = [(x,y) for x,y in enumerate(range(1970,currentyear()+1))]
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Retrieve datas from database

2012-06-04 Thread kenneth gonsalves
On Mon, 2012-06-04 at 05:23 -0700, by-neron wrote:
> i have a project called mysite and project has an application called
> blog. Project file has template/ directory which includes html files
> of site.Additionally, blog application has a model like that
> 
> class Post(models.Model):
> title = models.CharField(max_length=100)
> body = models.TextField()
> created = models.DateTimeField()
> tags = TaggableManager()
> 
> 
> def __unicode__(self):
>  return self.title
> in this app i have also view.py
> 
> from django.template import Context, loader
> from blog.models import Post
> from django.http import HttpResponse
> 
> def index(request):
> latestPosts = Post.objects.all().order_by('-created')[:5]
> t = loader.get_template('/mysite/templates/index.html')
> c = Context({
> 'latestPosts': latestPosts,
> })
> return HttpResponse(t.render(c))
> however,
> 
> in mysite/template/index.html
> 
>  {% for post in latestPosts %}
>  {{ post.id }}
> {% endfor %}
> prints nothing because it could not send data here. How can i send
> it ?
> 
> 

looks ok - what about your urlconf?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Sat, 2012-06-02 at 02:58 -0700, Houmie wrote:
> The good news is the problem is solved. A friendly chap in
> stackoverflow 
> actually bothered to look into it.
> 
> The problem is as simple as the translation files couldn't be found.
> For 
> some odd reason the important information about how Django locates
> them is 
> at the very last section of the documentation. It is really easy to
> miss.
> 
> All you have to do is to move the locale directory with the
> translation 
> files into your Application directory. Thats it !!! 

it may have solved your problem. But actually nowadays django looks into
settings.LOCALE_PATHS - could you check whether the svn revision number
you are using is less than 17860 or greater.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Fri, 2012-06-01 at 10:58 -0700, Houmie wrote:
> I would really appreciate it if somebody could help me with this.
> Working on this since this morning and am totally stuck..
> 
> 

could you try with revision 17860 and see if it works. I have the same
problem, and am stuck with 17860 - unfortunately I have been unable to
replicate the problem with a simple example.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: image files do not get deleted on deleting an object

2012-05-31 Thread kenneth gonsalves
On Thu, 2012-05-31 at 00:40 -0700, bruno desthuilliers wrote:
> > I have just noticed that on deleting an object, the images and files
> > stored on disk for this object do not get deleted. Is this a bug or
> a
> > feature?
> 
> https://docs.djangoproject.com/en/1.3/releases/1.3/#deleting-a-model-doesn-t-delete-associated-files
> 
> HTH 

thanks - makes sense.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



image files do not get deleted on deleting an object

2012-05-31 Thread kenneth gonsalves
hi,

I have just noticed that on deleting an object, the images and files
stored on disk for this object do not get deleted. Is this a bug or a
feature?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is Django Right for Me?

2012-05-30 Thread kenneth gonsalves
On Wed, 2012-05-30 at 12:01 -0400, Dennis Lee Bieber wrote:
> > other activities. The supervisor goes to the villages with netbooks.
> If
> > there is connectivity, he enters the data directly to the server on
> the
> > internet. If not, he has a local copy of the site running on his
> netbook
> > with a local copy of the database, synced before he leaves his
> office.
> > So he enters the data on that and later syncs it with the server. It
> is
> > not rocket science to write the scripts for syncing.
> 
> If there is only one "supervisor" doing this, it may not be
> difficult...
> 
> 

that is the use case of the OP - and I do not see a big problem if
multiple people do it. Yet to test it out in practice. After all that is
what a dvcs does.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Python IDLE

2012-05-30 Thread kenneth gonsalves
On Thu, 2012-05-31 at 00:13 +1000, Mario Gudelj wrote:
> It's not free but they have a 30 day trial period

if you have an active open source project they will give you a free
license
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is Django Right for Me?

2012-05-30 Thread kenneth gonsalves
On Wed, 2012-05-30 at 13:58 +0800, 马龙 wrote:
> can you explain your question more clearly ? Djanjo is a *FULL STACK*
> web
> dev framework 

is this addressed to me or to the OP? If it is to me, as an example, I
have a django site that monitors and reports on various construction and
other activities. The supervisor goes to the villages with netbooks. If
there is connectivity, he enters the data directly to the server on the
internet. If not, he has a local copy of the site running on his netbook
with a local copy of the database, synced before he leaves his office.
So he enters the data on that and later syncs it with the server. It is
not rocket science to write the scripts for syncing.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to tell apache to see my projects database file?

2012-05-30 Thread kenneth gonsalves
On Wed, 2012-05-30 at 01:11 -0700, doniyor wrote:
> hey man, problem solved. i did *chown www-data. .  *then *chmod 777
> dbfile *now 
> everything is working fine. thank you so much for your time and help. 
> 
> r u from europe? 

no
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to tell apache to see my projects database file?

2012-05-30 Thread kenneth gonsalves
On Wed, 2012-05-30 at 00:37 -0700, doniyor wrote:
> it says, invalid group www-data. but look, i am logged in as root
> with 
> 'su'. and i am doing all the commands here. is it correct, or should i
> be a 
> normal user? this doesnot make big difference right? 

in that case there is no need to use sudo. Try: 
chown -R www-data /directory_in_which_the_dbfile_is/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to tell apache to see my projects database file?

2012-05-30 Thread kenneth gonsalves
On Tue, 2012-05-29 at 23:29 -0700, doniyor wrote:
> okay, now it said nothing, the command went well. but the page is
> still 
> showing me error: unable to open database file. 

you need to chown -R
www-data:www-data /directory_in_which_the_dbfile_is/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to tell apache to see my projects database file?

2012-05-30 Thread kenneth gonsalves
On Tue, 2012-05-29 at 23:06 -0700, doniyor wrote:
> now i did 'sudo chgrp www-data . dbfile' but it says: invalid group 
> www-data. do i have to create it first? 

www-data is a user, not a group
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to tell apache to see my projects database file?

2012-05-29 Thread kenneth gonsalves
On Tue, 2012-05-29 at 22:45 -0700, doniyor wrote:
> my browser isnot openning irc url, i dont know why. 
> 
> thing is, root is running the apache. it means, i should chown root to
> all 
> my files right? 

wrong - www-data is running apache, so you should give www-data write
access to the db.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is Django Right for Me?

2012-05-29 Thread kenneth gonsalves
On Tue, 2012-05-29 at 09:05 -0500, Javier Guerra Giraldez wrote:
> On Tue, May 29, 2012 at 7:33 AM, KevinE <kelb...@elburyconsulting.com>
> wrote:
> > Just one question - why would django avoid an offline mode - is that
> a
> > completely unreasonable/undo-able extension?
> 
> Django is a web server framework.  when you're offline, you don't have
> a server. 

you can run a webserver on a netbook or laptop and run django too. If
you use sqllite, it is dead easy to sync your local db with the one on
the net the moment you get connectivity.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to do this?

2012-05-26 Thread kenneth gonsalves
On Sat, 2012-05-26 at 07:03 -0700, doniyor wrote:
> for example: user has selected 3 items from products table and then
> goes to 
> next step where he sees what he has selected and then he submits the 
> booking with some last information of his personal. the  point is that
> if 
> he has selected 3 items, then there are 3 items in db, so i create 3
> html 
> input fields for each selected item where i will render the data that
> i get 
> from db. thats why i want to create these html input fields according
> to 
> the number of items in db.. 

this is easily done with a for loop in the template
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to do this?

2012-05-26 Thread kenneth gonsalves
On Sat, 2012-05-26 at 01:08 -0700, doniyor wrote:
> Yeah, but then i dont create htmls. What i want is to create so many
> htmls as the number of objects in db. Is it possible to go around the
> “return“ till the end of loop? Then i will have all htmls created with
> rendered values. Is it possible to render a html particle wihthout
> return statement.. I am also thinking now.. 

use ajax?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to do this?

2012-05-26 Thread kenneth gonsalves
On Sat, 2012-05-26 at 00:17 -0700, doniyor wrote:
> hey guys, i need again a small help. i want to create so many htmls as the 
> number of objects of my model in db. i am trying, but it is stopping after 
> the first creation, because i am doing render_to_response and after the 
> first render_to_response it is not going to the second loop, because i 
> "return",  
> 
> how is it possible? 
> 
> this is my code.
>  
> for p in Produkt.objects.all():
> col = p.arg1
> row = p.arg2
> t = Template(' test ')
> c = Context({'col': col, 'row':row})
> html = t.render(c)
> return render_to_response('book.html', {'html': html}, 
> context_instance=RequestContext(request))
> return render_to_response('book.html', {'titel': titel}, 
> context_instance=RequestContext(request))
> 
> thanks many 
> 

possibly you need this:
in your view:
products = Product.objects.all()

and in your template:

{% for p in products %}
{{p.arg1}} {{p.arg2}}
{% endfor %}
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: loop over model ids ? possible ?

2012-05-25 Thread kenneth gonsalves
On Thu, 2012-05-24 at 23:19 -0700, doniyor wrote:
> hey guys, 
> i need to loop over the number of ids of objects in my db table and
> create 
> accordingly the same number of html fields. how can i do it.. my
> effort is 
> this: 
>  numberOfIds = Produkt.objects.count()
> i = 1;
> for i in range(0,numberOfIds):
> p = Produkt.objects.get(id=i)
> #lookup in db and create html input field depending on the
> #of 
> ids. 
> i=i+1 

i is not the id. 
for prod in Produkt.objects.all():
    do something with prod
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread kenneth gonsalves
On Wed, 2012-05-23 at 05:16 -0700, Waleria wrote:
> Exception Type: TypeError Exception Value: coercing to Unicode: need
> string or buffer, dict found 

you have to find out where in the code the error is coming. Then you
will find that you are passing a dict instead of a string.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: "Connection refused" with backend psycopg2

2012-05-23 Thread kenneth gonsalves
On Tue, 2012-05-22 at 22:51 +0200, Tanuva wrote:
> lately, I wanted to switch my database from the testing sqlite file to
> a
> more productive pgsql 8.4 server. Now I'm constantly getting a
> "connection refused" from the psycopg2 backend:
> http://dpaste.org/0Ezka/
> Database configuration: http://dpaste.org/QPjD2/ (not that verbose...)
> 
> Funny enough, connecting manually using psycopg2 in a python2 shell
> and
> using pgadmin to confirm changes done there works just fine, so there
> must be something in between. 

edit your pg_hba.conf file for suitable permissions
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Getting Started-Introduction

2012-05-22 Thread kenneth gonsalves
On Tue, 2012-05-22 at 14:35 +0500, vishrut mehta wrote:
> I am Vishrut Mehta,studing Computer
> Sci  and Eng. BTech 2nd year.I was just getting started with
> contributing
> to Open Source Community.So wanted to start from the thing i love like
> developing softwares,apps,website,etc.I dont have any previous
> experience
> working in any open source org,this would be the first time,so i want
> you
> to help me move ahead.
> I am very enthusiatic with the things that interest me,love to write
> codes
> in python.
> I am looking forward for a good response so you all can guide me
> ahead.
> Please give suggestions from where i could start working from?? 

this might be of interest:

https://code.djangoproject.com/query?status=!closed=1
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Image Update with Django - Admin site

2012-05-22 Thread kenneth gonsalves
On Fri, 2012-05-18 at 02:42 -0700, nishad wrote:
> 1. When i was uploaded/(browse) and saved an Article with an image
> (.jpg) , for the first time it saves perfectly
> as follows (smedia/images/misc/sample.jpg)
> 2. For the second time i have tried to update some textual contents in
> the article and saves once again through the same admin interface ,
> but this time image get saved as follows (smedia/images/misc/
> sample_1.jpg)
> 
> Issue :-
> It cause an image duplication in respective folder and also an error
> when page/template is rendered through browser.
> 
> Can any one please suggest a method to avoid the duplication of image
> on updating the existing one.
> 
> 

I am unable to replicate this. 
-- 
regards
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: where do you host your django app and how to you deploy it?!

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 13:18 +0100, Cal Leeming [Simplicity Media Ltd]
wrote:
> On top of this, I am yet to come across a decent django specific host
> (there's plenty out there, but none that I would consider recommending
> at
> this time). 

not even webfaction?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Add Language menu in Admin

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 09:19 +0200, BadStorm wrote:
> I want to add a language value to my model, to permit to user the 
> ability to add content in different languages that I configurated in
> the 
> setting.py. 

try out djangomodeltranslation
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: syncdb not creating columns in postgresql database

2012-05-15 Thread kenneth gonsalves
On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote:
> delete your app from INSTALLED_APPS and syncdb, AND list it again in 
> INSTALLED_APPS and syncdb again.. 
> 
> if it doesnot work, do this: 
> 
> delete your db, then syncdb, then list your app in INSTALLED_APPS and 
> syncdb again. 

this is bad advice. Syncdb will not give effect to changes within a
model. You need to carry out the change manually, or use a migration
tool like south.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 06:13 -0700, doniyor wrote:
> hey lawgon, one more question. i did the steps. but still not
> working. 
> could you please take a look into my whole project on server if i give
> you 
> the access thru PuTty? 


no problem - send me the username, password and url offlist.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 01:22 -0700, doniyor wrote:
> by the way, i am just on terminal, accessing the remote server via
> PuTTy. 
> so i should push the whole project to some repository and pull it into
> a 
> project folder on server from repository, right? 

right - but do not put the sensitive parts of your settings.py in the
repository - that is the only thing you need to edit manually on 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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 00:51 -0700, doniyor wrote:
> i configured my httpd.conf file, i told him where is my django.wsgi
> file. 
> the directory is this: /usr/local/django/mysite/myproject.   What i
> dont 
> understand is: during configuration, do i have to 'startproject'? or
> will i 
> just copy my djangoproject in this 'django' folder? 

neither. The correct way to do it is to use a version control system
like git or mercurial and pull from the repository. 
> 
> and.. my question is: how does apache finds my project actually? from
> which 
> file? from wsgi script file? there are too many steps and docs are
> not 
> clean to follow. what i did is this: 
> 1) installed mod_wsgi 
> 2) installed django
> 3) i created a folder 'django' under usr/local as shown in docs. 
> 4) in this django folder i did 'django-admin.py startproject mysite'
> 5) in this 'mysite' i created a folder 'apache', and in this apache
> folder 
> i created my django.wsgi script file. 
> 6) then i copied my actual django project which i developed locally
> into 
> mysite folder. 

as mentioned above, it is better to pull from a repository, but no 4. is
not necessary. 

> 
> 
> can you please tell me where to put my djangosite and what is
> document 
> root.

do not put it in docroot. Create a virtual host in apache and point the
virtual host to the location of the media files of the django project
using the Alias directive. Apache finds your project using the
WSGIScriptAlias directive.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: during putting my djangosite on server, i cannot restart the apache server, apachectl nor apache2 is not found. why?

2012-05-12 Thread kenneth gonsalves
On Fri, 2012-05-11 at 22:54 -0700, doniyor wrote:
> i think, i have SuSe. 

there are only about a 100 rpm based distros, I listed the most likely
ones.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: during putting my djangosite on server, i cannot restart the apache server, apachectl nor apache2 is not found. why?

2012-05-11 Thread kenneth gonsalves
On Fri, 2012-05-11 at 22:45 -0700, doniyor wrote:
> hey, thanks, now i can with 'service httpd restart'.

so you have redhat, fedora or centos - mention this when you ask such
questions.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: during putting my djangosite on server, i cannot restart the apache server, apachectl nor apache2 is not found. why?

2012-05-11 Thread kenneth gonsalves
On Thu, 2012-05-10 at 13:01 -0700, doniyor wrote:
> Hi there, i need a small help. as the titel says, i cannot restart
> the 
> apache, i can get the version of apache, so it is there, but i cannot 
> restart it. OS is Linux. what can be the problem, anyone has had
> experience 
> with this? 
> 
> 

there are over 200 linux distros - which one do you have?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i need to place my django site on a server, i dont know how to do it! help!!!

2012-05-10 Thread kenneth gonsalves
On Thu, 2012-05-10 at 05:23 -0700, doniyor wrote:
> i need a small help: i have a django site, which is ready to test. now
> i 
> talked to a hosting service, they had only php and mysql supporting
> server, 
> but not django. they gave me a virtual server, where i can install
> django 
> and put my site there. now i am stuck. i dont know how to install
> django on 
> server 

how did you install your site on your development machine (what os do
you have and what os in there on the vps?)
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Save Tweepy tweets in database

2012-05-08 Thread kenneth gonsalves
On Tue, 2012-05-08 at 03:19 -0700, coded kid wrote:
> I want to save users tweets in my db (MySQL) But I'm finding it
> difficult to get how I will go about it. The main problem is that, I
> didn't create any models for it, I just input the below codes in my
> views,since I'm getting users tweets through tweepy api.
> 
> The question now is, how will I save users tweets in my Database?
> 
> Kindly give me a reply if you know how I will solve this problem!
> Thanks. 

make a model to hold the tweets and save.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i18n - local translation does not show up - bug

2012-05-07 Thread kenneth gonsalves
On Mon, 2012-05-07 at 11:44 +0530, kenneth gonsalves wrote:
> > It'd be strange, but certainly possible, it is broken. We have
> > a test case checking that such feature works:
> > 
> >
> https://github.com/django/django/blob/master/tests/regressiontests/views/tests/i18n.py#L140
> > 
> > Could you reduce your failing case to the simplest form
> > and share it so we can do more research?. 
> 
> I was away - will do that now 

weird - I made a simple app with one model that has one field. Trunk
picks up the local translation - if LOCALE_PATHS is commented out, it
fails as expected. But in none of my older apps (one running for over 5
years) is this happening. Settings are identical in all the apps.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i18n - local translation does not show up - bug

2012-05-07 Thread kenneth gonsalves
On Thu, 2012-05-03 at 10:29 -0300, Ramiro Morales wrote:
> >
> > I had gone through the docs and added the LOCALE_PATHS setting - but
> it
> > just does not work - have tried on fedora, debian, ubuntu ...
> 
> Good to know that, I couldn't infer that from your initial email.
> 
> It'd be strange, but certainly possible, it is broken. We have
> a test case checking that such feature works:
> 
> https://github.com/django/django/blob/master/tests/regressiontests/views/tests/i18n.py#L140
> 
> Could you reduce your failing case to the simplest form
> and share it so we can do more research?. 

I was away - will do that now
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i18n - local translation does not show up - bug

2012-05-03 Thread kenneth gonsalves
On Wed, 2012-05-02 at 10:53 -0300, Ramiro Morales wrote:
> > I want two languages in my project - en and ta. I have set this up
> in
> > many projects over the years and this is the first time I am seeing
> > failure. The problem is that on switching to tamil, the django
> strings
> > are getting translated, but not the local strings. Django is
> obviously
> > not finding my local .mo file. Makemessages and compilemessages work
> > fine. My locale directory is at the same level as manage.py. Even if
> I
> > put it at the same level as settings.py, it still does not work.
> >
> > django version - latest trunk
> >
> > later: on checking, this works upto revision 17860 and breaks from
> 17861
> 
> Well if you are using the development version it is assumed you are
> closely
> following the development activity (so this kind of changes don't take
> you by
> surprise) and/or can read the Fine Manual where the decprecation
> and the steps you need to take are (and have been since Django 1.3 Apr
> 2011)
> documented.
> 
> Two hints: The Django 1.3 release notes and the LOCALE_PATHS setting.
> 
> 

I had gone through the docs and added the LOCALE_PATHS setting - but it
just does not work - have tried on fedora, debian, ubuntu ...
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



i18n - local translation does not show up - bug

2012-05-02 Thread kenneth gonsalves
hi,

I want two languages in my project - en and ta. I have set this up in
many projects over the years and this is the first time I am seeing
failure. The problem is that on switching to tamil, the django strings
are getting translated, but not the local strings. Django is obviously
not finding my local .mo file. Makemessages and compilemessages work
fine. My locale directory is at the same level as manage.py. Even if I
put it at the same level as settings.py, it still does not work. 

django version - latest trunk

later: on checking, this works upto revision 17860 and breaks from 17861
-- 
regards
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-04-27 Thread kenneth gonsalves
On Fri, 2012-04-27 at 08:47 +0200, Raphael Reumayr wrote:
> thanks for sharing your project data - this should boost developers
> income worldwide. Know what you are worth! 

In my country we do not charge by the hour - we try to guess how much
the client is willing to pay, and quote a sum higher than that. Then we
bargain - how would you factor this into your survey?
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Group administrator

2012-04-26 Thread kenneth gonsalves
On Thu, 2012-04-26 at 13:04 +0100, Marcin Tustin wrote:
> > On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote:
> > > I shall be grateful if the Group administrator would identify
> > > themself, as
> > > google does not make this information public.
> >
> > please drop this. From long experience with this list I can assure
> you
> > that any behavior against list policies is promptly quashed here -
> there
> > is no need to make a fuss and complain - the list admins are on the
> job.
> >
> 
> If the admins are doing their job, there is no reason for them to
> refuse to
> identify themselves. 

https://docs.djangoproject.com/en/1.4/internals/committers/
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Group administrator

2012-04-26 Thread kenneth gonsalves
On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote:
> I shall be grateful if the Group administrator would identify
> themself, as
> google does not make this information public. 

please drop this. From long experience with this list I can assure you
that any behavior against list policies is promptly quashed here - there
is no need to make a fuss and complain - the list admins are on the job.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: problem with syncdb in geodjango tutorial

2012-04-25 Thread kenneth gonsalves
On Wed, 2012-04-25 at 08:44 +0300, Jani Tiainen wrote:
> > am using postgis on Fedora 16 and django trunk
> >
> 
> I've seen that error when you try to create new column in postgis 
> database with SRID that doesn't exists in postgis srid definitions.
> 
> You can check does SRID exist in database:
> 
> select * from spatial_ref_sys where srid=;
> 
> I suppose you did provided some SRID when defining column in model... 

no - I had not installed spatial_ref_sys - the installation instructions
for fedora are a bit vague. Works now, thanks.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



problem with syncdb in geodjango tutorial

2012-04-24 Thread kenneth gonsalves
hi,

I am following the geodjango tutorial, and when doing syncdb, I get the
following error:

[lawgon@xlquest geodjango]$ python manage.py syncdb
Creating tables ...
Creating table world_worldborder
Installing custom SQL ...
Installing indexes ...
Failed to install index for world.WorldBorder model:
AddGeometryColumns() - invalid SRID
CONTEXT:  SQL statement "SELECT AddGeometryColumn('','',$1,$2,$3,$4,$5)"
PL/pgSQL function "addgeometrycolumn" line 5 at SQL statement

am using postgis on Fedora 16 and django trunk

-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New to Jdango - What IDE to use?

2012-04-23 Thread kenneth gonsalves
On Mon, 2012-04-23 at 15:01 +0300, Timothy Makobu wrote:
> I have one of those actually, but that's coz I have a project that's
> been
> around a while. They actually checked out the googlecode page. 

for me too
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: New to Jdango - What IDE to use?

2012-04-23 Thread kenneth gonsalves
On Mon, 2012-04-23 at 14:54 +0300, Timothy Makobu wrote:
> If you can spare a few bux, get PyCharm. It's the best.

they give open source licenses for free.
-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



  1   2   3   4   5   6   7   8   9   10   >