Re: URL Hierarchy on a given page

2012-10-02 Thread creecode
Hello JJ Zolper, What you are describing is commonly called breadcrumbs. Hopefully that tidbit will help yield more search results. On Tuesday, October 2, 2012 9:03:06 PM UTC-7, JJ Zolper wrote: So I was reading this page to try to find a solution: > >

Re: Problems with first tutorial

2012-10-02 Thread CG
Hi Russ, Thanks for the warning. I have actually worked a little with django before so am not a starter. I work with Python 3 on a daily basis and am more interested in getting django to work with it. Hence I am using the dev version. Thanks for the input. I will get the latest asap. -- You

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Laxmikant Gurnalkar
Okay, Thanks. Will hv to do that. On Wed, Oct 3, 2012 at 9:54 AM, Russell Keith-Magee wrote: > On Wed, Oct 3, 2012 at 12:19 PM, Laxmikant Gurnalkar > wrote: > > Hi, > > Thanks for the suggestion Russell, > > I never felt insecure when I

Re: Autoescape of & char ignoring safe filter

2012-10-02 Thread Laxmikant Gurnalkar
>>>I have not used *safe* ever. But use *escape* this works for me. On Wed, Oct 3, 2012 at 9:54 AM, Laxmikant Gurnalkar < laxmikant.gurnal...@gmail.com> wrote: > Hi, > I have not used *sace* ever. But use *escape* this works for me. >

Re: Autoescape of & char ignoring safe filter

2012-10-02 Thread Laxmikant Gurnalkar
Hi, I have not used *sace* ever. But use *escape* this works for me. https://docs.djangoproject.com/en/1.0/ref/templates/builtins/#escape Cheers *Laxmikant G.* On Wed, Oct 3, 2012 at 4:06 AM, Marc Serra wrote: > Hi, i'm trying to output raw html content form the database on

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Russell Keith-Magee
On Wed, Oct 3, 2012 at 12:19 PM, Laxmikant Gurnalkar wrote: > Hi, > Thanks for the suggestion Russell, > I never felt insecure when I dont use csrf. Since I hv disabled. > anyways, Thanks again. I don't want to appear rude, but I suspect the only reason you don't

Re: CSS not rendering on local server development

2012-10-02 Thread Jim Wombles
Well, your suggestion actually caused an error that helped me debug what was going on. Silly mistake of forgetting the comma at the end of the tuple in staticfiles_dirs. Cheers to you. On Wednesday, October 3, 2012 12:07:33 AM UTC-4, JJ Zolper wrote: > > Off the top of my head I forget what

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Laxmikant Gurnalkar
Hi, Thanks for the suggestion Russell, I never felt insecure when I dont use csrf. Since I hv disabled. anyways, Thanks again. *Laxmikant* On Wed, Oct 3, 2012 at 4:41 AM, Russell Keith-Magee wrote: > On Tue, Oct 2, 2012 at 1:36 PM, Laxmikant Gurnalkar >

Re: Newbie question - setting a model form foriegn key

2012-10-02 Thread Laxmikant Gurnalkar
Hi, I think yes, Otherwise database will raise an integrity error, like Foreign key violates the not null constraint. *--Laxmikant* *G.* On Tue, Oct 2, 2012 at 12:51 PM, Keir Lawson wrote: > Thanks for your reply :-) > > So there's no way to use a model form to

Re: CSS not rendering on local server development

2012-10-02 Thread JJ Zolper
Off the top of my head I forget what kinks I ran into when trying to get CSS to load on my development server. I'll try and come up with things I remembered and let you know if I do. One thing in Chrome that I tend to have to do (probably why firefox is better in this case) is I have to clear

URL Hierarchy on a given page

2012-10-02 Thread JJ Zolper
Hello everyone, So I was reading this page to try to find a solution: https://docs.djangoproject.com/en/dev/topics/http/urls/ but I would like to hear any ideas. What I'm trying to do is basically give the relevant URL hierarchy for any page on my website. (That's the best I can put it into

CSS not rendering on local server development

2012-10-02 Thread Jim Wombles
Greetings, I am at a loss as to why local server is unable to render the css and js files. I have the static_dirs setting correct and the href link to the files is correct, and the html file is rendering yet when I track what is going on with Chrome Dev Tools it is unable to find the CSS and JS

