Javascript and same origin policy

2008-11-17 Thread Matic Žgur
javascript statement but it somehow doesn't work for me. Did anyone have similar problems or has any idea how to solve it? Thanks, Matic Žgur [1] https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript --~--~-~--~~~---~--~~ You received this message becaus

Caching and comments

2008-10-16 Thread Matic Žgur
page cached, now I only cache post so the whole page has to render again. Is it true? What is the best way to not cache comments? Thanks, Matic Žgur --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Question about a custom inclusion tag

2008-07-15 Thread Matic Žgur
Hi, is there a way to pass an argument from urls.py to inclusion tag? For example, if I have a custom inclusion tag that prints some links to some pages and I don't want it to print the link to the page I'm currently visiting, how would I do it? Let's say that I'm visiting a page /posts/2008.

Re: Markup languages vs HTML

2008-07-10 Thread Matic Žgur
desthuilliers <[EMAIL PROTECTED]> wrote: > > > > On 8 juil, 18:02, "Matic Žgur" <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm working on some project, a part of which is a small blog app. All >> the blog posts are saved as HTML (using TinyM

Markup languages vs HTML

2008-07-08 Thread Matic Žgur
, that I feel a bit uncomfortable saving html to the database - it just doesn't seem right to me. So, what is your opinion on this matter? Thanks, Matic Žgur --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Problems with generic view

2008-06-10 Thread Matic Žgur
Ok, I solved it. Wrong TIME_ZONE in settings.py. :) On Tue, Jun 10, 2008 at 12:27 PM, Matic Žgur <[EMAIL PROTECTED]> wrote: > Hi, > > I have some problems with the date based generic view. I'll just paste > the code bellow: > > views.py > > def post_de

Problems with generic view

2008-06-10 Thread Matic Žgur
]+)/$', 'post_detail'), ) I can't find any error above, but when I try to access http://localhost:8000/blog/2008/06/10/first-post 404 page is returned with the following error: No found for Does anyone know what could be the problem? Thanks, Matic Žgur

Re: Django and Linux distros

2008-05-16 Thread Matic Žgur
I'm using Ubuntu, vim, sqlite3, svn and Django development server. Matic Žgur On Fri, May 16, 2008 at 2:59 PM, Almir Karic <[EMAIL PROTECTED]> wrote: > > On Fri, May 16, 2008 at 12:24 PM, JonSidnell <[EMAIL PROTECTED]> wrote: >> What works for you? > > deb

Re: Should I set up Django locally or on a web server?

2008-05-02 Thread Matic Žgur
I use Sqlite3 for development because it already comes installed with Ubuntu. I used to use Apache and MySQL, but it didn't make much sense using that since Django development server and Sqlite3 handle serving quite well and are quite lightweight. To start using Sqlite you just have to create a

Re: Truncated incorrect DOUBLE value

2008-01-24 Thread Matic Žgur
= mark_safe(entry.entry) return render_to_response('todo.html', {'entries': entries}) If anyone knows a better way, please let me know. I'm quite new in Django and I could use a good piece of advice. Thanks, Matic On Jan 24, 2008 11:30 PM, Matic Žgur <[EMAIL PROTECTED]> wrote: > Hmm, it's

Re: Truncated incorrect DOUBLE value

2008-01-24 Thread Matic Žgur
24, 2008 11:21 PM, Matic Žgur <[EMAIL PROTECTED]> wrote: > I solved this. I was passing a string instead of number (id of the > user in user table) to submitted_to. Does anyone know if there is a > better way of doing this, like passing a username to the foreignfield? >

Re: Truncated incorrect DOUBLE value

2008-01-24 Thread Matic Žgur
I solved this. I was passing a string instead of number (id of the user in user table) to submitted_to. Does anyone know if there is a better way of doing this, like passing a username to the foreignfield? Thanks, Matic On Jan 24, 2008 11:03 PM, Matic Žgur <[EMAIL PROTECTED]> wrote: &

Truncated incorrect DOUBLE value

2008-01-24 Thread Matic Žgur
Hello everybody, I'm getting an error trying to get a QuerySet object. I've just started to work on a small ToDo list but I can't move on since I keep on getting "Truncated incorrect DOUBLE value: 'matic'" error. My model for the entry looks like this: class Entry(models.Model):

Re: Question about views.py

2008-01-10 Thread Matic Žgur
comprehensions (I guess I still have some habits from PHP). Cheers, Matic Žgur On Jan 10, 2008 6:04 PM, David Grant <[EMAIL PROTECTED]> wrote: > I think you should be able to access the query sets directly in your > template. Not sure why that didn't work for you. > > Here th

Question about views.py

2008-01-10 Thread Matic Žgur
ome examples, but it's hard to find apps that don't use generic views (at least I didn't find them), so I decided to ask here. Thanks Matic Žgur --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g