Re: CSRF verification failed. Request aborted.

2012-07-09 Thread Сергей Фурсов
as described in error message your view function have to use RequestContext for the template, instead of Context. your view should looks like def about(request): if request.method == 'POST': re

Re: Release considerations

2012-07-09 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 task

Release considerations

2012-07-09 Thread Jon Black
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 availabl

Re: Need Help with MySQL configuaration

2012-07-09 Thread Rajan Chaudhari
http://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loaded-libmysqlclient-18-dylib solved this error. Thanks! On Monday, 9 July 2012 17:57:45 UTC-4, Rajan Chaudhari wrote: > > Hello all, > > I have installed Django, MySql, phpMyAdmin and python-mysq. I am able to > create new

Re: database values in a select form.

2012-07-09 Thread Lee Hinde
On Sun, Jul 8, 2012 at 7:39 PM, Michael Elkins wrote: > On Sat, Jul 07, 2012 at 08:25:54PM -0700, Lee Hinde wrote: >> >> What I'm noticing is that (in dev mode) the choice list for >> 'employment_status' doesn't update unless I trigger a change, either >> to the forms.py or restart the dev server.

CSRF verification failed. Request aborted.

2012-07-09 Thread JJ Zolper
Here is the error I received with debug set to true for Django: Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect. In general, this can occur when there is a genuine Cross Site Request Forgery, or when Django's C

Re: Django-registration tutorial + code

2012-07-09 Thread Dhilip Sivaramakrishnan
Hello, i think the major issue is with your db query, this issue is happened while entering data to db. So try to check with your registration module. -- Dhilip S On Tue, Jul 10, 2012 at 5:01 AM, Jeff Silverman wrote: > I'm new as well, but I have run into similar issues when I don't have th

quadstreaker seeking lead django dev (Seattle only)

2012-07-09 Thread dskendall
Join a hugely ambitious, well-funded startup in Seattle that's seeking to change how we experience the world around us. Take your robust Django/server/DB/back-end dev skills and funnel them towards greatness, not just another me-too app. *This is your opportunity to bust out*. Serve as the Le

Re: Django-registration tutorial + code

2012-07-09 Thread Jeff Silverman
I'm new as well, but I have run into similar issues when I don't have the environment settings assigned properly. On Mon, Jul 9, 2012 at 12:03 AM, scoop wrote: > i installed registration, added registration to installed apps and used > your > templates. > > i nav to accounts/register , enter the

Re: Different authentication package

2012-07-09 Thread Melvyn Sopacua
On 9-7-2012 20:41, Jani Tiainen wrote: > Are you asking how to write custom authentication backend that can suit > your needs? No, that would be my backup plan. I'm looking for something I can install and replace the backend with that suits my needs. I've been looking around the web and other the

Need Help with MySQL configuaration

2012-07-09 Thread Rajan Chaudhari
Hello all, I have installed Django, MySql, phpMyAdmin and python-mysq. I am able to create new project. But in next step when I run command python manage.py syncdb I am geting following error. File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django

Re: Contact form wizard - values ​​between forms