Re: Add your own template library

2012-10-02 Thread Ashish Jain
And in settings.py, I have: TEMPLATE_TAGS = ( 'templatemyweb.tags.repeat', ) with which I am using this code snippet, * http://djangosnippets.org/snippets/342/* * * - Regards Ashish On Monday, 1 October 2012 18:01:48 UTC+5:30, Javier Guerra wrote:

Re: How to translate Lookup values in Django?

2012-10-02 Thread Houman
Thanks Juan. Well that is certainly possible. But then we have also some other lookups like the country, which is a lookup of 139 values. It would be difficult to keep that in the model itself. ;-) But you are right about smaller lookups. Regards, Houman On 3 Oct 2012, at 01:57, Juan Pablo

Re: How to translate Lookup values in Django?

2012-10-02 Thread Juan Pablo Martínez
GENDER_CHOICES = ( ('male', _(u'Male')), ('female', _(u'Female')), ) gender = models.CharField(_(u'Sex'), max_length=10, choices=GENDER_CHOICES) On Tue, Oct 2, 2012 at 7:23 PM, Houmie wrote: > Django has an excellent support for internationalization, any English >

Re: New Project 403 Forbidden Error

2012-10-02 Thread John Yeukhon Wong
Just a quick question. Is is possible for you to manually setup this without bothering cpanel? I mean u should have access to CentOS (ssh into it) right? Then the setup should be very easy if you have that. I will use Nginx + gunicorn if you really have that option. I want to make sure you do

Re: Problems with first tutorial

2012-10-02 Thread Russell Keith-Magee
On Wed, Oct 3, 2012 at 6:52 AM, CG wrote: > Sorry for the late reply since I saw this only now. I also have the dev > version of Django installed and ran into this error. > Seems like this is an error in the django code. I was able to bypass this > and fire up the

Re: select_related and use_for_related_field

2012-10-02 Thread John Bazik
Okay, I see now. Can't do that. Never mind. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/5S6X8Bpl0kAJ. To post to this group, send email to

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Russell Keith-Magee
On Tue, Oct 2, 2012 at 1:36 PM, Laxmikant Gurnalkar wrote: > Comment the csrf from settings. Please be *very* careful giving this advice. Advising someone to disable CSRF will almost universally be the wrong advice. By disabling CSRF, you're exposing your site to

Re: Problems with first tutorial

2012-10-02 Thread CG
Sorry for the late reply since I saw this only now. I also have the dev version of Django installed and ran into this error. Seems like this is an error in the django code. I was able to bypass this and fire up the shell by just commenting the 'import user' line in shell.py in

Re: Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
Ahh! By sheer coincidence, it was actually me that integrated the latest SOCKS/proxy support you see in urllib3 lol. Basically, the current proxy handling is quite badly broken and required a bunch of fixes. I submitted a stable set of patches for integration here;

Autoescape of & char ignoring safe filter

2012-10-02 Thread Marc Serra
Hi, i'm trying to output raw html content form the database on the website, so i use the safe filter on the variable. All html code is displayed correctly except the ampersand that are escaped ignoring the safe filter, or It seems to me. I also tried to use a templatetag with the mark_safe

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 9:45 PM, Dennis Lee Bieber wrote: > On Tue, 2 Oct 2012 17:23:01 +0100, Tom Evans > declaimed the following in gmane.comp.python.django.user: > > > > > I did not say that it was not a desired feature, I said that > >

How to translate Lookup values in Django?

2012-10-02 Thread Houmie
Django has an excellent support for internationalization, any English expression within Models, Forms, View or template can easily be marked for translation. However I came across an interesting situation I don't know how to deal with. I have a Gender lookup (Male, Female). Now even if I

Re: django-db-log import Exception

2012-10-02 Thread Angel
I have the same problem, how do you fix it? El lunes, 30 de enero de 2012 12:11:26 UTC-5, Timothy Makobu escribió: > > Naa, looks too bloaty for me. I'll just write midleware and do the > logging inside process_exception() > > On Mon, Jan 30, 2012 at 7:45 PM, Babatunde Akinyanmi >

