Re: CSRF verification failed

2013-07-06 Thread Kakar Arunachal Service
Thank you Sanjay! On Sun, Jul 7, 2013 at 4:08 AM, Sanjay Bhangar wrote: > On Sat, Jul 6, 2013 at 9:38 AM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> wrote: > >> Hello! >> I am getting CSRF verification failed error, even after i added {% >> csrf_token %} tag in the html file. >

Big Picture?

2013-07-06 Thread ron
I need help with getting the big picture in so far as what Django can help me accomplish. I need to replace an antiquated online attendance-taking system. My first thought was to just build from scratch using Apache, Python, MySQL, HTML/JavaScript. My first stop was researching how to integrate

Re: Soundex in django

2013-07-06 Thread Satinderjit Singh
On Sat, Jul 6, 2013 at 1:17 PM, Harjot Mann wrote: > How to import soundex in django?? May be this can help. Try this link: http://goo.gl/77F7s -- Satinderjit http://satinderjit.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group

Allowed Hosts

2013-07-06 Thread deJa
Hello, I'm developing an application with 1.6b1 and getting "ERROR: Invalid HTTP_HOST header: www.foo.com.'.You may need to add u'www.foo.com.' to ALLOWED_HOSTS. And I'm getting same error with my naked domain or server's IP address like '.You may need to add u'.foo.com.' or '.You may need

Help needed with Django Slug Url Caveat