2012-07-09 Thread Leandro Alves
Does anyone have any tip please? Thanks. On Monday, July 9, 2012 1:34:18 PM UTC+2, Leandro Alves wrote: > > Hi guys, > > I know this might sound simple, but how can I get/use the values of the > fields from ContactForm1 into ContactForm2? > > from django import forms > > class ContactForm1(fo

Templates and views (accessing field from other model)

2012-07-09 Thread Soviet
I'm trying to access the Theme name and put it in my template. It's been working fine until I set the Theme.name as primary key. Did the primary_key=True break it? How can I use it in template? I need the primary key to make the DetailView. Or am I completely wrong about everything? #Template {

Re: Deployment: Apache2, wsgi (Debian squeeze)

2012-07-09 Thread Rohan
Hi Matt, If you do not have static serving enabled in your django application mapping to /static/ in urls.py, then the content is being served by Apache. What is your MaxRequestsPerChild in your apache conf? One of the reasons production environments use a different web server for serving sta

Django comments flag "cancel" returns incorrect url

2012-07-09 Thread DF
I've set up django's built in comments in my application and I'm employing the flagging ability. The flagging works fine, but the 'cancel" link that appears on the template returns the following error when clicked: could not find http The template/form is as follows: {% extends "base.html" %}

Apache server is not loading while importing libraries in a class

2012-07-09 Thread surya
This is a bit strange issue (at least for me) project/ apache/ django.wsgi project/ __init__.py, settings.py, urls.py .. pages/ __init__.py widgets.py website_views.py services/ __init__.py apis/

Re: migration via south for inheritance change -> please help

2012-07-09 Thread Daniel Walz
Hi Melvyn, 2012/7/9 Melvyn Sopacua : > On 9-7-2012 10:30, Daniel Walz wrote: > >> Ok, I did some tests today and read in the django sources. >> It seems to me, that an abstract model class has no Manager attached, >> at least not by default. > > Because an abstract model has no data. It is a colle

JSONField: which app to choose ?

2012-07-09 Thread Michael Palumbo
Hi, I have found several implementations of a Django JSON Field. Have you ever tried one ? Which one do you recommend ? Thanks. https://github.com/bradjasper/django-jsonfield https://github.com/derek-schaefer/django-json-field https://bitbucket.org/schinckel/django-jsonfield/overview https

Re: Different authentication package

2012-07-09 Thread Jani Tiainen
Are you asking how to write custom authentication backend that can suit your needs? If so, it's all documented in Django documentation: https://docs.djangoproject.com/en/1.4/topics/auth/#other-authentication-sources is good place to start reading. On Mon, Jul 9, 2012 at 5:26 PM, Melvyn Sopacua wro

model sends two requests

2012-07-09 Thread jonas peters
hi! I have a model and use standard django administration, when a user clicks the save button it sends the request, it takes time to respond and the user clicks the save button again and then sends another request, and creating two records. have some setting in django to avoid this problem? I t

Tutorial Issues

2012-07-09 Thread Paul Givens
I am new to django and was running throught the tutorial when I ran into a problem in part 3. In the template loading section I was given an error after I set the template to the correct path: KeyError at /polls/ user Request Method:GETRequest URL:http://127.0.0.1:8000/polls/Django Version

Re: Django-Subscription

2012-07-09 Thread shacker
On Monday, July 9, 2012 2:54:06 AM UTC-7, Pervez Mulla wrote: > > Hi... > > How can I make use Django_subscripation in my project...?? In my > application I want to give subscription option , > EX- If customers are subscribed to our product then they can able to > access all the data, Else the c

Re: Getting images to appear in html using Django.

2012-07-09 Thread Jak
I figured it out. I put the Media folder on the same level as a the mysite folder and now it seems to work. I think it was a django noob error. MEDIA_ROOT ='/Users/Jak/projects/fap/media/' MEDIA_URL = '/media/' TEMPLATE_DIRS = ( '/Users/Jak/projects/fap/mysite/templates', urls.py (r'^media

Different authentication package

2012-07-09 Thread Melvyn Sopacua
Hi, does anyone have some recommendations about different authentication backends for Django? My issues with contrib.auth are: - User model has an emailaddress which makes dealing with alias emails for a user more complex (current app I'm writing has an email gateway) - Can't plug a different us

RE: masking only a small part of a template

2012-07-09 Thread lacrymol...@gmail.com
I think he means to override a template without changing it's name (since you don't control 3rd party app's views and the templates they call, most times). I've found a snippet to do this as {% extends "app:template/path.html" %}, a custom template loader. I don't have the code right now, but m

Re: migration via south for inheritance change -> please help

2012-07-09 Thread Melvyn Sopacua
On 9-7-2012 10:30, Daniel Walz wrote: > Ok, I did some tests today and read in the django sources. > It seems to me, that an abstract model class has no Manager attached, > at least not by default. Because an abstract model has no data. It is a collection of attribute definitions. > I see that,

Re: masking only a small part of a template

2012-07-09 Thread Tomas Neme
http://djangosnippets.org/snippets/1376/ this is what you want, I'm using it and it works like a charm you override in templates/path/to/template.html and do {% extends "app:path/to/template.html" %}, and this loader searches in `app`'s template dir by default On Mon, Jul 9, 2012 at 3:06 AM, tW

RE: how to use HTTPS with django

2012-07-09 Thread lacrymol...@gmail.com
Middleware is most certainly *not* hacks! They're an intended and perfectly documented hook point for any special behavior you'd like in your webservice that makes sense inserting at that particular point of the request processing -Mensaje original- De: Thomas Orozco Enviados: 08/07/20

Re: database values in a select form.

2012-07-09 Thread Daniel Roseman
On Sunday, 8 July 2012 04:25:54 UTC+1, Lee Hinde wrote: > > I have a table, Choice, that is used to build common lists. For > instance, there might be a list "Employment_Status" with values > "Full-Time" and "Part-Time" > > I want to use those values in various forms, so in the appropriate > mo

Re: rendering modelForms

2012-07-09 Thread Daniel Roseman
On Monday, 9 July 2012 12:06:32 UTC+1, mapapage wrote: > > Hi! > 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

Re: rendering modelForms

2012-07-09 Thread mapapage
The important part of my template is the following: > > > Forms > > > > {% extends "main.html" %} > > >> {% block content %} > > > enctype='multipart/form-data'{% endif %}> > > >> {% csrf_token %} > > > > > > > > {{ lname }} > > {{ fn

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

2012-07-09 Thread hanumanth abhilash
If you dont mind me, can you just give me a sample source code for the registration form ??? Thanks in advance Abhilash On Mon, Jul 9, 2012 at 5:17 PM, kenneth gonsalves wrote: > On Mon, 2012-07-09 at 16:09 +0530, hanumanth abhilash wrote: > > Thanks for the quick reply. I've gone through the sa

Re: Getting images to appear in html using Django.

2012-07-09 Thread Rohan
Hi Jak, I would suggest removing the "," after MEDIA_ROOT in your settings file if it indeed is there. Could you also be a little more specific about the problem. Is the rest of the page loading fine? and if it is, do you see /media/ being pre-pended to your file name when you see the source o

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,

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

rendering modelForms

2012-07-09 Thread mapapage
Hi! 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 (c

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

2012-07-09 Thread Dhiraj Thakur
Grab a copy of the Apress The Definitive Guide to Django and start reading it...after one month you'll say why had i asked this question ;) Regarding your registration form its simple but you should know what is GET what is POST request (another reason to read the book) anyway...steps: 1. Crea

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

2012-07-09 Thread hanumanth abhilash
Hi all, I created a project named sample using "python manage.py startproject sample". Now, a directory structure with root directory "sample" is created. Under the root directory, another directory named "sample" and a file named "manage.py" are created. Now, Inside root directory (outer direct

rendering modelForms

2012-07-09 Thread Marilena Papageorgiou
Hi! 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 s

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

2012-07-09 Thread hanumanth abhilash
Thanks for the quick reply. I've gone through the same document in pieces. I want to build a simple registration form using models, templates, views. So, i created a project named 'sample'. Now, html file which has design of form elements should be placed where? Can you give me the structure whe

Contact form wizard - values ​​between forms

2012-07-09 Thread Leandro Alves
Hi guys, I know this might sound simple, but how can I get/use the values of the fields from ContactForm1 into ContactForm2? from django import forms class ContactForm1(forms.Form): subject = forms.CharField(max_length=100) sender = forms.EmailField() class ContactForm2(forms.Form):

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

2012-07-09 Thread M Hussain
Hi please begin from here, http://djangobook.com/en/2.0/ you'll know by your own :) if you get any hurdles, post with detailed error report. Cheers Hussain On Mon, Jul 9, 2012 at 12:19 PM, hanumanth abhilash < hanumanth.abhil...@gmail.com> wrote: > I have gone through django documentation an

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

2012-07-09 Thread hanumanth abhilash
I have gone through django documentation and came to know what is a template, model and view. Please help me start with and to build a sample registration form. How should i start to build a project? That would be great if some one helps me. Thanks in advance Abhilash -- You received this messa

Django-Subscription

2012-07-09 Thread Pervez Mulla
Hi... How can I make use Django_subscripation in my project...?? In my application I want to give subscription option , EX- If customers are subscribed to our product then they can able to access all the data, Else the customer will able to see only charts/graphs in webpage . How Can I do this...

Testing FormWizard

2012-07-09 Thread James Rivett-Carnac
I am trying to write test cases for a django 1.4 CookieWizardView (django.contrib.formtools.wizard.views.CookieWizardView), and I'm not sure how to handle sending multiple posts to the view. class TestWizardView(TestCase): def setUp(self): self.form_one_post = QueryDict('field_1=valu

Re: migration via south for inheritance change -> please help

2012-07-09 Thread Daniel Walz
Hi, 2012/7/7 Tomas Neme : >> and I do >> for fruit in Fruits.objects.all(): fruit.rott() >> >> will anything happen at all? I know in C++ this would work... ;-) >> >> on database-level I know how to do it, I just don't know if the django >> abstraction handles this automalically. > > I.. don't kno

Re: database values in a select form.

2012-07-09 Thread Michael Elkins
On Sat, Jul 07, 2012 at 08:25:54PM -0700, Lee Hinde wrote: What I'm noticing is that (in dev mode) the choice list for 'employment_status' doesn't update unless I trigger a change, either to the forms.py or restart the dev server. I'm wondering if there's a better place to handle this. Lee, H

Re: Django-registration tutorial + code

2012-07-09 Thread scoop
i installed registration, added registration to installed apps and used your templates. i nav to accounts/register , enter the info and as i continue it breaks with the following: DoesNotExist at /accounts/register/ Site matching query does not exist. Request Method: POST Request URL:http://s

Re: Deployment: Apache2, wsgi (Debian squeeze)

2012-07-09 Thread Matt Smith
Thx Kenneth, Rohan, Melvyn. I've arrived at something that works: httpd.conf: WSGIScriptAlias / /usr/local/django/projectName/apache/django.wsgi Alias /static /usr/local/django/projectName/static So everything that's not a template lives unde