Re: Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Victor Hooi
heya, Thanks for the tips - you're probably right, I might need to whip out wireshark or something and see what exactly is going on. However, one thing I did notice - I normally have the http_proxy environment variable set, as we use a HTTP proxy at work. However, if I unset the http_proxy

Re: Running Shell script to run Django shell and then scp files to server...

2012-10-02 Thread Gelonida N
On 10/02/2012 04:47 PM, Tom Evans wrote: On Tue, Oct 2, 2012 at 3:09 PM, Chris McComas wrote: I have a script in Django that I run manually 'python manage.py shell' and then 'from sports import scores' and it goes out and pulls scores from a couple URLs, modifies the

Re: django.contrib.markup "Deprecated in Django 1.5"??

2012-10-02 Thread JC Briar
Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/KpLI-foHRJoJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 5:23 PM, Tom Evans wrote: > On Tue, Oct 2, 2012 at 4:43 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > > > > > On Tue, Oct 2, 2012 at 3:51 PM, Tom Evans > wrote: > >> > >> On

Re: django.contrib.markup "Deprecated in Django 1.5"??

2012-10-02 Thread creecode
https://groups.google.com/forum/#!searchin/django-users/markup/django-users/iwfuDFFAltI/hOOGii98eQAJ On Tuesday, October 2, 2012 8:46:05 AM UTC-7, JC Briar wrote: Can someone please explain to me why the dev version of the docs for >

Rationale of referrer checking for HTTPS in CSRF middleware

2012-10-02 Thread xlq
Being someone who disables the referrer header in my browser, I was surprised to find I can't use Django's CSRF middleware with HTTPS but without a referrer header. Trying to find out why, I came across the following: "The attacker can set the CSRF cookie using Set-Cookie, and then supply a

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Tom Evans
On Tue, Oct 2, 2012 at 4:43 PM, Cal Leeming [Simplicity Media Ltd] wrote: > > > On Tue, Oct 2, 2012 at 3:51 PM, Tom Evans wrote: >> >> On Tue, Oct 2, 2012 at 3:22 PM, Dirley wrote: >> > I've recently discovered

django.contrib.markup "Deprecated in Django 1.5"??

2012-10-02 Thread JC Briar
Can someone please explain to me why the dev version of the docs for django.contrib.markupbegins with the statement "Deprecated in Django 1.5: This module has been deprecated"? Deprecated why? Is something better coming in Django 1.5,

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, my previous reply looked like I was disagreeing with the OP, this is not the case. I was disagreeing with this comment; Sessions aren't tied to specific users, and so cannot easily be invalidated like that. Personally, I wouldn't have the expectation that changing my password would

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Oct 2, 2012 at 3:51 PM, Tom Evans wrote: > On Tue, Oct 2, 2012 at 3:22 PM, Dirley wrote: > > I've recently discovered this issue with my django based application. > > > > When a users changes its password, its active sessions are not

Save formtools.WizardView for later completion in another session?

2012-10-02 Thread Alex S-B.
I have a long multi-page form wizard (a django.contrib.formtools.wizard.views.SessionWizardView) that I would like the user to be able to continue working through even after logging out and back in from a different computer. That is, I would like the wizard data to persist across sessions

[no subject]

2012-10-02 Thread Suchindra Chandrahas
-- 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

Re: Invalidating active sessions after a password change?

2012-10-02 Thread Tom Evans
On Tue, Oct 2, 2012 at 3:22 PM, Dirley wrote: > I've recently discovered this issue with my django based application. > > When a users changes its password, its active sessions are not destroyed. > I mean, if a user is logged in two different places (or in two different >

Re: Running Shell script to run Django shell and then scp files to server...

