Character Diff Utility

2012-03-07 Thread siva
Hi, Is there any utility to get file difference with character diff -- 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

Re: Django hgwebdir

2012-03-07 Thread siva
Hi , As of now we are looking hg repository via cgi Can we see hg repository using django instead of cgi ? Thanks, S.Sivakumar On Mar 7, 5:58 pm, Denis Darii wrote: > using django? hmmm... > > you can browse your current repo via http on port 8000 by launching: > > $ hg se > > or: > > $ hg s

Re: Problems creating django project in Windows 7

2012-03-07 Thread Mika
Thanks Jason. Putting python in front of 'django-admin' did work. I appreciate your help with this. I'm relatively new to Python and programming in general. All I've ever used is Windows and I don't know much about Linux-related operating systems. I'll probably go with Ubuntu because it seems ever

Re: send_mail problem

2012-03-07 Thread Scott Macri
UGH, I guess that wasn't the issue. Its back again. I don't know what the deal is. On Wed, Mar 7, 2012 at 9:29 PM, Scott Macri wrote: > I just figured this one out: > > Basically in the view I had the following just before calling the save > method on the database: > object.email_template = for

Re: Problems getting started

2012-03-07 Thread Shawn Milochik
On 03/07/2012 08:58 PM, Andres Reyes wrote: For me, the main reason to use virtualenv has nothing to do with security or anything like that, is the convenience of having different projects with different sets of requirements not interfering with each other It's really all about convenience. N

Re: send_mail problem

2012-03-07 Thread Scott Macri
I just figured this one out: Basically in the view I had the following just before calling the save method on the database: object.email_template = form.cleaned_data['email_message'] instead of object.email_message = form.cleaned_data['email_message'] The strange thing is that the data was actua

Re: send_mail problem

2012-03-07 Thread Scott Macri
This one never sends the message: print object.email_message some test text mailer.sendMessage('subject3',object.email_message,user.email,[person.email]) This one works fine: mailer.sendMessage('subject3','a test message here',user.email,[person.email]) On Wed, Mar 7, 2012 at 9:05 PM, Scott Ma

Re: send_mail problem

2012-03-07 Thread Scott Macri
It appears to be an issue with the content for the message being pulled from the database. I tried putting the text "text" in the database, and pulling it out and for some reason it prevents the message from being sent. The db field is configured as follows: email_message = models.CharField(max_l

Re: Problems getting started

2012-03-07 Thread Andres Reyes
For me, the main reason to use virtualenv has nothing to do with security or anything like that, is the convenience of having different projects with different sets of requirements not interfering with each other 2012/3/7 backdoc : > I've never set up virtualenv, so I can't speak to that.  But, ho

send_mail problem

2012-03-07 Thread Scott Macri
I'm having a strange issue with send_mail. I created a py script with a function to call send_mail. If I call the method via IDLE it works great. If I call the method with the exact same way with the exact same data via another script the message never gets sent. The strange thing is that an er

Re: Problems getting started

2012-03-07 Thread backdoc
I've never set up virtualenv, so I can't speak to that. But, how is installing Django the same way that I install any other application more of a risk? If an installer tries to write to /usr/local/bin/, then it needs elevated permissions to do so. I would assume from that point on, the remainder

Re: Why on_delete attribute is not available on GenericForeignKey?

2012-03-07 Thread akaariai
On Mar 7, 11:40 pm, Marc Aymerich wrote: > On Wed, Mar 7, 2012 at 9:13 PM, akaariai wrote: > > I believe the reason is efficiency. If there were an on_delete > > argument for GFKs every object deletion of any class would need to do > > a query to check if there happens to be any GFK related objec

Re: Problems getting started

2012-03-07 Thread Shawn Milochik
On 03/07/2012 05:21 PM, Andre Terra wrote: Again, don't install as root, use virtualenv. This will save you headaches in the future, and unless you have an inexcusable reason to have Django run as root, you shouldn't. Sincerely, AT +1. Also, there is no excusable reason to need to do it as ro

Re: Problems getting started

2012-03-07 Thread Andre Terra
Again, don't install as root, use virtualenv. This will save you headaches in the future, and unless you have an inexcusable reason to have Django run as root, you shouldn't. Sincerely, AT On Wed, Mar 7, 2012 at 6:28 PM, backdoc wrote: > I think you might need to install as root or sudo. > > F

Re: Why on_delete attribute is not available on GenericForeignKey?

2012-03-07 Thread Marc Aymerich
On Wed, Mar 7, 2012 at 9:13 PM, akaariai wrote: > I believe the reason is efficiency. If there were an on_delete > argument for GFKs every object deletion of any class would need to do > a query to check if there happens to be any GFK related objects. In > addition, Django can't guarantee foreign

Re: Problems getting started

2012-03-07 Thread backdoc
I think you might need to install as root or sudo. >From memory. sudo python setup.py install Also, try executing "which django-admin.py" at the terminal. That will tell you the location of the executable. Basically, I'm curious if it will even find it, as I'm thinking it didn't install at

output form html

2012-03-07 Thread backdoc
I am having trouble changing the way the HTML in my form fields is presented. I've been reading the docs (https://docs.djangoproject.com/ en/dev/ref/forms/api/#outputting-forms-as-html). I've done this in previous versions. But, it doesn't seem to work now. No matter if I use form.as_p or form.

Re: Why on_delete attribute is not available on GenericForeignKey?

2012-03-07 Thread akaariai
I believe the reason is efficiency. If there were an on_delete argument for GFKs every object deletion of any class would need to do a query to check if there happens to be any GFK related objects. In addition, Django can't guarantee foreign key consistency. In case of concurrent transactions it is

Re: User permission

2012-03-07 Thread Andre Terra
What I do: 1) Control user rights in views, always, no matter what. 2) Pass user perms to template so that you only display accessible, permitted links. Cheers, AT On Wed, Mar 7, 2012 at 2:10 PM, Xavier Pegenaute wrote: > Hi, > > Which one is the best option? > > a- Control the user rights in

