Using property fields in Models:'_QuerySet' object has no attribute 'new_summary' error

2008-04-11 Thread ydjango
I defined two property fields in my model as below but TableName.objects.all() or filter() is not retrieving them. It is retrieving only the regular model fields. Any clues on what I am doing wrong? Ashish def _get_new_summary(self): "Returns the news summary."

Re: alternative to (r'^house/edit/(\d+)/$',ediHouse)?

2008-04-11 Thread ydjango
Thanks, I will use Slug, which will be unique and alphanumeric but will not be sequential. I agree best protection is proper authorization, and that I check on each page/request if the user is authorized to view this data or not. I just hate the idea of some user just incrementing ids in url

Re: ModelMultipleChoiceField updating HTML choices after 2nd reload

2008-04-11 Thread Rishabh Manocha
Justin, Thanks - that does exactly what I was looking for. Initially, I too had to refresh the page once before I saw a list of options, but using fields instead of base_fields fixed that. This may be a stupid question, but is there a recommended/established way of reading the django code. I am

Re: Images and Stylesheets

2008-04-11 Thread Doug Van Horn
Here's my rewording of your question: "How do I serve static content?" Websites need to serve up your HTML, CSS, JavaScript, and images. In Django, your views are serving up your HTML. What you need to do is serve up the rest of that stuff. The first way to serve static content, when you are

Re: alternative to (r'^house/edit/(\d+)/$',ediHouse)?

2008-04-11 Thread Ned Batchelder
Strictly speaking, exposing the primary key is not a security issue. Primary keys are not a secret, just an id. You need to secure your data based on authenticated credentials and some sort of authorization system that controls who can do what with each piece of data. Some people don't like

Re: Images and Stylesheets

2008-04-11 Thread Tim Chase
> I started learning Django at PyCon in Chicago and have worked > most of the way through the "Django Book" and Sams "Teach > Yourself Django", as well as "Head First HTML with CSS and > XHTML". It's been quite a lot for this old dog, but I'd like > to take a crack a writing my own web site

Re: alternative to (r'^house/edit/(\d+)/$',ediHouse)?

2008-04-11 Thread Doug Van Horn
FWIW, I don't see a security issue with exposing a surrogate primary key to the public... If you're hung up on the issue, though, take Tom's advice and use a slug for each house as an unique key. You might find the street address of a house to be a good slug candidate... On Apr 11, 6:28 pm,

Announcing the Django Dash!

2008-04-11 Thread Daniel Lindsley
We'd like to announce the first Django Dash (http://www.djangodash.com/) to the community. Django Dash is a web application building competition for Django developers. The gist is that you and (optionally) one other person can form a team and have 48 hours to crank out a full Django application.

Re: Images and Stylesheets

2008-04-11 Thread Justin Lilly
You're problems are one and the same. It seems you're runserver isn't configured to serve images. The bit of code you're looking for is: if settings.DEBUG: urlpatterns += patterns('', (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}), )

Images and Stylesheets

2008-04-11 Thread Greg Lindstrom
Hello Everyone- I started learning Django at PyCon in Chicago and have worked most of the way through the "Django Book" and Sams "Teach Yourself Django", as well as "Head First HTML with CSS and XHTML". It's been quite a lot for this old dog, but I'd like to take a crack a writing my own web

Re: alternative to (r'^house/edit/(\d+)/$',ediHouse)?

2008-04-11 Thread Tom Badran
Take a look at SlugField in the model documentation to do what you want. Tom On Sat, Apr 12, 2008 at 12:28 AM, ydjango <[EMAIL PROTECTED]> wrote: > > I am displaying a list of houses and on clicking on one of the houses > I want to show/edit details > > currently I am using constructing url as

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-11 Thread Rock
While I have used Django to emit csv files, I have also found that my users are quite happy at times with simply cutting and pasting data that I display in HTML tables via Django directly into their spreadsheats. You might want to see if this is an adequate option for some of your use cases. It

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-11 Thread Rock
I can't believe that no one has mentioned the xlrd package: http://scienceoss.com/read-excel-files-from-python/ http://pypi.python.org/pypi/xlrd/0.5.2 Then again I haven't used this one yet, much less tried to incorporate it with Django.

alternative to (r'^house/edit/(\d+)/$',ediHouse)?

