Re: filtering out entries that are already made

2010-01-27 Thread Kenneth Gonsalves
On Thursday 28 Jan 2010 12:47:39 pm Kenneth Gonsalves wrote: > I have a model called Matchentry which has foreign keys to the Match model > and the Player model. When making a new Matchentry, obviously the choices > have to be limited to the players who have not already been entered. I > used

Support for MS SQL Databases

2010-01-27 Thread sridharpandu
By any chance does Django support MSSQL DB's. I have a query from a prospective customer who would like to protect his current IT investments. Best regards Sridhar -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

filtering out entries that are already made

2010-01-27 Thread Kenneth Gonsalves
hi, I have a model called Matchentry which has foreign keys to the Match model and the Player model. When making a new Matchentry, obviously the choices have to be limited to the players who have not already been entered. I used to do this manually using plain python, but do we have a queryset

False negatives on model validation of CharField with choices

2010-01-27 Thread Thomas B. Higgins
I am writing to see if anyone thinks this is not a bug before creating a new ticket. I have an app that runs as expected on Django 1.1.1. It used to work on the development version, but a problem arose no later than 1.2 alpha 1 SVN-12271, and perhaps much earlier. Basically, the errors dictionary

Re: URL design - why the trailing slash?

2010-01-27 Thread Graham Dumpleton
On Jan 28, 11:54 am, Brett Thomas wrote: > Most of the URLConf examples I run across use a trailing slash on all > URLs:www.example.com/profile/ > > I'm not sure why, but I don't like this. I think it looks nicer > without:www.example.com/profile > > Are there any

Re: FBML not working

2010-01-27 Thread chiranjeevi muttoju
Hi daniel, Thanks for ur reply. I am viewing that page through the facebook only. but i cont able to work with the FBML tags. Is there an initial setup to use the FBML tags. Please help me if u know. Thank you. On Thu, Jan 28, 2010 at 3:08 AM, Daniel Roseman wrote: > On

Session Management

2010-01-27 Thread Bhaskar Gara
Hi, Right now I am tracking my subcriber session, I have a new requirement. From our website, the subcriber can go to different website and take the exam. Once he finish that exam, I need to send a request to their database to get the result of that exam. How can I track the second website

Re: URL design - why the trailing slash?

2010-01-27 Thread Eugene Wee
Hi, On Thu, Jan 28, 2010 at 8:54 AM, Brett Thomas wrote: > Most of the URLConf examples I run across use a trailing slash on all URLs: > www.example.com/profile/ > > I'm not sure why, but I don't like this. I think it looks nicer without: > www.example.com/profile I

Re: 1.2 alpha, multiple databases, and raw SQL

2010-01-27 Thread Russell Keith-Magee
On Thu, Jan 28, 2010 at 10:41 AM, Chris Curvey wrote: > Is there a way to use raw SQL with multiple databases?  I thought it > might be something like: > > from django.db import connection > cursor = connection.cursor(using="mydb") > > but that complains about an unexpected

1.2 alpha, multiple databases, and raw SQL

2010-01-27 Thread Chris Curvey
Is there a way to use raw SQL with multiple databases? I thought it might be something like: from django.db import connection cursor = connection.cursor(using="mydb") but that complains about an unexpected keyword arg. -- You received this message because you are subscribed to the Google

URL design - why the trailing slash?

2010-01-27 Thread Brett Thomas
Most of the URLConf examples I run across use a trailing slash on all URLs: www.example.com/profile/ I'm not sure why, but I don't like this. I think it looks nicer without: www.example.com/profile Are there any performance or security reasons to use the trailing slash in Django? Seems like

Re: Reasons why syncdb ignores an application?

2010-01-27 Thread mtnpaul
In manage.py you could add sys.path.insert(0, "/path/to/web") Just before the if __name__="__main__": line You will also need to handle this in your wsgi file for deployment. Are you using "South"? If so, new tables for something you have migrated will not be built by syncdb. On Jan 27,

Re: ANN - django-test-extensions now provides assert_xml(xml, xpath)

2010-01-27 Thread Phlip
> The second line uses XPath notation to assert that the report's first > contains a which contains exactly 30 rows. Forgot to mention: We are doing this because wkhtmltopdf apparently cannot respect tags when it paginates tables for us, so we must do it the old fashioned way. Below my sig

ANN - django-test-extensions now provides assert_xml(xml, xpath)