using django with socketio

2012-03-07 Thread dobrysmak
Hi guys, long story short, i'm using* django-socketio* with my app on nginx + uwsgi + tcp_module and i cant get it to work with the browser on production server. Here's short conf Any ideas how to get it to wor

User permission

2012-03-07 Thread Xavier Pegenaute
Hi, Which one is the best option? a- Control the user rights in the views b- Control the user rights in the templates c- Control the user rights in both locations I guess is (c), but it's too much work. Thanks, Regards. -- You received this message because you are subscribed to the Google Gro

Re: Problems getting started

2012-03-07 Thread Andre Terra
On Wed, Mar 7, 2012 at 2:53 PM, Sandro Dutra wrote: > I don't know how it's works on a Linux box, but on Windows we've to put > Python/Scripts on PATH variable to use the command directly. Or you can use virtualenv like I mentioned in the other thread. Cheers, AT -- You received this messa

Using django and virtualenv on Mac OS X. (WAS: Getting Started with Mac OS X)

2012-03-07 Thread Andre Terra
You should use pip and virtualenv to create a sane development environment. This guide [1] is originally aimed at ubuntu/linux, but I think you can probably follow in mac os x as well. I've also listed a few other links with instructions that look alright, but that I haven't tested. Basically, do

Re: Problems getting started

2012-03-07 Thread Sandro Dutra
I don't know how it's works on a Linux box, but on Windows we've to put Python/Scripts on PATH variable to use the command directly. 2012/3/7 Clark > After installing Django I am attempting to start a new project. After > creating a directory for this, I tried using the command: "django- > adm

Re: Problems creating django project in Windows 7

2012-03-07 Thread Jason
Use python before all your commands. Even if you setup windows to automatically work without this, it's still a really good habit to get into. python django-admin.py My guess is that either will work or you have a problem with your python environment. Eventually you'll stop using Windows for Dja

Re: Getting Started with Mac OS X

2012-03-07 Thread Clark Corey
I am typing mine into a shell promptI posted the thread, but I don't know that it has posted yet...here it is: After installing Django I am attempting to start a new project. After creating a directory for this, I tried using the command: "django- admin.py startproject mysite". but I'm getti

django-stdimage admin TemplateSyntaxError

2012-03-07 Thread Randa Hisham
i use django-stdimage package and when i display the object n the admin i found this error Caught TemplateDoesNotExist while rendering: stdimage/admin_widget.html -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham

Use GraphDB with Django

2012-03-07 Thread Stephan Gerhard
Hi, With the Python package Bulbs/Bulbflow, I can interface graph databases and model my domain objects. http://bulbflow.com/quickstart/#domain-models What I would like to do is to define my domain models in this way and use them to query/update the graph db through my views in Django, instead of g