2008-04-11 Thread ydjango
I am displaying a list of houses and on clicking on one of the houses I want to show/edit details currently I am using constructing url as /house/edit/123/ where 123 is house data base primary key for that house. Can exposing the primary key in url be any security issue?

Problems using feedparser and memcached in RSS model

2008-04-11 Thread dpweb
I have a model to store information about an RSS feed, which has the method: def refresh(self): dict = feedparser.parse(self.feed_url) # Do some processing and a view: def refresh_rss(request, rss_id): rss_feed = RSSFeed.objects.get(pk=rss_id) rss_feed.refresh() #

Re: Django on plesk - Virtual Host

2008-04-11 Thread andy baxter
Tim wrote: > I've got a couple Django apps running on Plesk. It's not the greatest > but it works. > > First, after you set up your subdomain, you'll need to create the > file: > /var/www/vhosts/ domain.fr/subdomains/django/conf/vhost.conf > > Here's the contents of mine: > -- >

United Kingdom IP Addresses

2008-04-11 Thread International Alliance Privacy Services
Hi Guys, Just wanted to let all of you new forum users know that we have plenty of United Kingdom ip addresses still available for those of you that are abroad and want to watch the BBC, ITV, BBC Sport, BBC News, East Enders, Dr. Who, and all your other favorite British programs. But it doesn't

Re: Django on plesk - Virtual Host

2008-04-11 Thread Tim
I've got a couple Django apps running on Plesk. It's not the greatest but it works. First, after you set up your subdomain, you'll need to create the file: /var/www/vhosts/ domain.fr/subdomains/django/conf/vhost.conf Here's the contents of mine: -- DocumentRoot

Re: Allowing html tags for filter.

2008-04-11 Thread [EMAIL PROTECTED]
It sounds like you want to use an inclusion tag here: http://www.djangoproject.com/documentation/templates_python/#inclusion-tags. -- Rob Tirrell [EMAIL PROTECTED] On Apr 11, 2:23 pm, "Erik Vorhes" <[EMAIL PROTECTED]> wrote: > >  I have a custom filter that outputs some html code. The problem

Chicago Djangonauts list / meetings

2008-04-11 Thread Tom Tobin
I've started a Chicago Djangonauts list; apologies for the noise for the 99%+ of you not in the Chicago area. :-) http://groups.google.com/group/django-chicago I'll be starting discussion soon about when and where our first meeting should be (sometime in May); if we have enough interest, we'll

Re: unknown encoding: utf-8 error

2008-04-11 Thread Cephire
I hope this will be last one on this thread. Now I am able to compile without any error and create an exe file out of it. I have hooked this with cherrypy (as I dont know how to hook the development server). When I open the browser, I get the below error: Traceback (most recent call last):

Re: Catch-all route?

2008-04-11 Thread Brandon Taylor
Ah, the debug setting is why it wasn't redirecting! Thanks guys! Brandon On Apr 11, 1:35 pm, "Erik Vorhes" <[EMAIL PROTECTED]> wrote: > Check out the documentation on URL configuration, if you need > something more customized than the default 404.html template. (You > don't need to write a

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-11 Thread sserrano
Hi You can also try the pyXLWriter (is a port of the perl module) link: http://pyxlwriter.sourceforge.net/ Regards, Sebastian On Apr 10, 7:57 pm, Roboto <[EMAIL PROTECTED]> wrote: > lol I actually have a job that use my programming skills (lol lack > of), but when I view some of your code

Accessing data from previous steps in Form Wizard

2008-04-11 Thread leifbyron
Hi there, I am developing a form wizard comprised of about 20 forms. Some of those forms require access to the previous forms for validation. Is it possible to pass user-submitted data from previous forms to subsequent forms in a form wizard? Thanks, Leif

Re: tutorial question

2008-04-11 Thread Erik Vorhes
Using a database doesn't by default make your site searchable. It's a more efficient storage system (usually) than having a bunch of static files. SQLite is an easy way to develop, especially if you're running Python 2.5, but I usually move to a PostgreSQL backend for "production" sites, since

Django API interface adapter for Google App Engine