2010-01-27 Thread Phlip
Djangoists: For every system I use, I invent a version of assert_xml(). (Sometimes I call it assert_html(), or assert_xpath(), or assert_xhtml(), depending on the context.) For Django, it's assert_xml(), available in the current django-test- extensions. Get it with this malarkey: sudo pip

Re: "Pro Django" book still up to date

2010-01-27 Thread Russell Keith-Magee
On Thu, Jan 28, 2010 at 1:07 AM, thanos wrote: > It's useless. The "The definitive guide to Django" by Holovaty and > Kaplan-moss is okay, but the Pro version is really just a waste of > paper and time. Everyone is entitled to an opinion, but I must say my opinion is the exact

Re: "Pro Django" book still up to date

2010-01-27 Thread Russell Keith-Magee
On Thu, Jan 28, 2010 at 6:23 AM, FxFocus wrote: > On Jan 27, 4:55 pm, Achim Domma wrote: >> Hi, >> >> I'm interested in buying the "Pro Django" book. I could not find any >> hint about what version it's written for. As it covers mostly >>

Re: Is it possible to 'order' the left side of a filter_horizontal?

2010-01-27 Thread SeanSF
I just had the same question, and the meta 'ordering' did the trick. Thanks Reed and Tim! On Nov 30 2009, 8:22 am, rc wrote: > Tim, > > The ordering meta option on my model did the trick. Thanks for the > solution. > > Reed > > On Nov 25, 1:50 pm, Tim Valenta

Kinterbasd error

