Re: Issue on using emailID as the username

2009-06-23 Thread Rama Vadakattu
1. i don't know whether it is expected behavior or not. But here are some ways to solve the above problem. --- Why it is not accepting @ character in admin ? As the username of UserCreation form ( from django.contr

Re: Question IMAGE in Django

2009-06-23 Thread Vlad(L)
Guys, can throw off to me to you on an e-mail my project to find an error - why the map is not output? I tried to do everything that to me prompted in it topic, but anything it is impossible to me --~--~-~--~~~---~--~~ You received this message because you are subsc

problem with mod_wsgi and integrated devserver

2009-06-23 Thread patrickk
we have our dedicated webserver setup with django & mod_wsgi, where everything works fine. but: when I start the devserver, the templates and mediafiles are not there ... if I start the integrated devserver with: --adminmedia = /path/to/admin/media/ and if I add: "/var/www/myserver/django_src/dja

how to not saving models

2009-06-23 Thread ReneMarxis
Hello i have a question if something is possible to implement :) i need some demo functionality in my django app and i'd like to realize it by having some flag in the user's session that defines if data should be saved at all or not in the whole app (for the session user). That way i could just

Re: how to not saving models

2009-06-23 Thread ReneMarxis
what i forgot to say: Of course i don't like to change all models- code. Some 'global' solution is what i am looking for. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: how to not saving models

2009-06-23 Thread Matías Costa
Monkey patch django.db.model.save Where? in manage.py? On Tue, Jun 23, 2009 at 12:56 PM, ReneMarxis wrote: > > what i forgot to say: Of course i don't like to change all models- > code. Some 'global' solution is what i am looking for. > > > --~--~-~--~~~---~--~~

Re: How to load fixtures only once in django unit tests?

2009-06-23 Thread Russell Keith-Magee
On Tue, Jun 23, 2009 at 1:21 PM, Rama Vadakattu wrote: > > In unit tests i need to load few fixtures  i have done as below > >   class TestQuestionBankViews(TestCase): > >        #load this fixtures >        fixtures = ['qbank',] > >        def setUp(self): >            login = self.client.login >

Re: Diffents admin sites into the same project

2009-06-23 Thread Russell Keith-Magee
On Tue, Jun 23, 2009 at 5:55 AM, KrcK wrote: > > Hi group! > > I've a problem with AdminSite. I don't know how can I get 3 admin sites > differents and if it's posible to do it. It is certainly possible, and it's documented: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-objec

using multilingual fields to slugify urls