2008-04-11 Thread Siddhi
Hi, I'm working on an interface adapter for Google App Engine's datastore. I've just started out and have created a project for it here with some basic code - http://code.google.com/p/django-gae-helpers/ The intro page has an explanation of what I'm trying to do -

Re: Using form wizard to complete form over multiple sessions

2008-04-11 Thread leifbyron
It does. Thanks so much! I'll let you know how it goes. Leif On Apr 11, 5:08 am, "Honza Král" <[EMAIL PROTECTED]> wrote: > if you are using the wizard class, it doesn't remember the state > anywhere, so if you supply the correct POST data, you will get thrown > exactly to the point you wanted

Re: tutorial question

2008-04-11 Thread sebey
you make a good point i will say but I have a few reasons for this: 1.I try and keep things easy 2. I don't want them to be searchable(I know that sound odd but I my site is designed so that I do not have the need for search 3. I don't really want to add another thing to my "to learn list" as

Re: Catch-all route?

2008-04-11 Thread Erik Vorhes
Check out the documentation on URL configuration, if you need something more customized than the default 404.html template. (You don't need to write a special regex for 404 situations, but you could just use, as the *absolute last* pattern something like r'^.*$' (I think). For the most part,

Re: Catch-all route?

2008-04-11 Thread [EMAIL PROTECTED]
This is the default behavior. If no pattern matches the URL from the request, it will load and display "404.html". This is assuming that DEBUG=False. If debug is set to True, then you will get a helpful debug page. On Apr 11, 1:07 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hi Everyone, >

Re: Link that performs an action

2008-04-11 Thread Taylor
Thanks, I'll definitely check that out. The last time I did AJAX stuff was a couple of years ago when it was the hot spanking-new thing (even though it isn't new), so there weren't really any good libraries out yet. Thanks for pointing me to the serialization doc. My other thought is to create

Re: Allowing html tags for filter.

2008-04-11 Thread Erik Vorhes
> I have a custom filter that outputs some html code. The problem is > that it converts all "greater than" and "less than" symbols to > appropriate and symbols. How is it possible to say to > filter not to do this? You're running into the autoescape tag, which is on by default in

Re: Application Concepts

2008-04-11 Thread Erik Vorhes
It doesn't necessarily hurt to have apps inside the project folder, but it does make it harder to extract and reuse them. If I remember correctly, you don't need much, aside from settings.py, urls.py, and __init__.py. On Fri, Apr 11, 2008 at 1:09 PM, andy baxter <[EMAIL PROTECTED]> wrote: > >

Re: Application Concepts

2008-04-11 Thread andy baxter
James Bennett wrote: > On Tue, Apr 8, 2008 at 1:38 AM, jurian <[EMAIL PROTECTED]> wrote: > >> Are django applications meant to be implemented in such a manner as to >> allow the entire application directory to be copied into another >> project and used without having to alter any of the

Re: Loading ChoiceField in forms

2008-04-11 Thread ydjango
There is really no need to pass anything to __init__ in form In view itself you can access the forms member/global variables. It is python, so not much is private. unlike java. (other way would be to create setter methods in form, if you are an OO purist) in the View itself, I added form =

Catch-all route?

2008-04-11 Thread Brandon Taylor
Hi Everyone, Is there a way to define a catch-all route to send people to a 404 page? Obviously I need to define a route that matches anything not previously defined, but am struggling with the RegEx to do so. Help appreciated! Brandon --~--~-~--~~~---~--~~ You

Re: Tricky newforms problem

2008-04-11 Thread Brian Morton
Thanks. This works perfectly. Is there a better way to implement what I am trying to do? Also, does anyone know how I can capture these elements again in the view when processing the form? Since there are an arbitrary number of fields for songs, I don't know how many I should be looking for

Re: Application Concepts

2008-04-11 Thread Juanjo Conti
jurian escribió: > Does anyone else think I should add a ticket request for this as a > future feature? I do. Juanjo -- mi blog: http://www.juanjoconti.com.ar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Allowing html tags for filter.

2008-04-11 Thread James Bennett
On Fri, Apr 11, 2008 at 11:35 AM, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote: > I have a custom filter that outputs some html code. The problem is > that it converts all "greater than" and "less than" symbols to > appropriate and symbols. How is it possible to say to > filter not to do

Re: Allowing html tags for filter.