2010-01-27 Thread Etratch
Hello everybody, I have a huge problem and Google has not helped me solution : ( Come to my problem: I have a web server configured with ModPython for 2 websites those that connect to a firebird database - "2 is connect the same database " The problem is that sometimes I get the following error

Re: "Pro Django" book still up to date

2010-01-27 Thread FxFocus
On Jan 27, 4:55 pm, Achim Domma wrote: > Hi, > > I'm interested in buying the "Pro Django" book. I could not find any > hint about what version it's written for. As it covers mostly > internals and the ideas behind Django, it should not be outdated as > quickly as other

Re: Python app Installers

2010-01-27 Thread Atamert Ölçgen
On Wednesday 27 January 2010 22:34:19 Kenny Meyer wrote: > Have a look at python-setuptools. > > May fit your needs. > http://packages.python.org/distribute/ -- Saygılarımla, Atamert Ölçgen -+- --+ +++ www.muhuk.com mu...@jabber.org -- You received this message because you are

Re: Reasons why syncdb ignores an application?

2010-01-27 Thread Kenneth Gonsalves
On Thursday 28 Jan 2010 3:10:32 am phoebebright wrote: > What is going on?! > in shell try from yourapp.web.views import * -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ -- You received this message because you are subscribed to the Google Groups

Dealing with polyhierarchical data

2010-01-27 Thread Olivier Guilyardi
Hi, I'm working with a polyhierarchical thesaurus, and trying to handle that in Django. By polyhierarchical, I mean : nodes can have both multiple parents and children. Actually, this is a geographical thesaurus, and yes a location can have multiple parents (being across countries, etc..). I

Re: Why does admin fail on one project and not another?

2010-01-27 Thread grahamu
Two additional notes for this issue: 1. Clicking on _any_ model in the admin causes the same TypeError. 2. Clicking on "+Add" in admin for the User model yields a blank form! Clicking on "+Add" for any other model shows a valid form. On Jan 27, 3:08 pm, grahamu wrote: >

Why does admin fail on one project and not another?

2010-01-27 Thread grahamu
I'm having a problem with django admin working for one local project and not another. Both use the same version of Django (SVN-12311). Both have very similar settings.py files. The issue appears when I click on an app model class name in the root admin list (at "/admin/"). In this case I was

Re: Reasons why syncdb ignores an application?

2010-01-27 Thread Daniel Roseman
On Jan 27, 6:54 pm, phoebebright wrote: > I cannot find the reason why syncdb will not create tables from a > models.py. > > It is quite happy to create the auth tables and ones from an external > app that is included in INSTALLED_APPS but it won't build the tables >

Re: Reasons why syncdb ignores an application?

2010-01-27 Thread phoebebright
Malcolm, Thanks for your reply. Path does not include web: '/Users/phoebebr/Development/tinyhq', '/Users/phoebebr/Development/tinyhq/libs', '/Users/phoebebr/Development/tinyhq', '/Users/phoebebr/Development/tinyhq/libs', '/Users/phoebebr/Development/tinyhq', but if I do import web I don't

Re: FBML not working

2010-01-27 Thread Daniel Roseman
On Jan 27, 9:15 pm, "chiranjeevi.muttoju" wrote: > Hi >   in my application the FBML tags are not working properly.. could any > one of you please help me if you know what the problem might be.. > > thank you. > --chiranjeevi. Yes, your problem is on line 5. OK, I'll get

Re: Updating a user/profile model object

2010-01-27 Thread Daniel Roseman
On Jan 27, 7:42 pm, JonRob wrote: > Hi, > > I'm just starting out learning Django, trying to cut my teeth by > working on a simple website that involves a user profile. > > I've created a ModelForm of the profile model, that instances the > profile of the logged in

FBML not working

2010-01-27 Thread chiranjeevi.muttoju
Hi in my application the FBML tags are not working properly.. could any one of you please help me if you know what the problem might be.. thank you. --chiranjeevi. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Python app Installers

2010-01-27 Thread Kenny Meyer
zweb (traderash...@gmail.com) wrote: > What is the best way to build installer for python/django based > software product ? > Like in Microsoft world you can have .exe and installshield? > > I need to way which can guide user to setup database, run DB script, > set up parameters and guide him

Re: Models, forms and inlineformset

2010-01-27 Thread Stefan Nitsche
On Wed, Jan 27, 2010 at 14:04, andreas schmid wrote: > is this an add or an edit form? or both? > > i have a similar inlineformset and i need to loop over the inline > objects to set the foreignkey to the parent object like: > >if form.is_valid() and formset.is_valid():

Making a model field have a default value

2010-01-27 Thread Malcolm Box
Hi, A question that's probably obvious but I can't quite see the best way to do it. I've got a model, call it Template, with some fields colour1, colour2 etc. What I want is that if there's a no value for the colourN field then a default value is returned when the field is read. Aha I hear you

Updating a user/profile model object

2010-01-27 Thread JonRob
Hi, I'm just starting out learning Django, trying to cut my teeth by working on a simple website that involves a user profile. I've created a ModelForm of the profile model, that instances the profile of the logged in user, which I then want the user to be able to update so that they can update

Re: "Pro Django" book still up to date

2010-01-27 Thread Reinout van Rees
On 01/27/2010 05:55 PM, Achim Domma wrote: Hi, I'm interested in buying the "Pro Django" book. I could not find any hint about what version it's written for. As it covers mostly internals and the ideas behind Django, it should not be outdated as quickly as other books. Has anybody read that

Python app Installers

2010-01-27 Thread zweb
What is the best way to build installer for python/django based software product ? Like in Microsoft world you can have .exe and installshield? I need to way which can guide user to setup database, run DB script, set up parameters and guide him through installation. Also want to give the option

Re: Reasons why syncdb ignores an application?

2010-01-27 Thread Malcolm Box
On Wed, Jan 27, 2010 at 6:54 PM, phoebebright wrote: > I cannot find the reason why syncdb will not create tables from a > models.py. > > It is quite happy to create the auth tables and ones from an external > app that is included in INSTALLED_APPS but it won't build

Re: Number of total items in the database

2010-01-27 Thread Zeynel
Thanks. That works. On Jan 27, 1:26 pm, Malcolm Box wrote: > On Wed, Jan 27, 2010 at 6:10 PM, Zeynel wrote: > > Hello, > > > How do I query the the total number of items in the database to put in > > a template? > > > I want to add to this

Re: Multilingual project with applications in different default-languages

2010-01-27 Thread Andreas Pfrengle
Hello Matthias, > It is possible, but you _will_ get a chaos (or have already gotten one > in case you've already gone down that road). thanks for pointing me onto the painful truth. We _have_ the chaos... but it's not that big yet ;-) > If you need to fix > the english version later, the

Re: ExtendableModel

2010-01-27 Thread phoebebright
Maybe you should consider an alternative backend to SQL - which is after all a relational database! CouchDB? I could see queries being very expensive with your model. On Jan 26, 10:08 am, Igor Rubinovich wrote: > Hi, > > I need an educated opinion on the following

Re: I am new to the Django community

2010-01-27 Thread phoebebright
Not reading but after a year using Django I have just got myself setup with Aptana + Pydev which includes an interactive debugger. I found this very useful for understanding what is going on in Django behind the scenes, and wish I'd made the effort to do it sooner! On Jan 27, 1:14 am,

Reasons why syncdb ignores an application?

2010-01-27 Thread phoebebright
I cannot find the reason why syncdb will not create tables from a models.py. It is quite happy to create the auth tables and ones from an external app that is included in INSTALLED_APPS but it won't build the tables from my 'web' folder. I can put a print statement in the web.models.py and it

Re: Number of total items in the database

2010-01-27 Thread Malcolm Box
On Wed, Jan 27, 2010 at 6:10 PM, Zeynel wrote: > Hello, > > How do I query the the total number of items in the database to put in > a template? > > I want to add to this page http://swimswith.com/search/ that "There > are currently [X] lawyers in the database." > > Have a

Number of total items in the database

2010-01-27 Thread Zeynel
Hello, How do I query the the total number of items in the database to put in a template? I want to add to this page http://swimswith.com/search/ that "There are currently [X] lawyers in the database." Thanks -- You received this message because you are subscribed to the Google Groups

Re: Python Graph

2010-01-27 Thread Bhaskar Gara
I am really stupid. After cut & Paste I need to double check what i pasted. Thank you very much Dan and sorry for wasting your time. Lesson learned. On Jan 27, 11:16 am, Daniel Hilton wrote: > 2010/1/27 Bhaskar Gara : > > > > > > > No luck. > > >

Re: "Pro Django" book still up to date

2010-01-27 Thread Karen Tracey
On Wed, Jan 27, 2010 at 12:07 PM, thanos wrote: > It's useless. The "The definitive guide to Django" by Holovaty and > Kaplan-moss is okay, but the Pro version is really just a waste of > paper and time. More helpful than this would be a response to the actual question,

Re: Python Graph

2010-01-27 Thread Daniel Hilton
2010/1/27 Bhaskar Gara : > No luck. > > url.py > url(r'^member/score/compare/$', direct_to_template, >            {'template': 'member_score_compare.html'}, > name='member_score_compare'), > > > view.py > def prev_score(request): >    template_name = 'member_score_compare.html'

Re: "Pro Django" book still up to date

2010-01-27 Thread thanos
It's useless. The "The definitive guide to Django" by Holovaty and Kaplan-moss is okay, but the Pro version is really just a waste of paper and time. Thanos Vassilakis On Jan 27, 11:55 am, Achim Domma wrote: > Hi, > > I'm interested in buying the "Pro Django" book. I could

Re: Python Graph

2010-01-27 Thread Bhaskar Gara
No luck. url.py url(r'^member/score/compare/$', direct_to_template, {'template': 'member_score_compare.html'}, name='member_score_compare'), view.py def prev_score(request): template_name = 'member_score_compare.html' graph = graphs.BarGraph('vBar') graph.values = [380,

static media serve weird behavior

2010-01-27 Thread Vladimir Shulyak
Hello everyone! Really strange problem with serving static files with django.views.static.serve(): So I've got media/css dir with show_indexes=True for serve() method. It gives me list like this: Index of css/ # ../ # default.css # general.css ... It means that the script is able to locate both

Re: Google maps routes in geodjango

2010-01-27 Thread Peter Landry
Ubuntu has fairly up-to-date Postgis packages available, I believe. That might be an easier route to start from if you're unfamiliar with building from source. On 1/27/10 12:04 PM, "Alexis Selves" wrote: > Hello again, > I have another problem... > When I want to install

Re: I am new to the Django community

2010-01-27 Thread diofeher
'Pro Django' by Marty Alchin and 'Practical Django Projects' by James Bennett are also good books you should read. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: Google maps routes in geodjango

2010-01-27 Thread Alexis Selves
Hello again, I have another problem... When I want to install PostGIS using this http://geodjango.org/docs/install.html#postgis I receive this: make -C liblwgeom make[1]: Entering directory `/home/petr/Skola/postgis-1.4.0/liblwgeom' gcc -g -O2 -fno-common -DPIC -Wall -Wmissing-prototypes -c

"Pro Django" book still up to date

2010-01-27 Thread Achim Domma
Hi, I'm interested in buying the "Pro Django" book. I could not find any hint about what version it's written for. As it covers mostly internals and the ideas behind Django, it should not be outdated as quickly as other books. Has anybody read that book and can give some feedback about how useful

Re: Display most popular video from each category

2010-01-27 Thread Gabriel Reis
Hi, I would do something like this: top_videos = {} for i in xrange(1,6): videos = Video.objects.filter(category=i).order_by('-hit_count') if videos: top_videos[i] = videos[0] Then, access the top videos via the top_videos dict. Cheers, Gabriel -- Gabriel de Carvalho

Display most popular video from each category

2010-01-27 Thread grimmus
Hi, On the homepage of my site i display 1 main video and then the most popular video from each of the 5 categories, which is determined by a hit count. Basically i need something like the following tv_video = Video.objects.filter(category=1).order_by('-hit_count') But i need an object

Re: Python Graph

2010-01-27 Thread Bhaskar Gara
Thank you Dan On Jan 27, 3:40 am, Daniel Hilton wrote: > 2010/1/27 Bhaskar Gara : > > > > > > > Hi, > > >    I am very new to django.  I am trying to use this library for my > > graphs > >http://www.gerd-tentler.de/tools/pygraphs/?page=introduction >

Re: View doesn't return HttpResponse object

2010-01-27 Thread Karen Tracey
On Wed, Jan 27, 2010 at 10:02 AM, Malcolm Box wrote: > It was indented if you looked in the original message text - I suspect your > (and my) default email program is stripping leading spaces. > How odd. Looking at it in Gmail one space has been removed from the front of

Re: View doesn't return HttpResponse object

2010-01-27 Thread Daniel Roseman
On Jan 27, 10:38 am, Ashok Prabhu wrote: > Hi, > > I have the following view which throws the error "The view > TCDB.viewdb.views.dbout didn't return an HttpResponse object." I have > tried various indentation for the return statement. But it doesn't > seem to help. Can

Re: View doesn't return HttpResponse object

2010-01-27 Thread Malcolm Box
On Wed, Jan 27, 2010 at 2:54 PM, Karen Tracey wrote: > On Wed, Jan 27, 2010 at 9:45 AM, Malcolm Box wrote: > >> That code looks fine to me. I'd suggest sticking an "import >> pdb;pdb.set_trace()" as the first line of the view, then stepping through >>

Re: Geodjango - viable for this task? Please give input

2010-01-27 Thread Peter Landry
On 1/27/10 1:29 AM, "cc0" wrote: > A quick and basic rundown of what I need to do, (my project idea is > still being hatched); > > 1. I have a database with a number of coordinates (we are talking > probably some ten thousand different coordinates) > > 2. I need to

Re: View doesn't return HttpResponse object

2010-01-27 Thread Karen Tracey
On Wed, Jan 27, 2010 at 9:45 AM, Malcolm Box wrote: > That code looks fine to me. I'd suggest sticking an "import > pdb;pdb.set_trace()" as the first line of the view, then stepping through > the code (run the server with manage.py runserver). That should quickly >

Re: RSS-newby Error was: No module named django.contrib.syndication.views

2010-01-27 Thread Karen Tracey
On Wed, Jan 27, 2010 at 6:23 AM, luupux wrote: > Hello , im have a newbye question > > I have a simple application named proxy and i put simple rss feed . > This is my error > > Request URL:http://localhost:8000/proxy/feeds/feedurl/ > Exception Type:

Re: View doesn't return HttpResponse object

2010-01-27 Thread Malcolm Box
That code looks fine to me. I'd suggest sticking an "import pdb;pdb.set_trace()" as the first line of the view, then stepping through the code (run the server with manage.py runserver). That should quickly highlight any areas where the code flow isn't as you expect. Cheers, Malcolm On Wed,

RSS-newby Error was: No module named django.contrib.syndication.views

2010-01-27 Thread luupux
Hello , im have a newbye question I have a simple application named proxy and i put simple rss feed . This is my error Request URL:http://localhost:8000/proxy/feeds/feedurl/ Exception Type: ViewDoesNotExist Exception Value: Could not import

View doesn't return HttpResponse object

2010-01-27 Thread Ashok Prabhu
Hi, I have the following view which throws the error "The view TCDB.viewdb.views.dbout didn't return an HttpResponse object." I have tried various indentation for the return statement. But it doesn't seem to help. Can somebody help? def dbout(request): try: filter_string=

Geodjango - viable for this task? Please give input

2010-01-27 Thread cc0
A quick and basic rundown of what I need to do, (my project idea is still being hatched); 1. I have a database with a number of coordinates (we are talking probably some ten thousand different coordinates) 2. I need to relate these coordinates to specific regions on a map (pref. google maps),

Using two slugs to call a detail view? [newbie]

2010-01-27 Thread GJCGJC
Hi, I'm trying to put a site together for a local charity. I'd like them to be able to add new pages to the primary and secondary navigation from the admin site and, importantly, I want them to be able to specify what secondary pages belong to which primary pages. I'm trying to do this with

Re: Models, forms and inlineformset

2010-01-27 Thread andreas schmid
is this an add or an edit form? or both? i have a similar inlineformset and i need to loop over the inline objects to set the foreignkey to the parent object like: if form.is_valid() and formset.is_valid(): # All validation rules pass new_idea = form.save(commit=False)

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Thank you it was my template directory which actually was templates/ photologue/templates. Still, your help was what led me to the result. Take good care -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Thank you it was my template directory which actually was templates/ photologue/templates. Still, your help was what led me to the result. Take good care -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Python Graph

2010-01-27 Thread Daniel Hilton
2010/1/27 Bhaskar Gara : > Hi, > >    I am very new to django.  I am trying to use this library for my > graphs > http://www.gerd-tentler.de/tools/pygraphs/?page=introduction > > > In my Views.py > > prev_score(request): >        graph = graphs.BarGraph('vBar') >        

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Unfortunately it is still not displaying the templates in the templates/photologue directory. I tried your idea. Is there anything else you can suggest? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Multiple template_dirs?

2010-01-27 Thread Mike Ramirez
On Wed, Jan 27, 2010 at 1:21 AM, djangonoob wrote: > Hi Mike, > > Unfortunately it is still not displaying the templates in the > templates/photologue directory. I tried your idea. Is there anything > else you can suggest? > Make sure that "photologues" is quoted in the tuple and not a string

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Unfortunately it is still not displaying the templates in the templates/photologue directory. I tried your idea. Is there anything else you can suggest? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Unfortunately it is still not displaying the templates in the templates/photologue directory. I tried your idea. Is there anything else you can suggest? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Unfortunately it is still not displaying the templates in the templates/photologue directory. I tried your idea. Is there anything else you can suggest? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Unfortunately it is still not displaying the templates in the templates/photologue directory. I tried your idea. Is there anything else you can suggest? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: 'Context' object has no attribute 'period'

2010-01-27 Thread Daniel Roseman
On Jan 27, 1:52 am, Andy wrote: > I am (still) new to Django and a novice at relational databases, so I > am having some problems.  I've read and read, but can't sort this out. > > I save the session data in this view: > def order(request): >         if request.method ==

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Yes I noticed that we both had made typos :) No worries I tried your first example and I will now use this one which I am sure will work. Thank you very much. On Jan 27, 10:37 am, Mike Ramirez wrote: > On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote: > > >

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Yes I noticed that we both had made typos :) No worries I tried your first example and I will now use this one which I am sure will work. Thank you very much. On Jan 27, 10:37 am, Mike Ramirez wrote: > On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote: > > >