2013-07-06 Thread JJ Zolper
Hello fellow Django developers, I would like to request your assistance on a caveat I ran into when doing slugs in the django url's. First off please let me lay out what I've been building: Here are the internals of my urls.py: (r'^artists/register/$', 'madtrak.userprofiles.views.ArtistReg

Re: Missing peice before best practises

2013-07-06 Thread Sayth Renshaw
Apologies Amirouche for the late reply. The documentation is good, but I like many apparently(based on tutorials for other envs) prefer a hands on approach to a documentary approach. This is the place where Django doesn't have much depth in its ecosystem. It has no current books and no hands on tu

Re: CSRF verification failed

2013-07-06 Thread Sanjay Bhangar
On Sat, Jul 6, 2013 at 9:38 AM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > Hello! > I am getting CSRF verification failed error, even after i added {% > csrf_token %} tag in the html file. > > Here's my html file: > > {% extends "base.html" %} > {% block title %} User Regi

Re: Managing transactions using multiple databases

2013-07-06 Thread Christophe Pettus
On Jul 6, 2013, at 8:58 PM, Leandro Boscariol wrote: > And also thanks for mentioning xact, I wasn't aware of that! Full disclosure: I wrote it. :) In 1.6, the new atomic() decorator / context manager is the way to go, but xact() works fine for now! -- -- Christophe Pettus x...@thebuild.com

Re: Managing transactions using multiple databases

2013-07-06 Thread Leandro Boscariol
Well, even though without true two-phase commit, for now that will do, thanks. And also thanks for mentioning xact, I wasn't aware of that! Cheers, Leandro On Saturday, July 6, 2013 10:41:11 AM UTC-3, Christophe Pettus wrote: > > > On Jul 6, 2013, at 2:54 PM, Leandro Boscariol wrote: > > > How

Re: Issue in User authentication

2013-07-06 Thread vijay shanker
On Thursday, July 4, 2013 11:30:06 PM UTC+5:30, vijay shanker wrote: > > *Hi* > *I am using django 1.5 and created my own user model by AUTH_USER_MODEL= > 'account.User' in settings.* > > *my user model is like this:* > > from django.db import models > from django.contrib.auth.models import Abst

CSRF verification failed

2013-07-06 Thread Kakar Arunachal Service
Hello! I am getting CSRF verification failed error, even after i added {% csrf_token %} tag in the html file. Here's my html file: {% extends "base.html" %} {% block title %} User Registration {% endblock %} {% block head %} User Registration {% endblock %} {% block content %} {% csrf_to

Re: Advanced search in django?

2013-07-06 Thread Kamal Kaur
On Sat, Jul 6, 2013 at 9:39 PM, Javier Guerra Giraldez wrote: > not a separate file, but a separate field. either override the save() > method of your model, or connect to the pre_save() signal to keep it > updated with the 'original' text. for searches simply query this > field against the soun

Re: Advanced search in django?

2013-07-06 Thread Javier Guerra Giraldez
On Sat, Jul 6, 2013 at 11:04 AM, Kamal Kaur wrote: > But don't know how to implement it in my project to > search in database. Do I need to keep a > separate file? or what to do ? not a separate file, but a separate field. either override the save() method of your model, or connect to the pre_s

Advanced search in django?

2013-07-06 Thread Kamal Kaur
I have found the code for Soundex which is a phonetic algorithm, it is capable of searching from database despite of minor spelling differences. But don't know how to implement it in my project to search in database. Do I need to keep a separate file? or what to do ? Here is the link. https://githu

Re: Rendering 3D model in a Django app

2013-07-06 Thread Javier Guerra Giraldez
On Sat, Jul 6, 2013 at 9:03 AM, Sergiy Khohlov wrote: > you need to use webgl for client side a popular JavaScript library for handling WebGL is three.js (http://threejs.org). it supports several input 3D formats, VTK and OBJ among them. -- Javier -- You received this message because you ar

Re: redirct page

2013-07-06 Thread Kakar Arunachal Service
thank you much! That did solved the problem! On Sat, Jul 6, 2013 at 7:15 PM, Black9design.com wrote: > I noticed in the snippet that you provided that it says "form methon". See > if that is the issue. > > On Jul 6, 2013, at 6:29 AM, Kakar Arunachal Service < > kakararunachalserv...@gmail.com> w

Re: Rendering 3D models which change based on the interaction from Users. in Django

2013-07-06 Thread Sergiy Khohlov
pass few webGL lesson and adopt django templeta to it. Unfortunately I have not made this yet Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jul 6, 2013 at 1:30 PM, Rohit kumar wrote: > I am using Django and want to create a page which should render a > interactive 3D model for t

Re: Is there a way to automatically assign URLs based on view names?

2013-07-06 Thread Javier Guerra Giraldez
On Sat, Jul 6, 2013 at 3:48 AM, R. Eastbourne wrote: > I would like these URLs assigned automatically. i've done this once. crude, but works ok: -- at the end of urls.py -- def _simpleurl(viewname, mod): return url ('^%s/$'%viewname, getattr(mod, viewname), name=viewname) urlpatt

Re: Rendering 3D model in a Django app

2013-07-06 Thread Sergiy Khohlov
Check this one http://theresa.multimediatechnology.at/webgl-demonstrator-rendering-vtk-in-native-3d/ you need to use webgl for client side. your question is not related to django directly. Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jul 6, 2013 at 2:44 PM, Rohit kumar wrote:

Re: redirct page

2013-07-06 Thread Black9design.com
I noticed in the snippet that you provided that it says "form methon". See if that is the issue. On Jul 6, 2013, at 6:29 AM, Kakar Arunachal Service wrote: > Hello! Thanks for the correction! But even after the {% csrf_token %} tag its > not redirecting to the main index page. :( > > > On S

Re: redirct page

2013-07-06 Thread François Schiettecatte
Well 'methon' should be 'method', probably does not bother the browser though, but redirection is something that is issued by your app, not the form. You should check: https://docs.djangoproject.com/en/1.5/topics/http/shortcuts/#redirect On Jul 6, 2013, at 9:29 AM, Kakar Arunachal Service w

Re: Managing transactions using multiple databases

2013-07-06 Thread Christophe Pettus
On Jul 6, 2013, at 2:54 PM, Leandro Boscariol wrote: > How can I do a transaction management in both databases at the same time? Is > that even possible? You can certainly nest the transaction context managers (atomic() in 1.6+, or you can use xact() in 1.5 and earlier): with xact(using=DA

Re: redirct page

2013-07-06 Thread Kakar Arunachal Service
Hello! Thanks for the correction! But even after the {% csrf_token %} tag its not redirecting to the main index page. :( On Sat, Jul 6, 2013 at 6:45 PM, Tomas Ehrlich wrote: > Hi there, > you're certaily missing {% csfr_token %} in your form. > > If it doesn't solve the problem, you need to prov

Re: redirct page

2013-07-06 Thread Tomas Ehrlich
Hi there, you're certaily missing {% csfr_token %} in your form. If it doesn't solve the problem, you need to provide more info and be more specific about your "trouble". Dne Sat, 6 Jul 2013 17:44:04 +0530 Kakar Arunachal Service napsal(a): > Hi, > I am having trouble with redirecting the logi

Re: redirct page

2013-07-06 Thread Amirouche Boubekki
Hi, Redirection is done in the view after form processing et al. with redirect shortcut 2013/7/6 Kakar Arunachal Service > Hi, > I am having trouble with redirecting the login page to index page. Please > guide me. > > Here

Managing transactions using multiple databases

2013-07-06 Thread Leandro Boscariol
Hello, During the design of a project, I came across a situation where I will have 2 databases. Not a big deal, it is very well documented in Django docs . Dealing with transactions

redirct page

2013-07-06 Thread Kakar Arunachal Service
Hi, I am having trouble with redirecting the login page to index page. Please guide me. Here's the html snippet: User Login {% if form.errors %} Your username and password didn't match. Please try again. {% endif %}

Rendering 3D models which change based on the interaction from Users. in Django

2013-07-06 Thread Rohit kumar
I am using Django and want to create a page which should render a interactive 3D model for the user. I have the obj file which I can even use as csv or excel sheet. Kindly help how to do an interactive page which renders 3D model -- You received this message because you are subscribed to the G

Rendering 3D model in a Django app

2013-07-06 Thread Rohit kumar
I have a 3D obj model created using VTK and want to render it my Mezzanine page. How to do that. Kindly help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dja

type object 'DataTable' has no attribute 'datFile'

2013-07-06 Thread Nigel Legg
I have the following code: models.py: class DataTable(models.Model): datFile = models.CharField(max_length = 200) structFile = models.CharField(max_length = 200) bannerVar = models.CharField(max_length = 50) stubVar = models.CharField(max_length = 50) stubNets = models.BooleanFi

Is there a way to automatically assign URLs based on view names?

2013-07-06 Thread R. Eastbourne
I would like all my URLs to follow this schema: appname/ClassBasedViewName. I don't want to have to update urls.py every time I change my views, so I would like these URLs assigned automatically. Is there an existing module that is capable of doing this? (Otherwise I will write my own, using os

Re: Soundex

2013-07-06 Thread Harjot Mann
On Friday, February 8, 2008 2:41:15 AM UTC+5:30, Jacob Kaplan-Moss wrote: On 2/7/08, leith...@gmail.com > wrote: > User.objects.filter(first_name__sounds_like="John") > > which would produce and SQL statement like: > > WHERE DIFF(SOUNDEX(first_name), SOUNDEX("John")) >= 3 > > Any plans for it?

Re: Error in Autoamation

2013-07-06 Thread Harjot Mann
On Sat, Jul 6, 2013 at 1:12 PM, Nigel Legg wrote: > Make sure the two variables you are trying to combine are the same datatype. > This is in the python docs, and not a django problem. ok. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because you are

Soundex in django

2013-07-06 Thread Harjot Mann
How to import soundex in django?? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubsc

Re: Error in Autoamation

2013-07-06 Thread Nigel Legg
Make sure the two variables you are trying to combine are the same datatype. This is in the python docs, and not a django problem. Regards, Nigel Legg 07914 740972 http://www.treavnianlegg.co.uk http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 6 July 2013 08:40, Harjot Mann

Re: Error in Autoamation

2013-07-06 Thread Harjot Mann
On Fri, Jul 5, 2013 at 4:46 PM, Nigel Legg wrote: > You can't combine int and unicode. Seems you are trying to. Yes I am adding int with another datatype. What should I do to remove this error? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because you