2008-04-11 Thread Dmitriy Sodrianov
Sure, here it is. It's quite simple. @register.filter def show_actions(obj): ret = ''' execute edit''' % (obj.id, obj.id) return ret Kenneth Gonsalves: > On 11-Apr-08, at 10:05 PM, Dmitriy Sodrianov wrote: > > > I have a custom filter that outputs some html code. The problem is > >

Re: Allowing html tags for filter.

2008-04-11 Thread Kenneth Gonsalves
On 11-Apr-08, at 10:05 PM, Dmitriy Sodrianov wrote: > I have a custom filter that outputs some html code. The problem is > that it converts all "greater than" and "less than" symbols to > appropriate and symbols. How is it possible to say to > filter not to do this? unless we see the code

Re: how do I create a zebra table using a template?

2008-04-11 Thread Kenneth Gonsalves
On 11-Apr-08, at 9:42 PM, Jeff Gentry wrote: > On Fri, 11 Apr 2008, Kenneth Gonsalves wrote: >>> {% if forloop.counter % 2 %} >> divisibleby > > Actually, he should be using 'cycle' my reply was simply to let him know that there are such things as filters -- regards kg

Allowing html tags for filter.

2008-04-11 Thread Dmitriy Sodrianov
Hi to all! I have a custom filter that outputs some html code. The problem is that it converts all "greater than" and "less than" symbols to appropriate and symbols. How is it possible to say to filter not to do this? Thanks. --~--~-~--~~~---~--~~ You received

Re: how do I create a zebra table using a template?

2008-04-11 Thread Norman Harman
Kenneth Gonsalves wrote: > On 11-Apr-08, at 9:36 PM, Kenneth Gonsalves wrote: > > >> On 11-Apr-08, at 9:28 PM, Chas. Owens wrote: >> >> >>> {% if forloop.counter % 2 %} >>> >> divisibleby >> > > http://www.djangoproject.com/documentation/templates/#divisibleby > > Wouldn't

Music & Movie Download ipod psp

2008-04-11 Thread mattden blowton
Music & Movie Download ipod psp http://www.web4easy.com/music-movie-download.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: how do I create a zebra table using a template?

2008-04-11 Thread Chas. Owens
On Fri, Apr 11, 2008 at 12:13 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 11:10 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > > Alright, call me a moron, but this isn't working. What am I doing wrong? > > You got bad advice. You want to read the docs on the

Re: unknown encoding: utf-8 error

2008-04-11 Thread andy baxter
Cephire wrote: > Thanks Karen. It helped. But I got another error. > > AttributeError: 'module' object has no attribute 'admin'. Searching > through the net, I found that __init.py__ should be present in the > directory. It does have __init.py__. > > Should all directories (like media, templates)

Re: how do I create a zebra table using a template?

2008-04-11 Thread Jeff Gentry
On Fri, 11 Apr 2008, Kenneth Gonsalves wrote: > > {% if forloop.counter % 2 %} > divisibleby Actually, he should be using 'cycle' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: how do I create a zebra table using a template?

2008-04-11 Thread [EMAIL PROTECTED]
Chas, I think the forloop.counter starts at 1 and forloop.counter0 starts at 0. On Apr 11, 12:10 pm, "Chas. Owens" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 12:09 PM, Kenneth Gonsalves<[EMAIL PROTECTED]> wrote: > > snip> >> {% if forloop.counter % 2 %} > > > > divisibleby > > >

Re: how do I create a zebra table using a template?

2008-04-11 Thread James Bennett
On Fri, Apr 11, 2008 at 11:10 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > Alright, call me a moron, but this isn't working. What am I doing wrong? You got bad advice. You want to read the docs on the "cycle" tag, because this specific sort of thing is what it exists for. -- "Bureaucrat

Re: how do I create a zebra table using a template?

2008-04-11 Thread Chas. Owens
On Fri, Apr 11, 2008 at 12:10 PM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 12:09 PM, Kenneth Gonsalves > <[EMAIL PROTECTED]> wrote: > snip > > > >> {% if forloop.counter % 2 %} > > > > > > divisibleby > > > >

Re: how do I create a zebra table using a template?

2008-04-11 Thread Chas. Owens
On Fri, Apr 11, 2008 at 12:09 PM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: snip > >> {% if forloop.counter % 2 %} > > > > divisibleby > > http://www.djangoproject.com/documentation/templates/#divisibleby snip Alright, call me a moron, but this isn't working. What am I doing wrong? {%

How to add other class attributes to Admin's fields attribute?

2008-04-11 Thread [EMAIL PROTECTED]
I have a class attribute decorated with the Property decorator. But I can't add it to the fields attribute of the Admin class, because it's not a Django field. The reason we want to add it is that we would want it to appear in a certain order. How else can I do it? Thanks

Re: how do I create a zebra table using a template?

2008-04-11 Thread Kenneth Gonsalves
On 11-Apr-08, at 9:36 PM, Kenneth Gonsalves wrote: > On 11-Apr-08, at 9:28 PM, Chas. Owens wrote: > >> {% if forloop.counter % 2 %} > > divisibleby http://www.djangoproject.com/documentation/templates/#divisibleby -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/

Re: how do I create a zebra table using a template?

2008-04-11 Thread Kenneth Gonsalves
On 11-Apr-08, at 9:28 PM, Chas. Owens wrote: > {% if forloop.counter % 2 %} divisibleby -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

how do I create a zebra table using a template?

2008-04-11 Thread Chas. Owens
I am a new Python and Django user, but I have a good deal of experience in other languages. I am trying to create a zebra table (alternating colors for list items or table rows). The way I would normally go about this is {% for greeting in greetings %}

Re: unknown encoding: utf-8 error

2008-04-11 Thread Cephire
got it resolved by manually importing all __import__ statements. thanks guys, joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django.cgi on Linux Hosting

2008-04-11 Thread Karen Tracey
On Fri, Apr 11, 2008 at 9:28 AM, Aldo <[EMAIL PROTECTED]> wrote: > > Fair point. > > My problem is - Initially i created my index.html in the root(DOCUMENT > ROOT). > Now I have downloaded Django as described - put it in my root. > I have created my .htaccess files as > RewriteEngine on >

Django on plesk - Virtual Host

2008-04-11 Thread martyn
Hi, I'm just copying my django project on my Fedora-Plesk server and something is missing in my mind. All my projects are Virtual hosts. My main domain : domain.fr My django project : django.domain.fr And my medias : medias.domain.fr On plesk, you cannot write directly on the httpd.conf

Re: Is middleware appropriate for this?

2008-04-11 Thread Panos Laganakos
Thanks for the link Chris, but this is not what I'm trying to do. I'm not worried about the way the price look, but the price currency itself. Since the user is allowed to select that per session. If there's a way for a filter to access the session variables I would be OK, since instead of

FilePathField problem

2008-04-11 Thread Michael Ang
Hi, I found that FilePathField does not detect new files or deleted files on the destinate path. I have to restart Django for it to get the new files, anyone can help? Thanks. :]Michael << --~--~-~--~~~---~--~~ You received this message because you

Re: unknown encoding: utf-8 error

2008-04-11 Thread Cephire
Thanks Karen. It helped. But I got another error. AttributeError: 'module' object has no attribute 'admin'. Searching through the net, I found that __init.py__ should be present in the directory. It does have __init.py__. Should all directories (like media, templates) have __init.py__? As I

Re: Is middleware appropriate for this?

2008-04-11 Thread Chris Moffitt
Take a look at what we use in Satchmo. Maybe this will help - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/satchmo_currency.py -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Link that performs an action

2008-04-11 Thread Norman Harman
Taylor wrote: > Thanks for the replies, but I guess I didn't make myself clear > enough. Counter was just as an example, I don't want an actual page > counter. > > I guess part of my question is: Yes, I can use AJAX-y XMLHttpRequest > to send info to the server in the background, but has

Re: Django.cgi on Linux Hosting

2008-04-11 Thread Aldo
Fair point. My problem is - Initially i created my index.html in the root(DOCUMENT ROOT). Now I have downloaded Django as described - put it in my root. I have created my .htaccess files as RewriteEngine on RewriteRule ^cgi-bin/ - [L] RewriteRule ^media/ - [L] RewriteRule ^(.*)(/)$

Re: Is middleware appropriate for this?

2008-04-11 Thread Panos Laganakos
Dan, I don't think context_processors will do any good, since I'd have to load each product and its price on the context. imagine a model: Product(models.Model): price = models.FloatField(...) and a Currency(models.Model): code = models.CharField(maxlength=3) # USD, YEN, etc

Re: Overwriting RSS item links

2008-04-11 Thread Ian Lawrence
On Fri, Apr 11, 2008 at 7:40 AM, Ian Lawrence <[EMAIL PROTECTED]> wrote: > Hi > > > Is there any way I can change this behaviour as I need to overwrite the URL > > completely to something like > you could do something like in settings.py: > ROOT_URL = whogotmassive.com > > and in your

Re: Django.cgi on Linux Hosting

2008-04-11 Thread Karen Tracey
On Fri, Apr 11, 2008 at 6:48 AM, Aldo <[EMAIL PROTECTED]> wrote: > > Hi folks I have a linux hosting account with digiweb. I want to run my > django app on it - but am running into problems. > > > http://care.register365.com/index.php?_m=knowledgebase&_a=viewarticle=110=0,21 > >

Re: Using form wizard to complete form over multiple sessions

2008-04-11 Thread Honza Král
if you are using the wizard class, it doesn't remember the state anywhere, so if you supply the correct POST data, you will get thrown exactly to the point you wanted to be. The only thing you have to do is save the form data somewhere (perhaps just pickle the POST in a database), retrieve them

Re: unknown encoding: utf-8 error

2008-04-11 Thread Karen Tracey
On Fri, Apr 11, 2008 at 4:54 AM, Cephire <[EMAIL PROTECTED]> wrote: > > Hello all: > I have the below in models.py > > class solForm(ModelForm): >""" > >""" >body = forms.CharField(max_length=150, > widget=forms.Textarea(attrs={'rows':2, 'cols': 40}),label= u'Your > Sol:')

Re: Is middleware appropriate for this?

2008-04-11 Thread Dan Ellis
On Apr 11, 11:37 am, Panos Laganakos <[EMAIL PROTECTED]> wrote: > I'm wondering if working on a > middleware, `process_view` or something would be the right place to > make the conversion. Not a middleware, but a context processor.

Re: Overwriting RSS item links

2008-04-11 Thread Ian Lawrence
Hi > Is there any way I can change this behaviour as I need to overwrite the URL > completely to something like you could do something like in settings.py: ROOT_URL = whogotmassive.com and in your feed.py: link = "%s/balls" % settings.ROOT_URL the challenging thing for me now is trying to use

Django.cgi on Linux Hosting

2008-04-11 Thread Aldo
Hi folks I have a linux hosting account with digiweb. I want to run my django app on it - but am running into problems. http://care.register365.com/index.php?_m=knowledgebase&_a=viewarticle=110=0,21 http://seamusc.com/blog/2007/jun/11/how-get-django-working-digiwebie-using-djangocgi/ I am

Re: tutorial question

2008-04-11 Thread James Bennett
On Fri, Apr 11, 2008 at 5:20 AM, sebey <[EMAIL PROTECTED]> wrote: > i am on a mac and I am running a podcasting network so I will proabley > be storing all my files in XML/RSS I think you're suffering from very severe conceptual confusion. Take a podcast and think about it logically: Each

Is middleware appropriate for this?

2008-04-11 Thread Panos Laganakos
I've written a currency filter that takes the 3 letter code of a currency and gives you the price. {{ product.price|currency:"EUR" }} There's a context variable called CURRENCY which specifies the current session's currency. I'm not able to pass that variable in the filter itself instead of a

Re: tutorial question

2008-04-11 Thread sebey
i am on a mac and I am running a podcasting network so I will proabley be storing all my files in XML/RSS On Apr 11, 11:11 am, Brett Parker <[EMAIL PROTECTED]> wrote: > On 11 Apr 01:35, sebey wrote: > > > > > I see that in page 1 of the django tutorial in the django docs it sets > > you up with

Troubles with JavaScript localization

2008-04-11 Thread Peter Melvyn
Hi all, perhaps I've missed something important in my very-beginning with Django, because I encouter a problems with JavaScript localization. 1. I serve .js as a static files directly by Apache, so they reside on MEDIA_ROOT out of project/apps folder tree -> I cannot build message

Re: tutorial question

2008-04-11 Thread Brett Parker
On 11 Apr 01:35, sebey wrote: > > I see that in page 1 of the django tutorial in the django docs it sets > you up with a database > > can you skip this or is the a very easy way to get a database setup > and then uninstaill or is the another tutorial that you can learn > without a database

Re: Tricky newforms problem

2008-04-11 Thread Phil Davis
On 11/04/2008, Brian Morton <[EMAIL PROTECTED]> wrote: [...] > The problem occurs in the template. I am trying to differentiate > these fields from the other normal fields on the form for presentation > purposes. I have tried assigning a custom property to each of the > dynamic fields. > >

Re: middleware that works with Ajax

2008-04-11 Thread Chris Hoeppner
Russ for president! This is actually one of the big reasons to prefer django over and above so many other frameworks. Take rails for example. You *can* use whatever js stuff you fancy, but if you don't use *their* stuff, you're giving up on much of what the framework offers. ~ Chris El jue,

Re: app engine db backend project

2008-04-11 Thread Chris Hoeppner
I've been looking into this too last night. Though I never before looked into a backend and I'm not on qsrf branch, after looking into the trunk's backends, I can tell that they're a tad over my head. It's a shame that this is not documented (though I'm not whining at the devs for not writing

Re: [OT] Django based full fledged forum app

2008-04-11 Thread Jonathan Buchanan
On Thu, Apr 10, 2008 at 6:12 PM, myst3rious <[EMAIL PROTECTED]> wrote: > > Hi, > I am working on a Django project for Intranet. and I took a lots time > in developing apps, just opposite to the Django philosophy of quick > but clean development. That is completely my fault, and overtime in >

unknown encoding: utf-8 error

2008-04-11 Thread Cephire
Hello all: I have the below in models.py class solForm(ModelForm): """ """ body = forms.CharField(max_length=150, widget=forms.Textarea(attrs={'rows':2, 'cols': 40}),label= u'Your Sol:') author = forms.CharField(widget=forms.HiddenInput) date =

tutorial question

2008-04-11 Thread sebey
I see that in page 1 of the django tutorial in the django docs it sets you up with a database can you skip this or is the a very easy way to get a database setup and then uninstaill or is the another tutorial that you can learn without a database needed?

Re: Tree from the model.

2008-04-11 Thread shabda
Though I do not always use a reusable app, even if it exists, (leaky abstractions[1]), django-mptt is awesome. It does what it claims to do, and stays out of the way. Very recommended if you need to model hierarchical data. On Apr 11, 11:43 am, "James Bennett" <[EMAIL PROTECTED]> wrote: >

Re: [OT] Django based full fledged forum app

2008-04-11 Thread eXt
Have you seen: http://sct.sphene.net/wiki/show/Start/ (see 'Forum' link for a working forum). myst3rious napisał(a): > Hi, > I am working on a Django project for Intranet. and I took a lots time > in developing apps, just opposite to the Django philosophy of quick > but clean development. That

Re: Annoying little bug that just won't stop -- new forms admin

2008-04-11 Thread Dan
I Just had a problem with this and it came down to the PIL component on my server not having jpeg support, maybe try installing libjpeg and rebuilding and installing PIL. On Feb 15, 6:59 am, Michael Newman <[EMAIL PROTECTED]> wrote: > As I continue to test this, it appears that

Overwriting RSS item links

2008-04-11 Thread Matt Davies
Hello everyone I have a need to overwrite the item_link of my rss items in my feed. I'm using the item_link method described here. http://www.djangoproject.com/documentation/syndication_feeds/ If I use this code def item_link(self, obj): return 'balls' and my site url in djangoadmin

Re: Tree from the model.

2008-04-11 Thread James Bennett
2008/4/11 Dmitriy Sodrianov <[EMAIL PROTECTED]>: > Is it possible to use only Django's built-in functions? Yes, but you will end up essentially re-implementing all the code in the application Alex suggested. When an application exists that helps you to do what you want, it's quite silly to go

Re: Tree from the model.

2008-04-11 Thread Dmitriy Sodrianov
Is it possible to use only Django's built-in functions? On 11 апр, 04:21, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Try to use this very good applicationhttp://code.google.com/p/django-mptt/. > > On Apr 10, 11:15 pm, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote: > > > Hi to all. > > > I have a