Re: Modifying existing site

2011-05-26 Thread Kenneth Gonsalves
On Thu, 2011-05-26 at 06:26 -0700, Sach wrote: > As I don't know anything about Django, can someone please shed a light > where I should start from? do the 4 part tutorial. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message

Re: Django Model custom save

2011-05-26 Thread Kenneth Gonsalves
On Thu, 2011-05-26 at 04:36 -0700, Юлиян Попов wrote: > I have a model and a form which is used to insert new rows in > database. For > every inserted (or edited) row I need to make a database lock and > check if > edited row have a conflict with rows that are already in the database. why do you

Dynamically Add Fields to a Form

2011-05-26 Thread Afshin Moshrefi
I need to add fields dynamically to a form : I've got some excellent replies and I understand I have to overload __init__ function in the form class to achieve this. My question is what would the view look like? I'm not sure how the addition of a new field by __init__ is achieved dynamically?! -

Abstract base classes, multiple inheritance and field removal

2011-05-26 Thread Justin
Hello All, I have a situation where I would like to combine two fields from two abstract child classes into a parent class. class A(model): field = MyField() class Meta: abstract = True class B(model): field = MyField() class Meta: abstract = True class C(A, B,

Overridden Admin Template Not Recognized

2011-05-26 Thread Lee
I'm trying to override the TabularInline template following the instructions in https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates. I copied the tabular.html file to myproject/templates/admin/myapp and made changes to it, but they have no effect. I double-checked T

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread James Robey
VIM is exceptionally portable and "no-frills" for those who are used to it. Emacs is similarly excellent for those that are accustomed to it as well. However, you will very naturally go between many, many editors over the course of your career. This particular persons's comment brings up

Re: OperationalError: no connection to the server using Django and gunicorn

2011-05-26 Thread Shawn Milochik
What's the command you're using to run it? Are you in screen? Are you using supervisor or anything like that? -- 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 fr

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Simon Connah
Vim has a "Command-T" plugin that is inspired from the Textmate functionality and should work in the same manner (to an extent). http://www.vim.org/scripts/script.php?script_id=3025 (I don't use this plugin myself though as I find NERDtree more than capable and already has all the files in an e

Django-tables LinkColumn need help

2011-05-26 Thread yevishere
Ive been using django-tables and I love them, however I need to make links that would be linking out to different websites depending on the content of the django-table cells for example: 10202 in a table would link out to http://somewebpate/10202 http://readthedocs.org/docs/django-tables/en/master/

admin list_filter only for superuser?

2011-05-26 Thread galgal
Is it possible to show list_filter only for superuser? I want to show filter only for users that are superusers or have some permissions. -- 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@googlegr

Odp: Looking for Class Base Views intro (not Generic Class Base Views!)

2011-05-26 Thread Mateusz Harasymczuk
Anyone? Class Based Views? -- 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+unsubscr...@googlegroups.com. For more opt

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Jordon Wii
+1 for Kate. I've used it for everything I've done in the last 3 years (plenty), and it's got good highlighting for Django templates. -- 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

OperationalError: no connection to the server using Django and gunicorn

2011-05-26 Thread Adrián Ribao
Hello, I'm testing gunicorn in the server, and I get this error in every request: Traceback (most recent call last): File "project/env/lib/python2.6/site-packages/gunicorn/workers/ async.py", line 62, in handle_request respiter = self.wsgi(environ, resp.start_response) File "project/env/l

Re: login with subdomains

2011-05-26 Thread Cal Leeming [Simplicity Media Ltd]
Glad you managed to get it working! :) On Thu, May 26, 2011 at 10:47 PM, tom wrote: > Hey, > > I implemented it that way: > > One view takes the request and the password, encrypts username and > password and creates a sha1 hash with the pickled data. This pickled > data is then stored in the cac

Re: login with subdomains