2012-10-02 Thread Tom Evans
On Tue, Oct 2, 2012 at 3:09 PM, Chris McComas wrote: > I have a script in Django that I run manually 'python manage.py shell' and > then 'from sports import scores' and it goes out and pulls scores from a > couple URLs, modifies the data, and saves it to a SQLite

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Cheng
Hi Laxmikant, Do you mean this statement (I can't find any other that refers to csrf) in settings 'django.middleware.csrf.CsrfViewMiddleware', I commented it, but it still gives me error 61 - Connection refused. Thanks, Cheng Hong On Monday, October 1, 2012 10:36:43 PM UTC-7, Laxmikant

Invalidating active sessions after a password change?

2012-10-02 Thread Dirley
I've recently discovered this issue with my django based application. When a users changes its password, its active sessions are not destroyed. I mean, if a user is logged in two different places (or in two different browsers) and changes its password on one place, the other session will still be

Running Shell script to run Django shell and then scp files to server...

2012-10-02 Thread Chris McComas
I have a script in Django that I run manually 'python manage.py shell' and then 'from sports import scores' and it goes out and pulls scores from a couple URLs, modifies the data, and saves it to a SQLite database. Once that process runs I manually scp my files to a server... What I'd like to

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
Well bug was closed because it fixed the issue back then. I suspect that internals of query has been changed between 1.3 and 1.4 that causes now a new problem. Main issue is that when inserting or updating value cx_Oracle interpreted NULL value for OBJECT field when placeholder (%s) as a

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
Well, the bug was closed. You can try inserting empty geometries, but then, you would need to recheck them if they are something before using. A property might suit you well in this case. if self.geometry.empty: > return None Hackish, but it's Oracle Spatial :o On Tue, Oct 2, 2012 at 9:49

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
I guess all this is related to special munging required by Oracle: https://code.djangoproject.com/ticket/10888 2.10.2012 15:12, George Silva kirjoitti: Then it's probably Oracle, which is riddled with bugs on the spatial part. I'm using PostGIS. On Tue, Oct 2, 2012 at 8:38 AM, Jani Tiainen

Re: Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi Victor, I've had my fair share of exposure with python requests - so thought I'd chime in. On first glance, this looks to be an issue with specifying the port number into python-requests, doing so seems to send the entire " http://localhost:8000/api/v1/host/?name__regex==json; as the request.

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
Then it's probably Oracle, which is riddled with bugs on the spatial part. I'm using PostGIS. On Tue, Oct 2, 2012 at 8:38 AM, Jani Tiainen wrote: > > 2.10.2012 14:34, Jani Tiainen kirjoitti: > > 2.10.2012 14:06, George Silva kirjoitti: >> >>> This is puzzling. I'm on 1.4.1

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
2.10.2012 14:34, Jani Tiainen kirjoitti: 2.10.2012 14:06, George Silva kirjoitti: This is puzzling. I'm on 1.4.1 and I have models with two geometric columns, without a hitch. The only interesting thing I can see is that you are using SRID = settings.4326 on extent. Is that correct? Nope.

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
2.10.2012 14:06, George Silva kirjoitti: This is puzzling. I'm on 1.4.1 and I have models with two geometric columns, without a hitch. The only interesting thing I can see is that you are using SRID = settings.4326 on extent. Is that correct? Nope. Normally it's something totally different

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread George Silva
This is puzzling. I'm on 1.4.1 and I have models with two geometric columns, without a hitch. The only interesting thing I can see is that you are using SRID = settings.4326 on extent. Is that correct? On Tue, Oct 2, 2012 at 7:52 AM, Jani Tiainen wrote: > Hi, > > I've

Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
Hi, I've several models that contains two geometry fields (following is simplified example): class NetDiagram(models.Model): # Columns name = models.CharField(max_length=60, blank=True, null=True) location = models.GeometryField(_("Center"), db_column='location', srid=4326,

Python-requests seems to 404 with Django/Tasty-pie?

2012-10-02 Thread Victor Hooi
Hi, I have a Django app that's serving up a RESTful API using tasty-pie. I'm using Django's development runserver to test. When I access it via a browser it works fine, and using Curl also works fine: curl "http://localhost:8000/api/v1/host/?name__regex=format=json; On the console with

Re: Newbie question - setting a model form foriegn key

2012-10-02 Thread Keir Lawson
Thanks for your reply :-) So there's no way to use a model form to proccess the quest and manually set just the FK of it? Keir On Tuesday, October 2, 2012 6:18:21 AM UTC+1, Laxmikant Gurnalkar wrote: > > Sorry, see again!! > > def payments_view(request, contact_id): > payment = Payment() >