Re: Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi Mike, Yes I noticed that we both had made typos :) No worries I tried your first example and I will now use this one which I am sure will work. Thank you very much. On Jan 27, 10:37 am, Mike Ramirez wrote: > On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote: > > >

Re: Multiple template_dirs?

2010-01-27 Thread Mike Ramirez
On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote: > base_tmpl_dir = os_path.join(PROJECT_PATH, 'templates') > TEMPLATE_DIRS = ( > base_tmpl_dir, > os_path.join(base_tmpl_dir, photologue), > ) > Fixed a typo --- base_tmpl_dir should have a , after it in the tuple. Mike --

Re: Multiple template_dirs?

2010-01-27 Thread Mike Ramirez
On Wednesday 27 January 2010 00:24:45 djangonoob wrote: > Hi. I am new to django and never had to specify more than one > TEMPLATE_DIRS. I am trying to add a second TEMPLATE_DIR to my existing > one which looks like this: > > TEMPLATE_DIRS = [ > os_path.join(PROJECT_PATH, 'templates'), > ) >

Re: Meta.widgets in ModelForm seems... ignored

2010-01-27 Thread Massimiliano della Rovere
Thanks foy your replies. The class Fondo has in truth lots of Textfield to be displayed as CharField (I am using django.forms to implement a search mask); the one posted was only an excerpt. I solved this way: class FondoForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(FondoForm,

Multiple template_dirs?

2010-01-27 Thread djangonoob
Hi. I am new to django and never had to specify more than one TEMPLATE_DIRS. I am trying to add a second TEMPLATE_DIR to my existing one which looks like this: TEMPLATE_DIRS = [ os_path.join(PROJECT_PATH, 'templates'), ) The template I would also like to add is under templates/photologue.