Using localhost in MEDIA_URL causing very slow django

2010-08-16 Thread Martin Lundberg
Hi, I started having a problem on my website when working on it locally using the runserver dev server. If I started the server I could visit a page once (and it loaded quickly) but if I reloaded the page it could take like 10 minutes for it to load. The code didn't even reach the view. I tracked

Re: ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-25 Thread Martin Lundberg
the change to django-taggit does not seem to be picked up by South. not I've got tags = TaggableManager(), instead of the tagging TagField but when I run a schemamigration check it finds nothing. -Martin On 25 Juli, 11:53, Martin Lundberg <martin.lundb...@gmail.com> wrote: > No one who k

Re: ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-25 Thread Martin Lundberg
No one who knows what could be causing it not to find the TagField field? Do I have to do something special for South to find it? I don't have any trouble with the field when it is used by django. Atleast not what I've noticed. On 23 Juli, 16:13, Martin Lundberg <martin.lundb...@gmail.com>

ValueError: Cannot import the required field 'tagging.fields.TagField'

2010-07-23 Thread Martin Lundberg
Hi, I'm having problems with running ./manage.py test. When it is running some South migrations I'm getting this error: ValueError: Cannot import the required field 'tagging.fields.TagField'. I don't know how to fix it. -Martin -- You received this message because you are subscribed to the

Re: django-admin tab completion not working

2010-05-01 Thread Martin Lundberg
I looked in the django_bash_completion script but didn't understand much. Anyone who has any idea of what could be wrong? Why DJANGO_AUTO_COMPLETE is not in the list of environment variables? -Martin On Fri, Apr 30, 2010 at 7:21 PM, Martin Lundberg <martin.lundb...@gmail.com>wrote: > I

Re: django-admin tab completion not working

2010-04-30 Thread Martin Lundberg
trunk/extras/django_bash_completion" if I run "printenv" DJANGO_AUTO_COMPLETE is not shown. -Martin On Fri, Apr 30, 2010 at 11:17 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Apr 30, 7:55 am, Martin Lundberg <martin.lundb...@gmail.com> wrote: > > Thanks, a

Re: django-admin tab completion not working

2010-04-30 Thread Martin Lundberg
egards, > Xavier. > > Le 29 avr. 2010 à 19:41, Martin Lundberg a écrit : > > Anyone on OSX who has had this same problem? I'm going crazy here. Would > really want it to work since it would make it much easier to use > django-admin. > > On Thu, Apr 29, 2010 at 12:01 AM,

Re: django-admin tab completion not working

2010-04-29 Thread Martin Lundberg
Anyone on OSX who has had this same problem? I'm going crazy here. Would really want it to work since it would make it much easier to use django-admin. On Thu, Apr 29, 2010 at 12:01 AM, Martin Lundberg <martin.lundb...@gmail.com > wrote: > Hello, > > I've source the django_bash_co

django-admin tab completion not working

2010-04-28 Thread Martin Lundberg
Hello, I've source the django_bash_completion script but when I try to use it by hitting TAB I get this: $ django-admin.py heType 'django-admin.py help' for usage. I hit tab after 'he' but it is not working and I get the above message instead. Any idea what I'm doing wrong? Thanks, -Martin

Re: Authentication backend for Facebook problems

2010-04-27 Thread Martin Lundberg
That will improve the situation a lot, thanks! It doesn't change the fact that it would feel more correct to have it in an authentication backend :) On Mon, Apr 26, 2010 at 5:40 PM, Joe <joesacco...@gmail.com> wrote: > > On Apr 26, 5:42 am, Martin Lundberg <martin.lundb...@g

Authentication backend for Facebook problems

2010-04-26 Thread Martin Lundberg
Hello, I wanted to create an authentication backend for Facebook using their new Graph API. I however found out (after talking to some people on #django IRC) that I could not access the cookies in a authentication backend. Now I can't create it since it works by checking if some cookies are

Test is context variable is set

2010-04-09 Thread Martin Lundberg
! -Martin Lundberg -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For mo

Re: TemplateSyntaxError in the admin pages

2010-04-06 Thread Martin Lundberg
Ah, great! Do you know the ticket or changeset for it? Curious to peek and learn a little :) On Mon, Apr 5, 2010 at 2:23 PM, Karen Tracey wrote: > 2010/4/5 Tomasz Zieliński > >> that 'raise wrapped' line is placed in catch-all handler,

Re: TemplateSyntaxError in the admin pages

2010-04-05 Thread Martin Lundberg
Thanks Thomasz! You were correct. It was my __unicode__ function in my model which did something wrong. 2010/4/5 Tomasz Zieliński <tomasz.zielin...@pyconsultant.eu> > > > On 5 Kwi, 10:25, Martin Lundberg <martin.lundb...@gmail.com> wrote: > > > File "/

TemplateSyntaxError in the admin pages

2010-04-05 Thread Martin Lundberg
Hi, I've never gotten any errors when using the admin pages untill today. I am using Django 1.1. Not sure what information you guys need but here is the error: Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/timetrack/work/ Django Version: 1.1.1 Python Version: 2.6.4

Re: Cannot assign None, does not allow null values

2009-11-28 Thread Martin Lundberg
Is it not that you forget to give the published property a value? On Sat, Nov 28, 2009 at 9:07 AM, onoxo wrote: > Hi! > > when i go to create Actual class. i get this error: > Cannot assign None: "Actual.published" does not allow null values. > > and it makes this error

Re: Django website stats

2009-11-19 Thread Martin Lundberg
I am very new to Django but can't this be handled by middleware instead? It should have access to user and page data should it not? -Martin On Thursday, November 19, 2009, Fabio Natali wrote: > Hi there! > > I have a Django based website with a few dozen users. Only

Generic view year var showing future dates

2009-11-15 Thread Martin Lundberg
Hello, Should the years variable contain dates for years in the future (if I've got posts in the future) if I have NOT set allow_future to True? Right now it is being displayed and the link which I create using / {{d.year}}/ links to a page giving 404 error. -Martin -- You received this

Re: Ordering a query by comments connected to model

2009-05-18 Thread Martin Lundberg
Thanks Andy for the help and Alex for clarifying. I'll do as Andy said and denormalize the data and add a comments counter field to the entry model. (Deconfuse: I changed my display name from Marlun to my whole name after creating this thread.) -Martin On May 16, 3:58 pm, Alex Gaynor

Re: Grouping a list of entries by month name

2009-02-20 Thread Martin Lundberg
In my case I wanted to get something like this: January 2008 Post name Post name December 2007 Post name Post name I can't figure out how to do it the way your are saying. I thought about doing: {% for entry in monts %} {% ifchanged %}{{ entry.pub_date|date:"F Y"

Putting tests in a tests folder

2008-12-19 Thread Martin Lundberg
Hello everyone! What do I need to do to be able to put my tests in a folder (called "tests") inside my application folders and make django run them? I want something like: /project/app1/tests/module_tests.py /project/app1/tests/module2_tests.py /project/app2/tests/module_tests.py