Re: value bound (choice)field

2009-09-14 Thread dimitri pater - serpia
for anyone who is interested, I created a template filter to do this (see http://groups.google.com/group/django-users/browse_thread/thread/74e31c74cfd9469a) On Tue, Sep 15, 2009 at 12:33 AM, dimitri pater - serpia wrote: > Hello, > > I am trying to get a value from a bound field (a choicefield)

Getting data from user via HTML

2009-09-14 Thread Nitin Boladra
Hi Django users, I am trying to create a simple Django application wherein I want to run a python function with an argument that is obtained from text-box whenever I click the button on my web-page. The problem is passing the value obtained in text-box to the python function. So as

[OT] [Job] Singapore Company Looking for Django Developer

2009-09-14 Thread Kelvin Quee
Hi Django Users! ** Hiring Web User Interface Developer ** * Strong in Python, Django and Javascript development * Strong in English * Loves to Work in a Startup Environment * Occasional Traveling to Singapore * Competitive Salary (Feel free to pass this on to someone else) We are looking

Re: Query with left join?

2009-09-14 Thread tom
Hi Daniel, i don't want to presentate the data. i want to produce graphs with this data. so it's not a presentation problem. i know that i can use python to get the data in correct order and style, but it's a huge amount of data and python would be very slow for that. so it's better when the data

MultiWidget format_output

2009-09-14 Thread justind
Hello, I'm trying to use a multiwidget, my looks like this: class DimensionsWidget(forms.MultiWidget): def __init__(self, attrs=None): widgets = (forms.widgets.TextInput(attrs=attrs), forms.widgets.TextInput(attrs=attrs)) super(DimensionsWidget, self).__init__(widgets, attrs

Remote login via XML-RPC or SOAP?

2009-09-14 Thread Rodrigo Cea
I am creating a Django website for a client who won't give me access to their database or server, but will allow login / account creation on their server via SOAP or XML-RPC from my server, where the Django- based website will reside. I would like to get an idea beforehand about which route, SOAP

how to efficiently use many to many relationships with through tables

2009-09-14 Thread Greg Aumann
I am trying to write my first django app and am unclear about good ways to deal with many to many relationships with through tables. My app is like a bibliography but with lots of links between entries in the bibliography. For example, I want to store links to all the entries cited by other entrie

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Brian
I have a small Django app under development and was able to get this running using the github update. My app runs and is very responsive with Tornado. Some of my admin site layout is out of whack, but it may be my settings or my bug. Formatting and CSS I created on my own looks good (e.g. graphi

Test tables not all created

2009-09-14 Thread peppergrower
I just started exploring Django's test framework, and it looks like it'll be fantastic once I get it working. However, while trying to run a very simple test (just to figure out how to use the test features), I noticed that the test database that's being created doesn't contain all of the tables

value bound (choice)field

2009-09-14 Thread dimitri pater - serpia
Hello, I am trying to get a value from a bound field (a choicefield) to a template. Obviously form.field.value does not work. Any ideas somebody? thanks in advance, dimitri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Image for amazon EC2

2009-09-14 Thread zweb
Can you please refer me to any good images for Linux, Django 1 or 1.1, mysql, apache images? or alternatively any good blog or instruction on how to host a django based web application on EC2 with mysql backend. --~--~-~--~~~---~--~~ You received this message becau

Re: Newbie: How to use object related to dropdown selection in django/javascript spaguetti code?

2009-09-14 Thread Samuel Lerning
Hi again, Some progress here, but a minor problem remaining. On selecting a foo, the page is re-rendered with the correct data related to the selected foo. However, the selection list (dropdown) always shows the name of the first foo, instead of showing the name of the selected foo. And I need i

who owns djangocon.blip.tv?

2009-09-14 Thread Carl Karsten
http://djangocon.blip.tv/ has no posts, and no contact info. Anyone know who's it is? seems like a good place to put the djangocon videos. http://django.blip.tv/ is taken too, with some odd test vids. Maybe http://ponycon.blip.tv/ ? -- Carl K --~--~-~--~~~---~--~

nested list in templates

2009-09-14 Thread xyz69
Hello, I have "Category" app. I use django-mptt to remember the structure od the category tree. I want to show this tree in nested list using generic view (render_to_template). I pass a category_list in extra_context and the problem starts when want to show it. I try something like this: # categ

Re: retrieve groups from user object

2009-09-14 Thread Ulysses Almeida
Hi, I think 'user.groups' is what I want and it is already implemented (I think I'm blind for not seeing it before). LDAPBackend does not support it yet! Thanks all. On Mon, 14 Sep 2009 13:29:46 -0400, Ulysses Almeida wrote: > > Hi, > > I would like to retrieve all groups an user belon

Re: When did Paul join the Beatles?

2009-09-14 Thread Alexandru-Emil Lupu
lol... i have answered to late ... it seems that after all i have said the same thing as Tiago Regards On Mon, Sep 14, 2009 at 11:58 PM, Alexandru-Emil Lupu wrote: > i do not know if is database killing or not, but you could try some of > those > > Person.objects.select_related(depth=2).get() >

Re: When did Paul join the Beatles?

2009-09-14 Thread Alexandru-Emil Lupu
i do not know if is database killing or not, but you could try some of those Person.objects.select_related(depth=2).get() or you could make something like Membership.objects.select_related(depth=1).get() That will perform a query on the entire membership table and related tables in order to ex

Re: When did Paul join the Beatles?

2009-09-14 Thread Tiago Serafim
Yes, it's inefficient. Yes, there's a way to do what you want: memberships = Membership.objects.all().select_related('group', 'person') ;-) On Mon, Sep 14, 2009 at 5:27 PM, W.P. McNeill wrote: > > Is this inefficient? Is there a way to do this with a single database > call? > > -- Tiago Ser

Re: When did Paul join the Beatles?

2009-09-14 Thread W.P. McNeill
Never mind. Tiago Serafim's reply answered my question for me. Follow on question: say I want to make a 2-dimensional table of the dates when people joined bands. I'd have code that looks like this. for p in Person.objects.all(): for g in Group.objects.all(): date = Membership.obje

Re: inlineformset_factory and changing data set in form

2009-09-14 Thread dimitri pater - serpia
formfield_callback argument was the solution to my problem On Mon, Sep 14, 2009 at 4:18 PM, dimitri pater - serpia wrote: > Hello, > > Suppose we have two models: > > CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) > > class Publisher(models.Model): >    name = models.CharField(max

Re: inlineformset_factory and changing data set in form

2009-09-14 Thread V
On szept. 14, 16:18, dimitri pater - serpia wrote: > Hello, > > Suppose we have two models: > > CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) > > class Publisher(models.Model): >     name = models.CharField(max_length=100) > > class Book(models.Model): >     publisher = models.For

Re: How to make Form and ModelForm choise fields to pick first entry in queryset by default?

2009-09-14 Thread V
it's just a wild guess, but what about the initial property? http://docs.djangoproject.com/en/dev/ref/forms/fields/#initial On szept. 14, 16:36, Dmitry Gladkov wrote: > By default Django make select options like this: > - > admin > Testuser > > How to enforce Django to show it like this:

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Ismail Dhorat
Interesting, i would like to see how tornado stacks up to Lighttpd? Regards, Ismail On Mon, Sep 14, 2009 at 7:29 PM, Antoni Aloy wrote: > > 2009/9/13 Antoni Aloy : >> 2009/9/13 Bret Taylor : >>> >>> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >>> web server/framework we

Memory usage - Django + SQLITE

2009-09-14 Thread Ismail Dhorat
Hi Guys, My current setup for Django is as follows: Ubuntu, with Lighttpd and running django via FCGI using TCP in threaded mode. I a simple site, that uses SQLITE as the DB engine. Though i have noticed that as the DB grows, the memory usage for that particular process keeps increasing, is the

Re: Django ForeignKey to_field vs. db_column

2009-09-14 Thread Daniel Roseman
On Sep 14, 7:19 pm, Artur Ergashev wrote: > I'm working on some models for a legacy database structure, and am > having a road_block with Foreign Keys and non-conventional names. > > As I understand it, if in my model I have something like: > > something = ForeignKey(something) > > then django wi

Re: Context object not completely rendering

2009-09-14 Thread Peter Coles
Your code looks ok, but something is obviously wrong, you'll need to debug this to figure out what's going wrong. Here are some quick ideas of how to go about debugging it—if at any point something looks or works contrary to what you'd expect then try to figure out why that's happening and you'll

Re: urls.py

2009-09-14 Thread Ramanathan
I changed it to (r'^activate/(.+)/$','proj.register.views.activate') like Mark said and things worked out. I had been for hours looking at it. Finally got it .Thank you all. Regards, Ramanathan M --~--~-~--~~~---~--~~ You received this message because you are su

Re: When did Paul join the Beatles?

2009-09-14 Thread W.P. McNeill
Or maybe another way of asking this, since I don't want to force you to write Python code just to answer my question... If I have the music group model written as shown in the Django documentation is it possible to write a model API statement that gets me this information, or would I have to add

Re: When did Paul join the Beatles?

2009-09-14 Thread Tiago Serafim
You should query Membership like you do with any other model. paul = Person.objects.get(...) beatles = Group.objects.get(...) membership = Membership.objects.get(person=paul, group=beatles) print membership.join_date --~--~-~--~~~---~--~~ You received this message

Re: When did Paul join the Beatles?

2009-09-14 Thread W.P. McNeill
I'm afraid I didn't follow that. Do you have some simple Python examples? On Sep 14, 9:46 am, Alexandru-Emil Lupu wrote: > basically you would have to make a ManyToMany relation thru a class. In that > class you make m,n,date field > After that you just use a query to answer the question: Who (

Django ForeignKey to_field vs. db_column

2009-09-14 Thread Artur Ergashev
I'm working on some models for a legacy database structure, and am having a road_block with Foreign Keys and non-conventional names. As I understand it, if in my model I have something like: something = ForeignKey(something) then django will look for the something_id field in my table when look

Context object not completely rendering

2009-09-14 Thread Dan06
Hi, Below is a function I created in my views.py file and its accompanying template file. For some reason, the second Name-Value Pair i.e. 'section':'General Info' does not render in the respective template file. Anyone know what is wrong? Thanks. def lookup(request, first_name, last_name):

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Antoni Aloy
2009/9/13 Antoni Aloy : > 2009/9/13 Bret Taylor : >> >> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >> web server/framework we built at FriendFeed that we open sourced last >> week (see http://bret.appspot.com/entry/tornado-web-server). >> >> The underlying non-blocking HT

retrieve groups from user object

2009-09-14 Thread Ulysses Almeida
Hi, I would like to retrieve all groups an user belong. I want to do this 'cos if the user belong to Group1 and GroupAdmin it will be able to manage the Group1 which he belongs, but not Group2 (for example). ... but I can't figure out how to get user's groups (something link user.groups b

Re: Removing line breaks in a template

2009-09-14 Thread Bill Freeman
1. Realize that no all line boundaries are "\r\n'. 2. You might try passing in "\r\n" in a template variable in case the filter argument handling isn't processing the backslashes: render...(...{...newline:"\r\n",...}) in the view, or in the extra context in the urls.py if you're using generic vie

Re: Deploying with Apache: confused by odd PythonPath requirement

2009-09-14 Thread Mark (Nosrednakram)
Hello Dan, CAUTION: I don't think the is the standard way of doing this but I have found it to make my code portable and easy to implement. Your mileage may very but I have started removing the project name from all of my code and for this configuration to work you would need to also. I use the

Re: When did Paul join the Beatles?

2009-09-14 Thread Alexandru-Emil Lupu
basically you would have to make a ManyToMany relation thru a class. In that class you make m,n,date field After that you just use a query to answer the question: Who (Paul)? joined to whom (Beatles), and after that will pop up the ManyToMany date field that will answer to question "when". I am pr

Re: download file

2009-09-14 Thread J. Cliff Dyer
On Mon, 2009-09-14 at 07:57 -0700, luca72 wrote: > Hello i have try with cherrypy but i get this error: > > def scarico(request, id): > from cherrypy.lib.static import serve_file > fil_da_scar = F_d.objects.get(pk=id) > nome_file = fil_da_scar.nome_fil > return serve_file('/home/l

Re: urls.py

2009-09-14 Thread Mark (Nosrednakram)
On Sep 14, 8:52 am, Ramanathan wrote: > I tried it.. but still it is not working. > > I am using django version 1.1. If your view takes a parameter you need to give it a name and I generally prepend a distinct identifier to my url so that django knows what's going on. (r'^activate/(?P.+)/$','

Re: Development and deployment wit Git

2009-09-14 Thread Tiago Serafim
I recommend http://repositoryhosting.com/ . I needed the support a couple of times and they were *very* responsive. The service is great and the price is very fair. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Subclassing Field to Define Default Widgets

2009-09-14 Thread Mark (Nosrednakram)
Hello Django Community, Let me explain what I'm doing: When using ModelForm to generate forms I frequently added the same widget/parameters to fields. I love the flexability to be able to do this but find it very repetitive if I'm adding the same widget and/or options to a field on several form

Re: urls.py

2009-09-14 Thread Ramanathan
I tried it.. but still it is not working. I am using django version 1.1. --~--~-~--~~~---~--~~ 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 un

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
You might want to check this out as a more up to date intro: http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

When did Paul join the Beatles?

2009-09-14 Thread W.P. McNeill
I can't figure out how to query the values of fields in a ManyToMany "through" table. For instance, say I'm working with the Beatles database in the Django documentation (http://docs.djangoproject.com/en/dev/topics/db/models/ #extra-fields-on-many-to-many-relationships). I want to be able to que

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:38 PM, Randy Barlow wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > about2flip declared: > > File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8 > > def_str_(self): > > ^ > > SyntaxError: invalid syntax > > Looks like you

Re: Saving Oracle Connection across requests

2009-09-14 Thread Rafael Ferreira
If you are on 11g you can try to use this: http://www.oracle.com/technology/tech/oci/pdf/oracledrcp11g.pdf otherwise you can look for something like mysqlproxy for oracle (if such thing exist). The real question here tho is why do you care so much about reusing connections? I can tell you that co

Re: download file

2009-09-14 Thread luca72
Hello i have try with cherrypy but i get this error: def scarico(request, id): from cherrypy.lib.static import serve_file fil_da_scar = F_d.objects.get(pk=id) nome_file = fil_da_scar.nome_fil return serve_file('/home/luca111/Desktop/Luca/Webframework/ off_bert/disegni/'+nome_file+

Re: no such table ERROR

2009-09-14 Thread Bill Freeman
Make DATABASE_NAME an absolute path. On Mon, Sep 14, 2009 at 12:11 AM, AIM wrote: > > HI, > > When I browse to > http://127.0.0.1:8000/mysite/Start/ > > I get the following error: > > OperationalError at /mysite/Start/ > > no such table: wiki_page > > Request Method:         GET > Request URL:  

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:38 PM, Joshua Russo wrote: > On Mon, Sep 14, 2009 at 1:27 PM, about2flip wrote: > >> >> Hi: >> >> I am using learn django in 24 hours and I am following this example on >> models. >> >> from django.db import models >> >> class Person(models.Model): >>name = model

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Randy Barlow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 about2flip declared: > File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8 > def_str_(self): > ^ > SyntaxError: invalid syntax Looks like you are missing a space between def and __str__(self). Should be: def __str_

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:27 PM, about2flip wrote: > > Hi: > > I am using learn django in 24 hours and I am following this example on > models. > > from django.db import models > > class Person(models.Model): >name = models.CharField('name', maxlength=200) >email = models.EmailFie

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Daniel Roseman
On Sep 14, 3:27 pm, about2flip wrote: > Hi: > > I am using learn django in 24 hours and I am following this example on > models. >   File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8 >     def_str_(self): >                   ^ > SyntaxError: invalid syntax > > E:\djproj\ifriends> >

How to make Form and ModelForm choise fields to pick first entry in queryset by default?

2009-09-14 Thread Dmitry Gladkov
By default Django make select options like this: - admin Testuser How to enforce Django to show it like this: admin Testuser I've managed to do so playing with form properties in view but that looked ugly (unfortunately I've lost the code example but you can trust me:)) --~--~-~-

python manage.py syncdb error (L@@K)

2009-09-14 Thread about2flip
Hi: I am using learn django in 24 hours and I am following this example on models. from django.db import models class Person(models.Model): name = models.CharField('name', maxlength=200) email = models.EmailField('Email', blank=True) headshots = models.ImageField(upload_

inlineformset_factory and changing data set in form

2009-09-14 Thread dimitri pater - serpia
Hello, Suppose we have two models: CH_AUTH = ((u'J', u'John'),(u'P', u'Peter'),(u'M', u'Marc'),) class Publisher(models.Model): name = models.CharField(max_length=100) class Book(models.Model): publisher = models.ForeignKey(Publisher) author = models.CharField(max_length=1, cho

Re: SyntaxError: unexpected character after line continuation character

2009-09-14 Thread about2flip
That worked, thank you very much! On Sep 14, 4:23 am, Tim Chase wrote: > >   File "C:\djproj\mysite\..\mysite\views.py", line 1 > > >     {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss > > \fcharset0 Arial;}} > > > ^ > > SyntaxError: unexpected character after line continuation ch

Re: Newbie: How to use object related to dropdown selection in django/javascript spaguetti code?

2009-09-14 Thread Samuel Lerning
Hi, Thank you so much Serafim! I think this is the right direction. And that was a nice tip. :) However, now, everytime I select a different foo from the list, a blank page with a number (that I think is the id from the foo object) is rendered. At the moment, the view code has the following str

Re: Development and deployment wit Git

2009-09-14 Thread Adam N
Orschiro, You should definitely use a service like GitHub.com unless you have a good reason not to. They have all the rough edges worked out and you get a great web interface for everything. In addition, sharing becomes much easier if you're working with other GitHub projects. If/When you ever

admin interface, nginx and fawps

2009-09-14 Thread Sven Richter
Hi all, i am running a django project with fapws ( http://github.com/william-os4y/fapws3) as server managed through nginx as webserver (nginx just forwards to the running fapws instance). Fapws deploys the django project as wsgi app. Now i have a weird problem, i am using the admin interface very

Saving Oracle Connection across requests

2009-09-14 Thread lfrodrigues
Hello, I'm not sure this is possible but I would to save a oracle connection across several requests (like I do with a normal object) I would like to: if 'object' in request.session: do stuff else: import cx_Oracle conn = cx_Oracle.connect(constring) request.session['object'] = conn do stu

Re: readonly forms

2009-09-14 Thread Jeff Green
It would be nice to get something like this into django. I have used something similar for my readonly fields. On Mon, Sep 14, 2009 at 6:14 AM, Thomas Guettler wrote: > > hi, > > I develop intranet apps with a lot of forms. Sometimes I need > to render them as readonly. I use snippet 1682 (see b

Re: render a table

2009-09-14 Thread Tiago Serafim
Hi, What you want is usually done using cycle: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle On Mon, Sep 14, 2009 at 9:57 AM, luca72 wrote: > > hello i need to render a table where i need to separate a odd colum to > even column > > my wrong idea > > >

render a table

2009-09-14 Thread luca72
hello i need to render a table where i need to separate a odd colum to even column my wrong idea File Name Size {% for m in tutti %} {% if {{m.id}} even %} {% else %} {% endif %}

Re: PyFacebook and python-twitter

2009-09-14 Thread Rodrigo Cea
Most of the time, if you don't know how / can't install them, you can simply drop a library into your Django project directory and it will just work. On Sep 13, 1:36 pm, Chris Babcock wrote: > On Sun, 13 Sep 2009 10:21:41 -0600 > > Adam Olsen wrote: > > On Sun, Sep 13, 2009 at 9:54 AM, simba w

Re: newbye question

2009-09-14 Thread Doug Blank
On Mon, Sep 14, 2009 at 7:17 AM, Nicola Manica wrote: > Hi, I'm a student that try to learn geodjango. > I have the following code in one view: > ... > for t_path in path.the_geom: > print t_path.json > print t_path.wkt > print t_path.kml > ... > > path.the_geom is a multilinestr

newbye question

2009-09-14 Thread Nicola Manica
Hi, I'm a student that try to learn geodjango. I have the following code in one view: ... for t_path in path.the_geom: print t_path.json print t_path.wkt print t_path.kml ... path.the_geom is a multilinestring. The output that I obtain is ... { "type": "LineString", "coordinates"

django and model field translations

2009-09-14 Thread andreas schmid
hi list, i have to develop a multilingual site and it works well on a single language now... but i have to do it for 3 languages translating some fields of the models. can you give me some tips for good available apps? my usecase is very simple. if a model has fields * title * descript

Re: Zip multiple files into a zipped folder for download?

2009-09-14 Thread DjangoRocks
To Dj Gilcrease: hi, the link which u have sent me expired. May i know if you can repaste the code again if it is not too much trouble for u? Best Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to m

Re: SyntaxError: unexpected character after line continuation character

2009-09-14 Thread Ajit jena
Hello, In url.py module Try this urlpatterns = patterns('', (r'^$', '..views.hello'), ) instead of from mysite.views import hello urlpatterns = patterns('', ('^hello/$', hello), ) I hope this will fix ur issue. Thanks, Ajit On Mon, Sep 14, 2009 at 1:04 PM, about2flip wrote:

Re: get current URL

2009-09-14 Thread Peter Bengtsson
Perhaps it's this you're looking for: current_url = request.build_absolute_uri() On 14 Sep, 01:12, Shuge Lee wrote: > How to get current URL ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

readonly forms

2009-09-14 Thread Thomas Guettler
hi, I develop intranet apps with a lot of forms. Sometimes I need to render them as readonly. I use snippet 1682 (see below) to make widgets readonly. This way you can use the same code for viewing and editing a form. Are more django user using something like this? If yes, it would be nice to g

Re: django-admin.py the system cannot execute the specified program

2009-09-14 Thread Peter Bengtsson
about2flip You have to go through the python tutorial I'm afraid. Python files must be written in plain text so you have to use something like Notepad. On 14 Sep, 08:50, about2flip wrote: > Thanks for reply. No I get: > SyntaxError: unexpected character after line continuation character > > I am

Re: filter on entries from a certain user

2009-09-14 Thread Peter Bengtsson
On 14 Sep, 09:24, Peter Newman wrote: > Ok i am a bit further. The above only works with Google's > authentication. However I want to use Django authentication. Is there > a way to add the current user to the model during creation of the > entity? There must be something similar as auro_current

Re: Date Field in ModelForm

2009-09-14 Thread Jianjun
Thanks, It solve my question also. It's ok in Django 1.02, but after I migrate to 1.1, I meet the issue. On Sep 14, 1:43 am, Daniel Roseman wrote: > On Sep 9, 12:07 pm, mettwoch wrote: > > > Here is the definition of the field: > > >     date_due       = models.DateField(auto_now_add=True) > >

Re: Does Django use prepared statement when generating SQL for postgresql?

2009-09-14 Thread Luca Ferroni
Continuation wrote: > If not, is there a way to do it? + 1 Some time ago, when I searched for them I found a snippet or some testing code. Now I can't find it anymore. I am going to develop something that would make the user able to use prepared statement, but obviously I'd like to know if so

Re: filter on entries from a certain user

2009-09-14 Thread Peter Newman
Ok i am a bit further. The above only works with Google's authentication. However I want to use Django authentication. Is there a way to add the current user to the model during creation of the entity? There must be something similar as auro_current_user_add you would think? On Sep 13, 4:55 pm, P

Re: SyntaxError: unexpected character after line continuation character

2009-09-14 Thread Tim Chase
> File "C:\djproj\mysite\..\mysite\views.py", line 1 > > {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss > \fcharset0 Arial;}} > > ^ > SyntaxError: unexpected character after line continuation character Looks like your views.py file was saved in RTF format instead of plain

Re: django-admin.py the system cannot execute the specified program

2009-09-14 Thread about2flip
Thanks for reply. No I get: SyntaxError: unexpected character after line continuation character I am running it from my command prompt:>>python hello.py Is that correct? On Sep 13, 10:29 pm, Karen Tracey wrote: > On Sun, Sep 13, 2009 at 3:09 PM, about2flip wrote: > > > I am learning django,

SyntaxError: unexpected character after line continuation character

2009-09-14 Thread about2flip
I am learning from djangobook.com using the 2edition online ver. I am doing my first view from django.http import HttpResponse def hello(request): return HttpResponse("Hello world") -- and this is my urls.py file: from django.conf.