Re: Getting Started with Mac OS X

2012-03-07 Thread Tom Evans
On Wed, Mar 7, 2012 at 2:43 PM, Clark wrote: > I am having a similar issue, so I tried the $ pip uninstall django, > but I got a "IOError: [Errno 13] Permission denied" > > Advice? > > Thanks. > You should have started a new thread for your new error. The error here was that the new user was typi

Re: Getting Started with Mac OS X

2012-03-07 Thread Clark
I am having a similar issue, so I tried the $ pip uninstall django, but I got a "IOError: [Errno 13] Permission denied" Advice? Thanks. On Feb 28, 2:08 am, Praveen Rachabattuni wrote: > Hi, > > I am using on Mac OS X Lion and its working pretty well. > Seems there is something wrong with your d

Problems getting started

2012-03-07 Thread Clark
After installing Django I am attempting to start a new project. After creating a directory for this, I tried using the command: "django- admin.py startproject mysite". but I'm getting the message "-bash: django-admin.py: command not found ". So, I've tried running this: "sudo ln -s library/pyth

Why on_delete attribute is not available on GenericForeignKey?

2012-03-07 Thread Marc Aymerich
The django docs says: Unlike ForeignKey, GenericForeignKey does not accept an on_delete argument to customize this behavior; if desired, you can avoid the cascade-deletion simply by not using GenericRelation, and alternate behavior can be provided via the pre_delete signal. Does anyone knows why?

Re: serialization in Django

2012-03-07 Thread Rafael Durán Castañeda
On 03/06/2012 09:52 PM, shiji bijo wrote: ok I have removed the json.dumps() now the view is def do_GET(self, offset): data=get_object_or_404(NewAuction,pk=offset) context=serializers.serialize("json",[data]) return render_to_response("index.html",{"context":context}) an

Re: Django hgwebdir

2012-03-07 Thread Denis Darii
using django? hmmm... you can browse your current repo via http on port 8000 by launching: $ hg se or: $ hg se -n "Your repo" On Wed, Mar 7, 2012 at 1:39 PM, siva <85s...@gmail.com> wrote: > > > Is it possible can we see hg repository using django ? > > -- > You received this message because

Re: Live search

2012-03-07 Thread Karen Tracey
On Mon, Mar 5, 2012 at 11:25 AM, larry.mart...@gmail.com wrote: > I'm fairly new to django, still working on my first project. > > I have a page with some selection fields and a button. The user clicks > the button, I run a query, and display the result set on the page. > Works fine. > > Now I was

Django hgwebdir

2012-03-07 Thread siva
Is it possible can we see hg repository using django ? -- 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...@

User missing after login

2012-03-07 Thread Juan Carlos
Hello everybody! I am try to add registration in my django site., I am using django.contrib.auth.views.login via django-registration and I have set the next="/home_page/" param in the login form. The view asociated to / home_page/ is excuted, its return looks like this: return render_to_response(

Problems creating django project in Windows 7

2012-03-07 Thread Mika
Hi, I uninstalled and reinstalled django to see if that would solve things, but I still can't create a project. Here are the steps I'm taking: 1) Made sure the correct path was set so that the command prompt can find the django-admin.py file. Here's the path I set to locate the appropriate folder:

Re: Template filters and translations to russian language

2012-03-07 Thread Denis Darii
Try to change also the language of your browser, this because you have LANGUAGES = (('ru', 'Russian'), ('en_US', 'English')) and probably in your browser is set EN. Or force it to RU: from django.utils.translation import activate activate('ru') On Wed, Mar 7, 2012 at 12:20 PM, Tom Evans wrote

Re: Template filters and translations to russian language

2012-03-07 Thread Tom Evans
On Wed, Mar 7, 2012 at 9:38 AM, filias wrote: > Hi, > > I am developing a website in russian and the original is in english. We are > using the po file to translate the strings. > > My problem now is that when I use template filters, for example date or > localnaturalday the translations do not ap

Template filters and translations to russian language

2012-03-07 Thread filias
Hi, I am developing a website in russian and the original is in english. We are using the po file to translate the strings. My problem now is that when I use template filters, for example date or localnaturalday the translations do not appear. Everything appears in english. However, if I chang