2009-06-23 Thread Marco Bazzani
ok this is a little bit complex problem (at least for me) let's supose that I've a model like this one: class News(models.Model): name = CharField(max_length=200, unique=True) body = TextField() usually I put a slug field like this one slug = CharField(max_length=200, unique=True,

Re: How to use Sum function with expression

2009-06-23 Thread Russell Keith-Magee
On Tue, Jun 23, 2009 at 2:36 AM, pr wrote: > > Hi, > > I want to get total price (quantity*price) in this example for objest > list (not one) of A class > > class A(models.Model) >  name = models.CharField(max_length=255) > > class B(models.Model) >  quantity = models.PositiveIntegerField() >  pri

Re: Django 1.0.2 foreign key display puzzle

2009-06-23 Thread adelaide_mike
Hi Kenneth I agree that on my reading of the literature what you say is right. Here is my actual line adjusted as you suggest: form = ListingForm(initial={'date': request.session['date'], 'source_id': '2',}) In this case the date field is correctly populated with the preset date, the source foreig

Re: Internationalization in django and search engine indexing

2009-06-23 Thread Olivier
Thanks yml. The middleware part interests me a lot but I don't understand how the code work in your post. Do you use Django's LocaleMiddleware ? Where do you add the language_code in the url ? Finally, does it work with search engine indexing ? Because you still need to change language with a link

Re: Need to upload outside of MEDIA_ROOT, but I get SuspiciousOperation error

2009-06-23 Thread Nick Day
That worked, thanks. --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to django-users

How to use F() expression to flip the boolean field

2009-06-23 Thread jay.sh...@gmail.com
Hi there, I'm using django 1.1 beta now. There is a boolean column in my table. I want to filp all the value, that is True to False and False to True. I found the F() expression in django 1.1 beta, and tried to use to to satisfy my request but failed. Here is my usage: = code start = class

application scope objects?

2009-06-23 Thread qwcode
coming from the java/servlet world, objects can be placed in the "ServletContext", thereby making their scope *application* level, not per request. Yes, you have to be conscious of thread safety in putting an object there, but atleast you have this option. There's something similar for .Net ap

Apache 2.2 >> Forbidden You don't have a permission to access /static_media on this server

2009-06-23 Thread MarcoCanali
I have this error message from apache 2.2 server when i try to access at mine static_media for my django project. Apache serve my project in django without static file such as css or image ... Post the main file did use: Cartella Media : c:/python25/scripts/calculus/calculusdb/media Directori P

Re: Apache 2.2 >> Forbidden You don't have a permission to access /static_media on this server

2009-06-23 Thread Brian Neal
On Jun 23, 5:29 am, MarcoCanali wrote: > I have this error message from apache 2.2 server when i try to access > at mine static_media for my django project. Apache serve my project in > django without static file such as css or image ... Check your file permissions. Can the apache process read t

Encryption question

2009-06-23 Thread daniel
Good morning, I have a MySQL (version 5.0.5 running on Ubuntu 8.04) database containing encrypted fields (the encryption was done using mysql's AES_ENCRYPT). The database is normally accessed by an application written in C++ and Qt. However, I also need to access the database thru a web server an

Re: how to not saving models

2009-06-23 Thread ReneMarxis
Hey Matias. Many thanks for your answer. This is what my 'new' manage.py looks like: http://dpaste.com/58713/ and it seems to work. At least no data is saved any longer :) But next question is not far away: I can use pass or return forig(self) according to if i'd like to save or not (is this o

Re: Question IMAGE in Django

2009-06-23 Thread Brian Neal
Also check the permissions on your images. I had set the FILE_UPLOAD_PERMISSIONS to 0640 in development, but this wasn't correct for my production server. Ensure that Apache or whatever user the webserver is running has read access to your images. --~--~-~--~~~---~--~--

Re: Encryption question

2009-06-23 Thread Brian Neal
On Jun 23, 8:39 am, daniel wrote: > Good morning, > > I have a MySQL (version 5.0.5 running on Ubuntu 8.04) database > containing encrypted fields (the encryption was done using mysql's > AES_ENCRYPT). The database is normally accessed by an application > written in C++ and Qt. However, I also ne

Django - how to work with Ajax requests?

2009-06-23 Thread http://groups.google.com/group/django-users/
Hello everyone, i got a problem with working with Ajax requests @ the Admin models. How can i get requests from Ajax to the AdminModel to get 4 example from a dropdownmenu my manytomanyfield changed. its tricky! Have not found something @ the docu or something else... Thanks 4 reading, Chris --~

Re: How to use Sum function with expression

2009-06-23 Thread Alex Gaynor
On Tue, Jun 23, 2009 at 7:31 AM, Russell Keith-Magee wrote: > > On Tue, Jun 23, 2009 at 2:36 AM, pr wrote: > > > > Hi, > > > > I want to get total price (quantity*price) in this example for objest > > list (not one) of A class > > > > class A(models.Model) > > name = models.CharField(max_length=

Re: Django - how to work with Ajax requests?

2009-06-23 Thread Joshua Russo
On Jun 23, 12:49 pm, "http://groups.google.com/group/django-users/"; wrote: > Hello everyone, > i got a problem with working with Ajax requests @ the Admin models. > How can i get requests from Ajax to the AdminModel to get 4 example > from a dropdownmenu my manytomanyfield changed. > its tricky!

Re: Empty [] using objects.all() on legacy database

2009-06-23 Thread Karen Tracey
On Mon, Jun 22, 2009 at 2:19 PM, Erik Vorhes wrote: > > On Mon, Jun 22, 2009 at 12:52 PM, Greg Corey wrote: > > Karen, the double % ( i.e. 'discount%%') worked. Is this a big enough bug > > that it should be reported? I'm not sure what is a bug and what is just > my > > ignorance. Thank you sooo

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 2:02 AM, Phil wrote: > I'm sure I had this working before, but since then I have installed > the composite primary key patch and I notice the 2nd to last traceback > is in class CompositePrimaryKey... Could this be something to do with > it?? All ideas appreciated > Certa

Re: Diffents admin sites into the same project

2009-06-23 Thread KrcK
Hi again! My problem was that I thought that I've to create a class that inheritance from AdminSite and then used it to register my models, so when I wanted to hook MyAdminSite in my urls I didn't know how I could do that... After read your answer I've got to do it. And now I've my three diffe

CSS admin panel when deploy django application on Apache2

2009-06-23 Thread kiwi
Hi, I've a problem with CSS of admin panel of Django when I deploy my web application on Apache2. Everything works, only Css of admin's panel do not works correctely... Someone can help me? Thanks This is my httpd.conf file #WSGIDaemonProcess sds user=utente group=utente threads=25 #WSGIPr

Re: CSS admin panel when deploy django application on Apache2

2009-06-23 Thread Daniel Roseman
On Jun 23, 4:08 pm, kiwi wrote: > Hi, I've a problem with CSS of admin panel of Django when I deploy my > web application on Apache2. Everything works, only Css of admin's > panel do not works correctely... Someone can help me? > > Thanks > > Alias /media_admin/ /home/utente/www/python/sds/medi

Template tag testing

2009-06-23 Thread brianmac44
I tried to test template tags with doctests and unittests but I'm not sure what token and/or context to use. What's the best practice for testing template tags? Thanks, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Template tag testing

2009-06-23 Thread Michael
On Tue, Jun 23, 2009 at 11:53 AM, brianmac44 wrote: > > I tried to test template tags with doctests and unittests but I'm not > sure what token and/or context to use. What's the best practice for > testing template tags? > I don't know if this is best practice, but here is the way I test my temp

Re: Empty [] using objects.all() on legacy database

2009-06-23 Thread Greg Corey
Ok. I will work on opening a ticket based on your recommendation, though I will not have your depth of analysis on the problem. Mind if I quote your most recent explanation if needed? Greg On Tue, Jun 23, 2009 at 8:41 AM, Karen Tracey wrote: > On Mon, Jun 22, 2009 at 2:19 PM, Erik Vorhes wrote

Re: CSS admin panel when deploy django application on Apache2

2009-06-23 Thread jose antunes
usually that problem is resolved by creating a .htaccess file in the directory were the css resides with AddType /text/css .css because otherwise the server transfers the css as text/html. In the case of django the problem may be also because the css file for the admin panel is outside of the serv

Django admin interface for Web service

2009-06-23 Thread Kusako
Hi- I need to access an XMLRPC web service from the Django admin interface. Basically what I need is some create forms that will send data to the web service instead of storing to a database. As I'm somewhat new to Django I'm wondering about the best way to accomplish this. Should I just create

Re: Empty [] using objects.all() on legacy database

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 12:04 PM, Greg Corey wrote: > Ok. I will work on opening a ticket based on your recommendation, though I > will not have your depth of analysis on the problem. Mind if I quote your > most recent explanation if needed? > Sure, but it's probably not necessary, though you co

currying variables into ModelForm subclasses

2009-06-23 Thread Steve Howell
I have an application with a single method called member_create that presents a form to collect membership information and save it to the database. Depending on the project configuration and user I have different membership forms, so I have a line of code like this in member_create(): member

psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
Using what I believe is the latest version of psycopyg, I get: 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build running build running build_py creating build creating build/lib.macosx-10.3-fat-2.6 creating build/lib.macosx-10.3-fat-2.6/psycopg2 copying lib/__init__.py -> build/lib.macosx-10.3-

Re: Template tag testing

2009-06-23 Thread brianmac44
On Jun 23, 12:00 pm, Michael wrote: > On Tue, Jun 23, 2009 at 11:53 AM, brianmac44 wrote: > I don't know if this is best practice, but here is the way I test my > template tags essentially by rendering the templates: > > http://bitbucket.org/newmaniese/newmanutils/src/tip/newmanutils/tests.py

Re: how to not saving models

2009-06-23 Thread Matías Costa
This gets ugglier at each step, think twice before doing this. Django uses thread storage for django.db.connection, so what seems a simple object is unique to the request and safe. The quick and dirty way is to place a middleware after auth, and set something in django.db.connection. PD: django.db

Passing a param in __init__ of an inlineformset

2009-06-23 Thread martyn
Hi, I was looking for solutions to pass a param into forms created with inlineformset. Basicaly, I want to prepopulate a ChoiceField of my form with datas which comes from parent.parent.instance I've pasted the entire code (models / forms / views) here http://friendpaste.com/2Rtzh6wOiUMQA0aRJTpC

upload_to ignored outside of admin?

2009-06-23 Thread ryan
class Creative(models.Model): creative = models.FileField(upload_to='creative') element = models.ForeignKey(Element) #views.py(1) attachment = request.FILES[attachment_num] element.creative_set.create(creative=attachment) #views.py(2) attachment = request.FILES[attachment_num] Creative.o

Using pluralize with floats?

2009-06-23 Thread Peter Schroeder
Hello, Has anyone tried to use pluralize template tag with a float value? I am thinking of submitting a patch to support this functionality. For instance, using the value 1.5 returns a singular suffix from pluralize. I am implementing a real estate web application where a house could have 1.5 ba

Re: Using pluralize with floats?

2009-06-23 Thread Adam V.
Float is an inexact numeric type, so this sort of thing gets problematic. For a "number of bathrooms" field, why not use a CharField with a limited set of choices or custom validation? On Jun 23, 12:19 pm, Peter Schroeder wrote: > Hello, > > Has anyone tried to use pluralize template tag with a

Re: learning django

2009-06-23 Thread virgo
thank u very much.. On Jun 2, 4:52 pm, Hernan Olivera wrote: > 2009/6/2virgo: > > > > > I am very new to this field..got a job as python programmer and was > > asked to use django for web developmentHow do u think I should > > start learning...I dont have much time left before they kick me >

null values should work here but don't

2009-06-23 Thread K.C. Smith
I want to (optionally) leave some fields in a model/table NULL. I've set the options "null=True" and "blank=True" for the fields in question. I know it's working because the admin site add form greyed out the "blank=True" fields. But, I still can't add an object with these fields blank/NULL. I

Re: NoReverseMatch error during Django 1.0 tutorial

2009-06-23 Thread Rafa Muñoz Cárdenas
return HttpResponseRedirect(reverse ('mysite.polls.vews.results', args=(p.id,))) As you see, there is a mistake in "vews". return HttpResponseRedirect(reverse ('mysite.polls.views.results', args=(p.id,))) Now it should work :) On 21 jun, 19:11, ebbnormal wrote: > Hello, > > I am still working

Re: psycopyg setup error: no build_ext

2009-06-23 Thread James Martin
I was never able to get psycopg2 to compile on osx I recommend using sqlite for development or another database. If you must use psycopg2, you may want to try to get it through something like darwinports. On Tue, Jun 23, 2009 at 1:19 PM, Chris Haynes wrote: > > Using what I believe is the la

Re: application scope objects? (maybe need cherrypy instead)

2009-06-23 Thread qwcode
2 examples of where you'd want this: 1) storing a compiled xslt template (which is thread safe) that will be used repeatedly 2) storing a pylucene IndexSearcher object (which is thread safe) which are expensive to recreate from searching the archive, this question is coming up a lot (usually

Re: Uploading Images

2009-06-23 Thread Roboto
{% if form.is_multipart %} {% else %} {% endif %} {{ form }} http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files On Jun 15, 12:59 am, Oleg Oltar wrote: > I made a mistake in view.py. > Corrected version is > def handleUploadedFile(file): >     destination = ope

Re: psycopyg setup error: no build_ext

2009-06-23 Thread James Bennett
On Tue, Jun 23, 2009 at 2:33 PM, James Martin wrote: > I was never able to get psycopg2 to compile on osx I recommend > using sqlite for development or another database.  If you must use > psycopg2, you may want to try to get it through something like > darwinports. I've gotten it to compile

can't adapt error

2009-06-23 Thread sico
Hey, I was getting a weird can't adapt error when saving a record. Previous posts talked about charset conversions, unicode, etc... The problem I had turned out to be trying to write an object reference where I should have put the key value instead. e.g. rec["myfk"] = myObj changed to: rec["

makemessages .. not all translations found or commented out

2009-06-23 Thread Niels
I have text (in .html, .py an .txt) that should be translated. When I use this command ./manage.py makemessages -l nl -- pythonpath=apps_pinax,templates_pinax It finds translations in the html file like: #: templates_pinax/tribes/topics.html:11 msgid "Discussion Topics for Tribe" msgstr "Disc

Re: changes to views and forms are not reflected in browser

2009-06-23 Thread neridaj
I'm new to django, so I'm not sure how to do that. I'm on shared hosting, is that normally allowed? On Jun 17, 11:34 pm, Thomas Guettler wrote: > Hi, > > Does restarting apache or fast cgi server help? Do you access the page > through a proxy? > >  Thomas > > neri...@gmail.com schrieb: > > > Hel

Odd ModelForm problem

2009-06-23 Thread saxon75
I'm having a strange problem with my site wherein a ModelForm doesn't appear to recognize that it has an attribute that it ought to. I should preface this by saying that I recently moved my codebase to a new server--everything had been working fine on the old server and I haven't made any changes

Re: Limit the number of forms in a Formset.

2009-06-23 Thread Sonal Breed
Thanks a lot Karen, I cannot thank you enough.. The solution worked and solved many of my problems. Thanks a ton! Sonal. On Jun 19, 7:46 pm, Karen Tracey wrote: > On Fri, Jun 19, 2009 at 5:01 PM, Sonal Breed wrote: > > > Hi all, > > I am trying to display a formset in my application such that

django-registration not reflecting changes to forms and views

2009-06-23 Thread neri...@gmail.com
I'm using django-registration and don't understand why changes made to form and views are not reflected in the browser, even after deleting the referenced forms and views. I tried adding more form fields to the registration form and the changes would never show with touch dispatch.fcgi, so I tried

Re: TypeError: 'module' object is not callable

2009-06-23 Thread Paula Leuzzi
Is there any way to tell through debugging if there's an issue with saving a record? This form seems to work fine, but the record does not save. I'm lost as to why it's not committing. Any pointers on debug statements for this kind of issue? On Fri, Jun 19, 2009 at 4:32 PM, db_333 wrote: > >

why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread nbv4
I'm trying to set up a template for all my forms, but I'm having trouble using the {% with %} block: {% extends "base_form.html" %} {% with form.instance as object %} {% block title%} {{object.title}} <- not displayed :( {% endblock %} {% block body %} {% with form.instance as object %}

debugging

2009-06-23 Thread db_333
Hi I'm trying to figure out why a record I am trying to save from a form will not commit. The form seems to be working fine, and I wanted to know if there were any specific debugging statements I could use to see where this is failing. The following is what I have: 1. model: class Units(models

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
OK thanks Karen, so the patch is the cause, foreign key filters now work fine with the 1.0.2 main release. Of course, once again I have the problem that tables with composite primary keys are not working... I still don't understand why though. The class CompositePrimaryKey is not present in the m

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
> OK thanks Karen, so the patch is the cause, foreign key filters now > work fine with the 1.0.2 main release. Of course, once again I have > the problem that tables with composite primary keys are not working... Whoops, I just described a different problem (foreign key filters) that was caused b

Re: null values should work here but don't

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 4:14 PM, K.C. Smith wrote: > > I want to (optionally) leave some fields in a model/table NULL. I've > set the options "null=True" and "blank=True" for the fields in > question. I know it's working because the admin site add form greyed > out the "blank=True" fields. But

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 8:34 PM, nbv4 wrote: > > I'm trying to set up a template for all my forms, but I'm having > trouble using the {% with %} block: > > {% extends "base_form.html" %} > {% with form.instance as object %} > > {% block title%} >{{object.title}} <- not displayed :( > {% endbl

Re: psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
/opt/local/bin$ sudo port install py26-psycopg2 worked, after an incredible number of (presumably dependent) installs. Now I'm getting a password error, but I'll post that separately as it deserves a different title. thanks Chris On Jun 23, 8:33 pm, James Martin wrote: > I was never able to

Re: debugging

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 9:04 PM, db_333 wrote: > > Hi I'm trying to figure out why a record I am trying to save from a > form will not commit. The form seems to be working fine, and I wanted > to know if there were any specific debugging statements I could use to > see where this is failing. > >

Re: Using pluralize with floats?

2009-06-23 Thread Tim Chase
> Has anyone tried to use pluralize template tag with a float value? I > am thinking of submitting a patch to support this functionality. > > For instance, using the value 1.5 returns a singular suffix from > pluralize. I am implementing a real estate web application where a > house could have 1.

psycopg2.OperationalError: fe_sendauth: no password supplied

2009-06-23 Thread Chris Haynes
I've just installed postgresql and psycopg2. I supplied a password in the postgres install, but don't know how to supply it to psycopg2: ~/s/sd$ manage.py syncdb Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/users/home/system/lib/dja

Re: psycopyg setup error: no build_ext

2009-06-23 Thread Dhruv Adhia
I got my copy from the following site http://www.initd.org/pub/software/psycopg/ and got it working smoothly for the purpose of geodjango app the version I installed was psycopg2-2.0.11.tar.gz Cheers, On Tue, Jun 23, 2009 at 6:47

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Steve Howell
Nothing posted is outside a block but it could be that the parent has no title block? On Jun 23, 6:47 pm, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 8:34 PM, nbv4 wrote: > > > I'm trying to set up a template for all my forms, but I'm having > > trouble using the {% with %} block: > > > {% ex

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread buttman
On Jun 23, 9:47 pm, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 8:34 PM, nbv4 wrote: > > > I'm trying to set up a template for all my forms, but I'm having > > trouble using the {% with %} block: > > > {% extends "base_form.html" %} > > {% with form.instance as object %} > > > {% block title%}

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 10:16 PM, Steve Howell wrote: > > Nothing posted is outside a block but it could be that the parent has > no title block? > I can't parse this sentence. The part of the original post where things didn't work is here: {% extends "base_form.html" %} {% with form.instance

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 10:22 PM, buttman wrote: > > Yes, but {% with %} isn't placing anything anywhere. It's just > creating a new variable "object" from "form.instance". My only options > seems to be either stuck using form.instance, or place a {% with %} > tag inside each and every {% block %

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Steve Howell
On Jun 23, 7:29 pm, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 10:16 PM, Steve Howell wrote: > > > Nothing posted is outside a block but it could be that the parent has > > no title block? > > I can't parse this sentence.  The part of the original post where things > didn't work is here: >

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread buttman
On Jun 23, 11:03 pm, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 10:22 PM, buttman wrote: > > You seem to have left out of your options the choice of putting the {% with > %} block in the parent template?  Or passing your variables in the context > with the names you'd like to use in the templ

Re: psycopg2.OperationalError: fe_sendauth: no password supplied

2009-06-23 Thread Dhruv Adhia
I think combo of these links should help you, http://hocuspokus.net/2008/05/install-postgresql-on-ubuntu-804 find out where pg_hba.conf should be under your 8.3/main/ , I am not sure just find it out. This file has all the permission stuff. Also otherwise look at docs http://www.postgresql.org/d

TinyMCE django admin

2009-06-23 Thread Dhruv Adhia
Hello All, I have following under models.py from django.db import models from django.contrib import admin from tinymce import models as tinymce_models class BlogPost(models.Model): title = models.CharField(max_length=150) body = models.TextField() #observe, thats how you get big chara

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 11:05 PM, Steve Howell wrote: > > {% extends "base_form.html" %} > > {% with form.instance as object %} > > > > I understand why tags outside the block would not render anything > within the parent but it is not as clear to me why the with statement > would not change the

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Steve Howell
The child should either win semantically or fail syntactically. You seem to have some sympathy for the latter position. I think the current behavior is less than ideal but I have no passion to fix it. It might be something worth documenting more clearly. Without researching tracker I suspect th

Processing multiple forms on one page

2009-06-23 Thread Oleg Oltar
Hi! I am writing a small application for user profile management. I need to display and to process output from 2 form on the page of own profile. How can I do it? 1. Form if to change avatar. (Contains browse and upload buttons) 2. Form is for changing user details, e.g. info field, or maybe em