Re: how to do this?

2012-05-26 Thread doniyor
oh yeah. thats true, i thought, that for-loop which Kenneth proposed doesnot create fields but it does, so in every loop there will be a new html field created if i do like this: {% for p in products %} {{p.arg1}} and {{p.arg2}} {% endfor %} thats the easiest way, great! i was thinking

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

Re: Parent module does not exist

2012-05-26 Thread DanYun Liu
does wikicamp is your working directory? try to make wikicamp as a package to add __init__.py On Sun, May 27, 2012 at 11:45 AM, Ali Shaikh wrote: > Hello!! > > > ViewDoesNotExist at /wikicamp/start/ > Could not import wikicamp.views.view_page. Parent module >

Re: How to call RegexValidator explicitly?

2012-05-26 Thread Bill Beal
Thanks! I put it in today and it worked fine. On May 24, 2012, at 9:10 AM, bruno desthuilliers wrote: > On May 24, 4:30 am, forthfan wrote: >> >> from django import forms >> from django.core.validators import * >> >> class IdentForm(forms.Form): >> ident =

Parent module does not exist

2012-05-26 Thread Ali Shaikh
Hello!! ViewDoesNotExist at /wikicamp/start/ Could not import wikicamp.views.view_page. Parent module wikicamp.views does not exist. Request Method: GET Request URL:http://localhost:8000/wikicamp/start/ Django Version: 1.4 Exception Type: ViewDoesNotExist Exception Value: Could

Tutorial database problem

2012-05-26 Thread phantom21
I've tried to set up the database as sqlite3. I keep getting an error on the ENGINE line, but can't figure out why as it looks correct. Here is the database section: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/usr/bin/sqlite3/mark.db', # Or

Re: Django Error; how to empty tmp directory, cache

2012-05-26 Thread Russell Keith-Magee
On Sat, May 26, 2012 at 3:37 PM, DF wrote: > A TemplateSyntaxError error has occurred in my previously functional project > and after trying for hours to resolve it, it was determined it might be a > cache error and to empty the tmp directory at the root (the template had

Re: model form_set can not delete

2012-05-26 Thread Peter of the Norse
That's by design. The individual Modelforms don’t delete. What you can do is look to see if they are marked, and deleted them manually. if formline.DELETE: formline.instance.delete() On May 23, 2012, at 6:01 PM, Min Hong Tan wrote: > Hi there, > > i have a problem whereby,

Re: how to do this?

2012-05-26 Thread Daniel Roseman
On Saturday, 26 May 2012 15:03:47 UTC+1, doniyor wrote: > > the reason why i want to do this is this: > > the user should be able to select products from products table as many as > he wants, at each selection i will save the product information in db, then > the user clicks on "book" button,

Re: Django, PyCharm Module Error (Time Machine, Directory Duplication)

2012-05-26 Thread Johan
On May 26, 2012, at 10:03 PM, DF wrote: > The following issue has been plaguing me for many hours now and was hoping > someone might have some insight. > > I've been working on my first Django project in PyCharm with few issues. This > morning, to update software, I closed the file and

Re: Why this database error in shell? (Query looks valid to me.)

2012-05-26 Thread akaariai
On May 26, 10:26 pm, Chris Seberino wrote: > I have Homework objects that are related to Course objects for a > school related Django app.  I can access Course and Homework objects > but there is one Homework query at the end of this email that bombs > and I don't know why. >

Django, PyCharm Module Error (Time Machine, Directory Duplication)

2012-05-26 Thread DF
The following issue has been plaguing me for many hours now and was hoping someone might have some insight. I've been working on my first Django project in PyCharm with few issues. This morning, to update software, I closed the file and restarted the computer. When i opened the file and ran

Re: django connect alternate database.

2012-05-26 Thread kooliah
https://docs.djangoproject.com/en/dev/topics/db/multi-db/ On 05/26/2012 06:18 AM, Min Hong Tan wrote: hi, I have a situation. currently i have one default django 's database. but, i wound like to connect to mssql/other database. - how can i get connected to ms-sql/other database? - is it we

Why this database error in shell? (Query looks valid to me.)

2012-05-26 Thread Chris Seberino
I have Homework objects that are related to Course objects for a school related Django app. I can access Course and Homework objects but there is one Homework query at the end of this email that bombs and I don't know why. === First

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

2012-05-26 Thread Peter of the Norse
Usually when I see “TypeError Exception Value: coercing to Unicode” it means that some Model isn't returning the right thing in def __unicode__. Looking at your code, I recommend checking out the canvas returned by desenha_grafico. I wasn’t able to find the documentation for matplotlib, so I’m

Django Projects Working Fine; Reopened and Import Module Error

2012-05-26 Thread DF
I've been working on a Django project, my first, with no issues. I closed the file and restarted the computer for software updates and I'm now receiving the following error: Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File

Re: Off-line Django apps / Caching and synchronizing data

2012-05-26 Thread ALJ
Hi Andy, Cheers for that. I'll start looking at some JS/HTML5 frameworks. ALJ -- 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/-/HNImAOZO9L0J. To post to

Httprequest with xml body - how to parse with elementtree?

2012-05-26 Thread Benjamin Carlson
I'm new to django, and am trying to write a web service. The request will have xml in the body. How can I parse that into elementtree root node? Thanks in advance! -Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: how to do this?

2012-05-26 Thread doniyor
the reason why i want to do this is this: the user should be able to select products from products table as many as he wants, at each selection i will save the product information in db, then the user clicks on "book" button, which leads to another book.html template where extra fields should

Re: Django site updater

2012-05-26 Thread kooliah
On 05/22/2012 10:17 PM, kooliah wrote: I'm working on a new site and i have often the need to update the server to let other people see the progress. I tought to do a python script that compare the file structure/date/time of my local version with the server version and update only the

Re: how to do this?

2012-05-26 Thread Daniel Roseman
On Saturday, 26 May 2012 09:08:47 UTC+1, 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

Re: django connect alternate database.

2012-05-26 Thread jirka . vejrazka
Hi, search documentation for "database routers" and using() in the ORM... HTH Jirka -Original Message- From: Min Hong Tan Sender: django-users@googlegroups.com Date: Fri, 25 May 2012 22:18:23 To: Reply-To:

Re: how to do this?

2012-05-26 Thread doniyor
Is it then possible to start ajax response from view function without any ajax request from client-site? but i think this wont solve the problem because even in ajax function i need return statement right? -- You received this message because you are subscribed to the Google Groups "Django

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

Re: how to do this?

2012-05-26 Thread doniyor
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..

Multiple User Profiles using multi-table inheritance and Userena

2012-05-26 Thread James Rivett-Carnac
This is a question that gets asked in many forms, but I am having issues with the multi-table inherence method of doing this with Userena. I have strong reasons for needing multiple profile types which I won't go into here. i put example code in the following gist:

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

Django Error; how to empty tmp directory, cache

2012-05-26 Thread DF
A TemplateSyntaxError error has occurred in my previously functional project and after trying for hours to resolve it, it was determined it might be a cache error and to empty the tmp directory at the root (the template had been working fine for a week and nothing was changed that might have

how to do this?

2012-05-26 Thread doniyor
Sorry i forgot my {{ col}} and {{row}} variables in template, please assume that it is there, i just forgot in posting in forum.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

how to do this?

2012-05-26 Thread doniyor
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