2011-05-26 Thread tom
Hey, I implemented it that way: One view takes the request and the password, encrypts username and password and creates a sha1 hash with the pickled data. This pickled data is then stored in the cache with the hash as key. Another method receives the hash as a URL parameter and then fetches the

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread AJ
That seems right. Thanks for your suggestions, Shawn and Steven. On Thu, May 26, 2011 at 4:18 PM, Steven Robbins wrote: > I agree with Shawn. Any powerful text editor you use will take time to get > used to and customize for your purpose (in this case editing HTML and > handling of django templ

Re: Middleware response giving 302 instead of 404

2011-05-26 Thread bfrederi
Flatpages view: https://code.djangoproject.com/browser/django/tags/releases/1.3/django/contrib/flatpages/views.py#L20 -- 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 unsubsc

Re: Middleware response giving 302 instead of 404

2011-05-26 Thread bfrederi
I discovered it was because flatpages automatically adds an append slash, and the custom middleware I wrote has to come after the flatpages middleware. When append slash is added, the query is stripped from the url, but I needed the query to be retained. So example.com/thing.php?q=test would en

trouble serving static content within an included javascript libary

2011-05-26 Thread Danny Shevitz
Howdy, I'm pretty much a django newbie and can't figure out how to resolve the following issue. I am hosting a local copy of the OpenLayers javascript library and it's associated static content including .png's and .css's. On my file system, the structure is: mapping/static/openlayers.js mapping

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Steven Robbins
I agree with Shawn. Any powerful text editor you use will take time to get used to and customize for your purpose (in this case editing HTML and handling of django templates). Stick with one editor for a few weeks and decide what additional functionality you might need. Then do some searching based

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Shawn Milochik
On 05/26/2011 04:05 PM, AJ wrote: I'd like to know why people really like Vim if it is "a piece of shit" ? Just want to know because I try to learn it everytime and I hear great things about it. Ignore that comment. It's ignorant flame-bait. Don't drag that conversation on. Try anything

Re: Django Admin Works With One Project But Not Second

2011-05-26 Thread octopusgrabbus
Solved. This was due to a missing directory under django/templates. On May 26, 3:04 pm, octopusgrabbus wrote: > There is a lot of detail for this question, so I'll summarize. I have > two Django projects, each running on a different virtual site and > using a separate wsgi_handler. The first work

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread AJ
I'd like to know why people really like Vim if it is "a piece of shit" ? Just want to know because I try to learn it everytime and I hear great things about it. On Thu, May 26, 2011 at 6:57 AM, Boštjan Mejak wrote: > Vim is a piece of shit. > > -- > You received this message because you are su

Re: Caught RuntimeError while rendering: invalid label:

2011-05-26 Thread SkuFlow.com
no idea what's causing it... i'm trying to go to a product page in my satchmo website and i'm getting the error. I don't even know what invalid label means On Thu, May 26, 2011 at 3:54 PM, Malcolm Box wrote: > On 26 May 2011 20:50, Bobby Roberts wrote: > >> anyone have any idea what invali

Re: Caught RuntimeError while rendering: invalid label:

2011-05-26 Thread Malcolm Box
On 26 May 2011 20:50, Bobby Roberts wrote: > anyone have any idea what invalid label means? > > Where are you getting this error? What did you do to trigger it? If you can give us more information, it's more likely that someone will be able to help you. Malcolm -- You received this message be

Re: Caught RuntimeError while rendering: invalid label:

2011-05-26 Thread Bobby Roberts
anyone have any idea what invalid label means? On May 26, 12:24 pm, Bobby Roberts wrote: > i'm getting this error: > > Caught RuntimeError while rendering: invalid label:  "whatever" > > where whatever is the name of an app in INSTALLED_APPS.  what does > "invalid label" mean? -- You received t

I18n on, l10n off, but django still translating date field

2011-05-26 Thread Nick Serra
Hey everyone, thanks for looking. I am developing a site that has spanish translations. I18n is working properly, but when I switch to spanish, my form output that has dates is in spanish. This is a problem because I am sending out staff emails on some forms, which cannot have spanish in them. So I

How to remember that I dynamically added a form to the form wizard?

2011-05-26 Thread Stodge
Quick form wizard question. I create my wizard with one form. When that one is submitted, I add a second form to the form list. This second form/step is displayed. When I submit this one, the wizard suddenly thinks it only has one form, not two. I realise that when I create the form wizard in my vi

Django Admin Works With One Project But Not Second

2011-05-26 Thread octopusgrabbus
There is a lot of detail for this question, so I'll summarize. I have two Django projects, each running on a different virtual site and using a separate wsgi_handler. The first works fine, including logging in. The second one fails with TemplateDoesNotExist registration/ login.html, but I can reach

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread william ratcliff
Wing works well with django templates and at least in the paid version, you can debug them... On Thu, May 26, 2011 at 1:28 PM, Boštjan Mejak wrote: > What does the MTN stand for? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post t

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Boštjan Mejak
What does the MTN stand for? -- 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+unsubscr...@googlegroups.com. For more o

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread delegbede
Go with komodo edit. Sent from my BlackBerry wireless device from MTN -Original Message- From: Boštjan Mejak bostjan.me...@gmail.com Sender: django-users@googlegroups.com Date: Thu, 26 May 2011 12:57:17 To: Reply-To: django-users@googlegroups.com Subject: Re: Is there an HTML editor th

Re: Modifying existing site

2011-05-26 Thread Steven Robbins
Hi Sach, I'd start by doing the following: - Install django on your laptop/desktop for testing You'll need python installed and if the following command doesn't work follow the steps in this document https://www.djangoproject.com/download/ easy_install django - Spend an hour going through th

raw_id_fields and additional attributes

2011-05-26 Thread javatina
Please, need help: if I specify raw_id_fields like in raw_id_fields = ('resources',) in respective admin.py, how can I specify additional attributes of the related admin form? For example, how to change the label? Usually this can be done with something like this (I use below as just a generic ex

Middleware response giving 302 instead of 404

2011-05-26 Thread bfrederi
I wrote a middleware to redirect legacy urls when they 404. I noticed a problem with urls that have .extension in the path, such as: example.com/thing.php?q=test When I check the response.status_code in my middleware, it gives a 302 instead of a 404. But when I use django's resolve() on request.pat

Re: markup

2011-05-26 Thread Oscar Carballal
2011/5/26 Brett Parker : > On 26 May 08:27, Vladimir wrote: >> Is there a tool to transform MS WORD file into HTML ? I know there is >> markdown and textile, but I would prefer MS WORD. > > http://wvware.sourceforge.net/ > > -- > Brett Parker Also http://ginstrom.com/software/doc2html/ -- You re

Re: Not sending session cookies until login.

2011-05-26 Thread Daniel Roseman
On Thursday, May 26, 2011 4:47:10 PM UTC+1, Eric Hutchinson wrote: > > I'm sure by now everyone's seem the total freak out over the uk cookie > law. (http://blog.silktide.com/2011/05/cookie-law-makes-most-uk- > websites-illegal-what-you-need-to-know/

Caught RuntimeError while rendering: invalid label:

2011-05-26 Thread Bobby Roberts
i'm getting this error: Caught RuntimeError while rendering: invalid label: "whatever" where whatever is the name of an app in INSTALLED_APPS. what does "invalid label" mean? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Dynamic Forms

2011-05-26 Thread Afshin Moshrefi
The information is helpful as it is helping me understand some basics of Django. I am experienced in old web dev technologies but I am new to both Python and Django and I see the information on the articles and Internet targeted for experienced python / django developers. I have a stupid beginner

Re: Form validation

2011-05-26 Thread Daniel Roseman
On Thursday, May 26, 2011 4:50:17 PM UTC+1, Nikhil Somaru wrote: > > Apologies for the font. > > Would you guys mind elaborating how I would re-display the form, with the > validation errors? I am trying to follow the print version of the > Djangobook, and it's been brilliant up to this point. T

Re: markup

2011-05-26 Thread Brett Parker
On 26 May 08:27, Vladimir wrote: > Is there a tool to transform MS WORD file into HTML ? I know there is > markdown and textile, but I would prefer MS WORD. http://wvware.sourceforge.net/ -- Brett Parker -- You received this message because you are subscribed to the Google Groups "Django user

Re: markup

2011-05-26 Thread Maksymus007
yes,its called microsoft word:) it is possible to save file as html,but the quality and portability of this code is poor Pozdrawiam, Maksymilian Pawlak 26-05-2011 17:27 użytkownik "Vladimir" napisał: > Is there a tool to transform MS WORD file into HTML ? I know there is > markdown and textile, b

Re: Form validation

2011-05-26 Thread Nikhil Somaru
Apologies for the font. Would you guys mind elaborating how I would re-display the form, with the validation errors? I am trying to follow the print version of the Djangobook, and it's been brilliant up to this point. There's nothing mentioned in the template about errors. On Thu, May 26, 2011 at

Not sending session cookies until login.

2011-05-26 Thread Eric Hutchinson
I'm sure by now everyone's seem the total freak out over the uk cookie law. (http://blog.silktide.com/2011/05/cookie-law-makes-most-uk- websites-illegal-what-you-need-to-know/) Since django with the sessions middleware installed automatically sets a cookie, I believe this violates the law? Since I

ValueError raised when deleting inline objects

2011-05-26 Thread Renato Garcia Pedigoni
Hello I'm trying to delete inline objects within the admin interface (the delete checkboxes on change_form) but its raising "ValueError": 'ProductVariant' instance needs to have a primary key value before a many-to-many relationship can be used I'd like some help to solve this :) These objects

markup

2011-05-26 Thread Vladimir
Is there a tool to transform MS WORD file into HTML ? I know there is markdown and textile, but I would prefer MS WORD. Thank You -- 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.

200 OK message

2011-05-26 Thread Brendan Smith
hey all, I pushed some changes to my code last night and this morning upon trying to add an object (based on a model I added last night) this morning I am getting the following response: OK None of the range-specifier values in the Range request-header field overlap the current extent of the sel

Re: Admin broken with large data table

2011-05-26 Thread Malcolm Box
On Mar 29, 4:31 pm, Malcolm Box wrote: > On Mar 29, 2:48 pm, Jacob Kaplan-Moss wrote: > > > On Tue, Mar 29, 2011 at 5:56 AM, Malcolm Box wrote: > > > On one of my models, the admin choice_list page is taking minutes to > > > load, which makes it somewhat broken. > > > > The table has about 2M ro

Re: Annotate with a filtered Count

2011-05-26 Thread Casey Greene
It looks like other people who encounter this end up going with extra, so I think that's the path that I'll take too: http://www.djangofoo.com/182/filter-annotate-count Casey On 05/25/2011 08:34 PM, Sean McArthur wrote: I would be very interested to know if there is a way to do this using Dja

Modifying existing site

2011-05-26 Thread Sach
Hello, I am completely new to this Django world. I haven't tried it ever before. Now the problem is as below; One of my clients was hosting his site somewhere else that I don't know and they built the site using Django. The host company doesn't allow to make any changes on their server, instead

Re: Is a model method the answer?

2011-05-26 Thread piker
Sorted it out, for anyone else who is wondering.. This works: class A(models.Model): ... def save(self, *args, **kwargs): super(A, self).save(*args, **kwargs) self.b.all().update(bool_field=True) #note self.b.all() Thanks again Roald for pointing me in the right direction.C

Re: Userprofile, signal and admin inline edit.

2011-05-26 Thread Malcolm Box
On 26 May 2011 10:23, Jani Tiainen wrote: > If I extend auth.User with custom profile and add automatic profile > creation signal it works as expected. > > But if I try to add admin inline editor for profile when saving I get > exception about integration violation. > > It happens because admin t

Re: django database

2011-05-26 Thread Jonas Geiregat
> do i have to install mysql to create a database in my website? As mentioned before you can use sqlite but consider the disadvantages: * Speed (sqlite for me ,even when developing a serious application, is a no go) When deleting large rows sqlite is remarkably slower then mysql. * I've seen s

Re: Trouble with "event_set" syntax

2011-05-26 Thread Daniel Roseman
Almost - the `get_latest_by` attribute goes in the inner Meta class. class Event(models.Model): ... class Meta: get_latest_by = 'date' Also note you have to quote the name of the field. -- DR. On 25 May 2011 16:41, Gchorn wrote: > Thank you Daniel! This is rea

Re: where is 'request' as in from x import y

2011-05-26 Thread Daniel Roseman
On Thursday, May 26, 2011 12:52:28 PM UTC+1, MikeKJ wrote: > > > Is this really only available to a view? All I want is to know is the auth > user id currently logged in so I can save it into another model, has to be > in the model so it is part of the admin save method You can't access something

Re: where is 'request' as in from x import y

2011-05-26 Thread MikeKJ
Is this really only available to a view? All I want is to know is the auth user id currently logged in so I can save it into another model, has to be in the model so it is part of the admin save method MikeKJ wrote: > > I need to get the auth user id in a save method on a model so > > from dja

Re: Form validation

2011-05-26 Thread Daniel Roseman
On Thursday, May 26, 2011 11:18:39 AM UTC+1, Nikhil Somaru wrote: > > Hi all, > > I am testing the form validation. When I try and submit an empty form, I > get: > > ValueError at /contact/ > > The view djangobook.contact.views.contact didn't return an HttpResponse > object. > > > # -

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Boštjan Mejak
> > Sent from my BlackBerry wireless device from MTN MTN? -- 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+unsubscr..

Django Model custom save

2011-05-26 Thread Юлиян Попов
I have a model and a form which is used to insert new rows in database. For every inserted (or edited) row I need to make a database lock and check if edited row have a conflict with rows that are already in the database. Where is the right place for this checks? In form validation? In a view

Re: Form validation

2011-05-26 Thread Lucian Nicolescu
>From what I see and if the you pasted correct indentations I think the "render_to_response" instruction should be outside the "else" statement (in the view code). Lucian On Thu, May 26, 2011 at 1:18 PM, Nikhil Somaru wrote: > Hi all, > > I am testing the form validation. When I try and submit a

Re: where is 'request' as in from x import y

2011-05-26 Thread Calvin Spealman
The request object is passed to the views in your views.py you have mapped to in your urls.py Do you understand the layout of a basic django project? A python module is not executed to handle a request, but is imported at the startup of the process and your view functions are called depending on t

where is 'request' as in from x import y

2011-05-26 Thread MikeKJ
I need to get the auth user id in a save method on a model so from django.contrib.auth.models import User user_id = request.user.id the error comes back as name 'request' is not defined Cheers -- View this message in context: http://old.nabble.com/where-is-%27request%27-as-in-from-x-import

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread delegbede
I'd go with Komodo edit. Sent from my BlackBerry wireless device from MTN -Original Message- From: AJ Sender: django-users@googlegroups.com Date: Wed, 25 May 2011 23:32:41 To: Reply-To: django-users@googlegroups.com Subject: Re: Is there an HTML editor that's Django-aware Thanks a lot

Re: django database

2011-05-26 Thread Kenneth Gonsalves
On Thu, 2011-05-26 at 09:23 +, delegb...@dudupay.com wrote: > Sqlite is not advisable when doing serious deployment. > Just a thought. he said 'my website' which implies a small home-page thingie -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ --

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Boštjan Mejak
Vim is a piece of shit. -- 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+unsubscr...@googlegroups.com. For more option

Re: nested template tags

2011-05-26 Thread Andreas Rammhold
Heya, I'm not 100% sure if this solves the problem for you (or if it's even intended to do what you want) but: {% with old_i=i %} {{ i }} {% endwith %} Haven't tried that yet but could be worth a shot. https://docs.djangoproject.com/en/1.3/ref/templates/builtins/#with On Thu, May 26, 2011

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Steven Robbins
AJ, I found these videos to be quite useful when I was learning to use vim. http://vimeo.com/user1690209/videos Steve On 26 May 2011 04:32, AJ wrote: > Thanks a lot Simon. This is probably OT: > > That was helpful but I thought I could dive in again with Vim and failed > (at least for now). >

Re: Is there an HTML editor that's Django-aware

2011-05-26 Thread Boštjan Mejak
Well, Komodo Edit does support Django syntax but it has some issues with Django template tags. Specifically, as I have tested anyway, the block tag is kind of a mistery to Komodo Edit, but that'll probably get fixed in the next version. So I strongly encourage you to use Komodo Edit. Other editors

Re: How to I create download link of some file using django

2011-05-26 Thread Boštjan Mejak
Fix some_file = open('bla/bla/bla/', "rw")tosome_file = open('bla/bla/bla/', "r") Fix that "rw" to just "r". You just want the user to read (a.k.a. get) the file, not have write access to it. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Slightly cryptic debug message

2011-05-26 Thread Xavier Ordoquy
> Well for example : > > """ > Exception Type: TemplateSyntaxError > Exception Value: > Caught NameError while rendering: global name 'approved' is not defined > > """ > > I don't understand if it is a NameError why should django say > TemplateSyntax error when exception value it s

Re: django database

2011-05-26 Thread Stuart MacKay
Bahare, MySQL is probably your best option for deployment (SQLite works really well for development). The tools are easy to use and it is more than capable for handling very large loads. For various technical reasons postgresql might be a better choice but you only need to consider this when

Re: How to I create download link of some file using django

2011-05-26 Thread Kann
Thanks Florian, but I am still confused about what's happening. Below is the concept of my codes and perhaps you can help: from django.core.files import File some_file = open('bla/bla/bla/', "rw") django_file = File(some_file) t = loader.get_gemplate('somewhere/temp.html') c = Context({'file':d

Re: Slightly cryptic debug message

2011-05-26 Thread Amit Sethi
Well for example : """ Exception Type: TemplateSyntaxError Exception Value: Caught NameError while rendering: global name 'approved' is not defined """ I don't understand if it is a NameError why should django say TemplateSyntax error when exception value it says it got caught a NameErro

Form validation

2011-05-26 Thread Nikhil Somaru
Hi all, I am testing the form validation. When I try and submit an empty form, I get: ValueError at /contact/ The view djangobook.contact.views.contact didn't return an HttpResponse object. # -- contact.views: ---#

Re: How to I create download link of some file using django

2011-05-26 Thread Florian Apolloner
Hi, file.url is what you are looking for (assuming MEDIA_URL is configured correctly) Cheers, Florian -- 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

Re: Slightly cryptic debug message

2011-05-26 Thread Xavier Ordoquy
Hi > Hi all , I have a question , On the the new versions of django (after > 1.2) a lot of syntax errors and other errors come as Templatesyntax > errors instead .. . Shouldn't django try to give more compatible debug > message. I haven't found much difference in the error messages. Could you be

Slightly cryptic debug message

2011-05-26 Thread Amit Sethi
Hi all , I have a question , On the the new versions of django (after 1.2) a lot of syntax errors and other errors come as Templatesyntax errors instead .. . Shouldn't django try to give more compatible debug message. -- A-M-I-T S|S -- You received this message because you are subscribed to the

Re: Is a model method the answer?

2011-05-26 Thread piker
Thanks Roald, By "b_set" do you mean that I have to create a queryset instance? If so, I should place it just above the function? On May 26, 7:21 pm, Roald wrote: > On May 26, 11:07 am, piker wrote: > > > I have a model class (A) that has a  M2M field with its relationship > > to another model (

Re: South migration for fixtures

2011-05-26 Thread Amit Sethi
And what process should be followed in production and for other collaborators. -- A-M-I-T S|S -- 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,

How to I create download link of some file using django

2011-05-26 Thread Kann
Dear all, I am new to django and still kinda confused about how to handle download link using django. What I did up to now was having a file handle and point that handle to django's File object. So, now I have django file object but I don't know how to incorporate that file object into my template

Re: nested template tags

2011-05-26 Thread bruno desthuilliers
On May 26, 9:08 am, ozgur yilmaz wrote: > Hi, > > I want to use an expression like this: > > {{ i }} > > The first {{ i }} is in another tag. The "{{ XXX }}" syntax is for variables, not tags (which are written "{% tagname ... %}". As a general rule: 1/ you cannot "nest" templatetags this way

Userprofile, signal and admin inline edit.

2011-05-26 Thread Jani Tiainen
If I extend auth.User with custom profile and add automatic profile creation signal it works as expected. But if I try to add admin inline editor for profile when saving I get exception about integration violation. It happens because admin tries to create second profile for user when saving. I

Re: django database

2011-05-26 Thread delegbede
Sqlite is not advisable when doing serious deployment. Just a thought. Cheers. Sent from my BlackBerry wireless device from MTN -Original Message- From: Kenneth Gonsalves Sender: django-users@googlegroups.com Date: Thu, 26 May 2011 10:47:02 To: Reply-To: django-users@googlegroups.com Su

Re: Is a model method the answer?

2011-05-26 Thread Roald
On May 26, 11:07 am, piker wrote: > I have a model class (A) that has a  M2M field with its relationship > to another model (B). When I save an instance of model class (A) I > want to automatically update a BooleanField in all the many, related > model(B) instances at the same time. Is the right w

Is a model method the answer?

2011-05-26 Thread piker
I have a model class (A) that has a M2M field with its relationship to another model (B). When I save an instance of model class (A) I want to automatically update a BooleanField in all the many, related model(B) instances at the same time. Is the right way to do this through a Model Method? If so

reverse works with runserver, but not with wsgi

2011-05-26 Thread Roald
Hi all, I have a (class based) view that redirects to reverse('ideal_in'). This works with runserver, but not with wsgi. Does anybody know why this might be? Most relevant lines of my urls.py: urlpatterns = patterns('', url(r'^payment/ideal/$', IdealView.as_view(), name='ideal_i

Re: nested template tags

2011-05-26 Thread ozgur yilmaz
TemplateSyntaxError at /the/url/ qstring_set requires 1 arguments, 0 provided 2011/5/26 Nikhil Somaru : > Could you detail the error raised when you visit the page? > > On Thu, May 26, 2011 at 12:38 PM, ozgur yilmaz wrote: >> >> Hi, >> >> I want to use an expression like this: >> >> {{ i }} >> >>

Re: nested template tags

2011-05-26 Thread Nikhil Somaru
Could you detail the error raised when you visit the page? On Thu, May 26, 2011 at 12:38 PM, ozgur yilmaz wrote: > Hi, > > I want to use an expression like this: > > {{ i }} > > The first {{ i }} is in another tag. is there any way to manage this > problem? > > Thanks, > > -- > You received this

nested template tags

2011-05-26 Thread ozgur yilmaz
Hi, I want to use an expression like this: {{ i }} The first {{ i }} is in another tag. is there any way to manage this problem? 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@google