Re: Easy way to create pretty pages with nav?

2009-04-11 Thread Konrad Martin
Hi I think a 'problem' of Django is that it is produced by programmers and doesn`t mention that programming is the minor important part of a successfull site. Far more important is content and the visual way content is presented in a brain catching way to the customer. Both isn`t comprised in

For loop over integers rather than list within Django template

2009-04-17 Thread Martin Brochhaus
django template" in the future :) If there is a more elegant way to solve this, just tell me. I'm always eager to learn more! Best regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

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: access to id of current user on admin

2009-05-18 Thread Martin Ostrovsky
Hi, You can define a custom save_models method in the ModelAdmin class you're associating with your Post class (i.e. in your admin.py file for the app in which Post resides). You can then access the user from the request (request.user). More info available at: http://docs.djangoproject.com/en/d

database backends timing out

2009-06-13 Thread James Martin
I'm having an interesting problem. After inserting a bunch of records into my database ( about 400,000), it the database starts refusing connections. Even after restarting the database daemon, I can not query the database (django lets me query, but returns nothing in the querysets). The only me

django and xml databases

2009-11-11 Thread Martin Mueller
I'm interested in projects that have used Django with an xml database such as eXist or Berkeley. I'm aware of one project along those lines but would like to find out about others. It is easy to imagine projects that combine data some of which are more easily stored in XML and some in SQL. If the

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

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 logged > us

Re: Count by date

2009-11-23 Thread Martin Ostrovsky
You can limit your search by year, month or day. See http://docs.djangoproject.com/en/dev/ref/models/querysets/#year On Nov 20, 1:59 pm, Simon wrote: > Hi all, > > I am sure this must be a real noob question as it's so easy to do in > SQL. > I am trying to replicate something like the following

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 with each class that has

Authentication backend for Facebook problems

2010-04-26 Thread Martin Lundberg
ation backends works sounds like the perfect fit. Regards, -Martin -- 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

Re: Authentication backend for Facebook problems

2010-04-26 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 wrote: > > On Apr 26, 5:42 am, Martin Lundberg wrote: > > I was told to create a middlewar

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

Django Admin limits

2010-04-29 Thread Martin Tiršel
or your answers, Martin -- 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 more opt

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 wrote: > Hello, > > I've source the django_bash_completion script but w

Re: django-admin tab completion not working

2010-04-29 Thread Martin Lundberg
Thanks, at least I know that it should work. Could it be that I don't have bash-completion installed on osx? I've tried to install it with brew and it seemed to work but I'm not sure if it is in fact installed and working and I'm not sure how to test if it is. -Martin On Fr

Re: django-admin tab completion not working

2010-04-30 Thread Martin Lundberg
". ~/Sources/django-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 wrote: > On Apr 30, 7:55 am, Martin Lundberg wrote: > > Thanks, at least I know that it should wor

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 wrote: > I'm taking a look i

Insert model data into every page (base.html)

2010-05-05 Thread Martin Tiršel
neric.list_detail.object_list', currency_by_date.update({"template_name": "profil_spolocnosti.html"})), ... If I have to use custom views what is the best way to include above queryset result into templates without repeating it over every view? Thank you for yo

Using array of URLs for MEDIA_URL

2010-06-07 Thread Martin Siniawski
x27;static2.site.com', 'static3.site.com' ] I've been searching through the group, documentation and online but couldn't find anything that addressed the subject. Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Using array of URLs for MEDIA_URL

2010-06-08 Thread Martin Siniawski
r the answer, Martin On Jun 7, 10:46 am, Steven L Smith wrote: > Hi Martin- > > I don't know what the "official" answer would be, but you could write your own > context processor that had something like: > > from random import choice > MEDIA_URLS =  's

Django mashup contest

2010-06-10 Thread Martin Ostrovsky
Hi, (Apologies in advance for the spam) Our company, repustate.com, just launched our new natural language processing API. It's totally open & free and is powered by Django. To kick off our launch, we're having a contest to see who can create the best mashup using our API and any others on the we

Re: Using array of URLs for MEDIA_URL

2010-06-11 Thread Martin Siniawski
s. I'll post a solution that I coded on my own, though I haven't yet benchmarked it. Best, Martin On Jun 8, 11:01 am, Steven L Smith wrote: > Looks like my email client screwed up the indentation I've added some > indents... > > random_media.py > --

Re: Using array of URLs for MEDIA_URL

2010-06-11 Thread Martin Siniawski
__unicode__(self): self.current_url += 1 self.current_url %= len(self.media_urls) return self.media_urls[self.current_url] def context_proc (req): return {'MEDIA_URL': RoundRobinMediaUrl()} On Jun 11, 3:09 pm, Martin Siniawski wrote: > Steven, > > T

Re: Using array of URLs for MEDIA_URL

2010-06-11 Thread Martin Siniawski
I posted? Best, Martin On Jun 8, 11:29 am, Alex Robbins wrote: > I haven't tested this, but it seems like you could do it one of two > ways: > > Define media root as a function in your settings.py. If you pass a > callable to the template, it will be called. > MEDIA_ROOTS = [

News on every page

2010-07-08 Thread Martin Tiršel
know how to use it for that thing. What should I do in a middleware to have e.g {{ news }} template variable containing last x news? Thanks for your advices, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Is Django right for what I am trying to do

2010-07-08 Thread Martin Tiršel
g or Photo gallery or whatever you want and ask for a help on specific problem you encounter during development, there are many good people who will help you. Regards, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: News on every page

2010-07-09 Thread Martin Tiršel
On Thu, 08 Jul 2010 18:07:58 +0200, Martin Tiršel wrote: Hello, I am programming a small CMS on Django, I have editable pages, now I want to add news. I have a website where I want to display these news on every page in right/left column. I have following questions: 1.) Where is the

Re: μ must be μ

2010-07-12 Thread Martin Melin
ail to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > Best regards Martin Melin -- You received this message be

Re: import model from other module

2010-07-18 Thread Martin Tiršel
ALLED_APPS ? Regards, Martin -- 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 more

prepopulated_fields - slug and underscores

2010-07-18 Thread Martin Tiršel
Hello, if I use prepopulated_fields = {"page_slug": ("page_title",)} all spaces are replaced with hyphens. If I would like to use underscores instead, is there a way how to change it? Thanks, Martin -- You received this message because you are subscribed to the G

How to get gallery thumbnails without multiple database queries

2010-07-18 Thread Martin Tiršel
bject (e.g. "gal"), can I access to Image through Gallery? Something like gal.Image[0] for first image in the gallery. Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Is Django right for what I am trying to do

2010-07-18 Thread Martin Tiršel
are right. Martin -- 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 more

Re: How to get gallery thumbnails without multiple database queries

2010-07-19 Thread Martin Tiršel
On Mon, 19 Jul 2010 00:50:04 +0200, Martin Tiršel wrote: Hello, I have: class Gallery(models.Model): ... class Image(models.Model): gallery = models.ForeignKey(Gallery) ... Now, on some page, I am listing all galleries and I want for every gallery first three

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

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 wrote: > Hi, &

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

2010-07-25 Thread Martin Lundberg
wever 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 wrote: > No one who knows what could be caus

Re: Getting old projects to run on 1.2 with Ubuntu

2010-07-25 Thread Martin Tiršel
out python path, eggs, *.pth files, you will need this knowledge to understand how this whole import machinery works, else it will be very confusing. Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: setting up datebase

2010-07-25 Thread Martin Tiršel
and) or manualy alter table with SQL commands. Martin -- 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

Overwriting a default form

2010-07-25 Thread Martin Tiršel
me some examples I can learn from? Or perhaps another approach to solve this problem. Thanks, Martin -- 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 unsubscrib

Help with localization

2010-07-25 Thread Martin Tiršel
locale directory to all possible places (minicms, minicms/plugins, userproject, ...) but everything is only in english :( Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Help with localization [SOLVED]

2010-07-26 Thread Martin Tiršel
On Mon, 26 Jul 2010 03:46:10 +0200, Lachlan Musicman wrote: On Mon, Jul 26, 2010 at 11:16, Martin Tiršel wrote: Gah, my eyes were closed. Have you also added the appropriate Middleware product? As you see here: http://docs.djangoproject.com/en/dev/topics/i18n/deployment/#topics-i18n

Re: 'python manage.py startproject survey' does not add 'survey' to INSTALLED _APPS.

2010-07-29 Thread Martin Melin
s the tutorial goes, adding your newly created app to INSTALLED_APPS is covered right here: http://docs.djangoproject.com/en/dev/intro/tutorial01/#activating-models Cheers, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Form label suffix

2010-07-31 Thread Martin Tiršel
endif %} {% endfor %} What I have to do to add the label suffix? Thanks, Martin -- 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 e

Re: Replace Admin Site Foreign Key Field/Dropdown with Textbox?

2010-08-08 Thread Martin Melin
dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields Cheers, Martin -- 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

ManyToManyField limiting choices

2010-08-09 Thread Martin Tiršel
m? Thanks, Martin -- 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 more optio

filtering related object in template

2010-08-09 Thread Martin Tiršel
, but is it possible in template too? Thanks, Martin -- 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-user

Using localhost in MEDIA_URL causing very slow django

2010-08-15 Thread Martin Lundberg
away. I'm curious to know if someone know why this was a problem?¨ -Martin -- 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

How to automatically insert user_id in admin

2010-08-17 Thread Martin Tiršel
if self.request: obj.user = self.request.user obj.save() class Meta: model = Task kwargs in __init__ is empty Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: How to automatically insert user_id in admin

2010-08-18 Thread Martin Tiršel
I will answer myself. The solution is ModelAdmin.save_model(...) method: class TaskAdmin(admin.ModelAdmin): exclude = ('user', ) def save_model(self, request, obj, form, change): obj.user = request.user obj.save() Martin On Wed, 18 Aug 2010 02:01:33 +02

appengine dynamic translation

2010-08-30 Thread Martin Kubát
hanks. Martin -- 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 more opti

Where and how should I write translations

2010-09-02 Thread Martin Tiršel
way, but I have my reasons why I am doing it so. Thanks, Martin -- 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

Re: Where and how should I write translations

2010-09-02 Thread Martin Tiršel
n the documentation: "(The caveat with using variables or computed values, as in the previous two examples, is that Django's translation-string-detecting utility, django-admin.py makemessages, won't be able to find these strings. More on makemessages later.)" But there is no &

Re: Where and how should I write translations

2010-09-04 Thread Martin Tiršel
don't know about? Thanks, Martin On Thu, 02 Sep 2010 17:03:01 +0200, Tom Evans wrote: On Thu, Sep 2, 2010 at 2:15 PM, Martin Tiršel wrote: I tried to create second .po file with manual translations, but had no luck either :( `compilemessages` creates the second .mo file, but doesn

Re: Where and how should I write translations [SOLVED]

2010-09-05 Thread Martin Tiršel
I solved it by creating a new python file with: # -*- coding: utf-8 -*- from django.utils.translation import ugettext as _ translation_strings = [ _(u'string'), _(u'another string'), ... ] So easy :) Martin On Thu, 02 Sep 2010 13:33:36 +0200, Martin Tirše

Re: Pylons vs. Django

2010-09-06 Thread Martin Chiteri
Hi, I understand that you can use whatever templating engine you so wish with django, so if you feel that Mako or Genshi is better for you, you can plug them into django and start using them. It might help to know that Guido Van Rossum actually prefers django templates :) Regards, Martin

Tabular output

2010-09-30 Thread Martin Tiršel
Hello, I have a list of images from database I need to print in a table and this seems to be more difficult as I expected. Is there an easy way how to print results into table? Number of collumns depends on a constant in settings. Thanks, Martin -- You received this message because you

Re: Tabular output

2010-09-30 Thread Martin Tiršel
Thanks, this looks better, but one more thing - If I have for example 3 columns and 13 images, I end with: what is not a correct table. I need to insert two more TDs or one with colspan. Is there a solution for this? Martin On Thu, 30 Sep 2010 14:31:48 +0200, Xavier Ordoquy wrote

Re: Tabular output

2010-09-30 Thread Martin Tiršel
Sorry, my bad, I thought that it has to be completed, so it is ok. Problem would be only if I wanted to make cell borderds, around the empty cells too. Thanks, Martin On Thu, 30 Sep 2010 14:53:11 +0200, Carlton Gibson wrote: I think it's not a problem. I just ran this via the (

Re: Tabular output

2010-09-30 Thread Martin Tiršel
ndfor %} Martin On Thu, 30 Sep 2010 15:29:58 +0200, aid wrote: On Sep 30, 2:14 pm, Martin Tiršel wrote: Sorry, my bad, I thought that it has to be completed, so it is ok. Problem would be only if I wanted to make cell borderds, around the empty cells too. For the cells you don'

Re: newbie question

2010-10-04 Thread Martin Melin
e you're describing is to have a standalone script that runs periodically, triggered by cron. For info on writing scripts that have access to your Django project's models etc., have a look at Google's results for "django crontab" or similar. Good luck! Best regards, Marti

Re: Adding help text to Django admin

2010-10-04 Thread Martin Melin
; How can I achieve this? http://docs.djangoproject.com/en/dev/ref/models/fields/#help-text Regards, Martin Melin -- 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 unsubscri

Editing user profiles via "inlines" breaks password management in admin site

2010-10-13 Thread Martin Burger
ge password" at http://127.0.0.1:8000/admin/auth/user//password/ does not work anymore: "user object with primary key u'/password' does not exist." How can I enable viewing / editing of user profiles while preserving the original password functionality? Regards, Mart

Re: Editing user profiles via "inlines" breaks password management in admin site

2010-10-13 Thread Martin Burger
Oh, thanks! Actually, it's much simpler this way. On Oct 13, 12:29 pm, Jonathan Barratt wrote: > On 13 ต.ค. 2010, at 17:19, Martin Burger wrote: > > > Hello, > > > I implemented a user profile that is activated via AUTH_PROFILE_MODULE > > in settings.py. In order

Tracking changes of a model

2010-10-30 Thread Martin Tiršel
ld and new values, but I don't know how how to call a code after load. Thanks, Martin -- 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

Re: Tracking changes of a model

2010-10-31 Thread Martin Tiršel
First, I thought that I don't need all the functionality provided by similar applications but after I spend some hours trying to do it myself not being very successfull, I tried this app and after five minutes all was up and running :) Thanks, Martin On Sat, 30 Oct 2010 15:03:48

Call a function after a model with inlines is created

2010-10-31 Thread Martin Tiršel
don't know, where I should put the code. It have to be after all models are saved, but where/when is it? Thanks, Martin -- 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...@googl

Re: Making a m2m field required

2010-11-08 Thread Martin Ostrovsky
What about checking the raw POST for existence of data? So in your form, checking self.data.has_key('some_key') On Nov 8, 9:15 am, "Yo'av Moshe" wrote: > Hey, > > I tried this method with no success. > > Adding .clean to my Article's ModelForm and checking it's > self.instance.tags.all(), gives m

Re: Call a function after a model with inlines is created [solved]

2010-11-08 Thread Martin Tiršel
On Sun, 31 Oct 2010 20:15:19 +0100, Daniel Roseman wrote: On Oct 31, 4:46 pm, Martin Tiršel wrote: If this is only needed for the admin, you probably want to override the ModelAdmin's response_add method. This is called after the add form has been processed and all the resulting ob

Re: Using the Django Admin to change a password.

2010-11-20 Thread Martin Melin
> > Any hints? I assume that the rest of the admin is working? What version of Django are you using? Have you done anything out of the ordinary in urls.py? The problem seems to be that there is no URL pattern for the password change form, which means the user edit URL pattern will

Re: newbie question: @login_required, can't get it to work

2010-12-08 Thread Martin Melin
m/en/dev/ref/settings/#std:setting-LOGIN_URL i.e. you should be using settings.LOGIN_URL and not django.contrib.auth.LOGIN_URL since at least 1.0 Cheers, Martin Melin > > The server says: GET /accounts/login/?login/=/save/ HTTP/1.1  404 2273 > I assume that it is going the path: > > /

Re: Really annoying problem, First App part 1 related

2010-12-09 Thread Martin Melin
x > > with 'startproject' highlighted. The django-admin.py file is in the > directory I changed to. django-admin.py is a program that should be run in your OS shell, not in a Python interpreter which it looks like you're trying to do here. Regards Martin Melin -- You received this

relative links to css, images, javascript -> problem

2010-03-08 Thread Martin N.
ent hostnames and when CSS files must be included from a number of subdirectories. What is the easiest solution? Thanks Martin -- 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...@googlegro

Odd behaviour with forms and i18n

2010-03-08 Thread Martin Ostrovsky
Perhaps somebody could explain exactly what's going on. I have a form whose labels are translatable strings: class MyForm(forms.Form): field1 = forms.CharField(label=_('Label 1'), max_length=20) I generated the .po files, supplied the translations, generated the .mo files, added the proper m

login() and 'unicode' object is not callable error

2010-03-19 Thread Martin Tiršel
else: return error_handler(u'Account disabled') else: return error_handler(u'Invalid login or password') else: return error_handler(u'Invalid input') else: form = LoginForm()

Re: login() and 'unicode' object is not callable error [SOLVED]

2010-03-19 Thread Martin Tiršel
ulo Yes and I forgot to mention, that I am a Python beginner too :) I had to change the variable name and the function name (def login(request)) too. Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Two user account types and login_required decorator

2010-03-19 Thread Martin Tiršel
(administration and customer parts are applications). Is there a way how to use Django's features or I have to create custom decorator to check if the user is logged in? Or I have to create separate project for internal and customer access sharing the same database? Thanks, Martin -

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 In

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 > > > On 5 Kwi, 10:25, Martin Lundberg wrote: > > > File "/home/marlun/.virtualenvs/django/lib/python2.6/site-packages/ > > django/temp

Re: TemplateSyntaxError in the admin pages

2010-04-05 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, which >> >> means that >> probably some of your code called

Test is context variable is set

2010-04-09 Thread Martin Lundberg
. Thanks in advance! -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...@goog

Re: Captcha module ready for testing

2007-06-13 Thread Martin Winkler
and FreeBSD 6.0 with a manual install of PIL 1.1.6, so there might still be some issues with the code. Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Captcha module Version 1.1 ready for testing

2007-06-14 Thread Martin Winkler
ites many captchas over each other for testing purposes. (so you can adjust width and height of your captcha according to your font settings) Hope you like it, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Martin Winkler
se I think, I'll stick with images in the filesystem. In my opinion it's fast for most sites even with auto_cleanup, and for really high volume sites just disable auto_cleanup, use your own cronjob, and everything should be ok. Right now, I just can't see a benefit i

Re: Captcha module Version 1.1 ready for testing

2007-06-15 Thread Martin Winkler
runk soon? (can someone of the core developers inform me how the chances are?) Martin --~--~-~--~~~---~--~~ 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@go

Re: Generic Views: "Could not parse the remainder: % object.title %"

2007-06-15 Thread Martin Winkler
Am Thu, 14 Jun 2007 14:53:42 -0700 schrieb "Evan H. Carmi" <[EMAIL PROTECTED]>: > {{% object.title %}} > {{% object.body %}} this is a syntax error and should be: {{ object.title }} {{ object.body }} They are variables, and not tags. just check http://dja

Re: Survey: FileBrowser and FancyUpload

2007-06-16 Thread Martin Winkler
chment uploads, because in my opinion this is a very nice solution: After choosing a file to upload, a new "Browse" button appears. For me that would really be enough - please can you leave your current behaviour at least as a fallback solution? Martin --~--~-~--~~--

Re: Graphs and django

2007-06-20 Thread Martin Winkler
any functions: from simple pie charts (3D too) up to finance charts which gets data from finance.yahoo.com I took quite some time until I figured how matplotlib/pylab works, but eventually I succeeded. Hopefully you'll get to some good results f

Newbie: Problem with checkboxes

2007-06-22 Thread Nathaniel Martin
I'm working on learning Django, and I'm having trouble getting a basic "todo" app working. I'm listing all my todo items in my template, with a checkbox next to each one for "done". I have an update button that goes to a view that updates all the item's done values. But, it's not working. It d

Re: Newbie: Problem with checkboxes

2007-06-23 Thread Nathaniel Martin
ECTED]> wrote: > > > Nathaniel: > > > On Jun 22, 3:42 pm, "Nathaniel Martin" < [EMAIL PROTECTED]> wrote: > > I'm working on learning Django, and I'm having trouble getting a basic > > "todo" app working. > > > > I'm lis

Re: MySQL Got packet bigger than 'max_allowed_packet'

2007-07-03 Thread Martin Winkler
oftware design bug when one record in a table exceeds 5 MB? If you have binary data, why don't you use FileField and ImageField? That way you'd store the large data in the filesystem and only have a reference to the file in the database. Just my 2 eurocent Martin --~--~-~--~-

Re: MySQL Got packet bigger than 'max_allowed_packet'

2007-07-03 Thread Martin Winkler
Am Tue, 3 Jul 2007 17:34:33 +0200 schrieb Martin Winkler <[EMAIL PROTECTED]>: > If you have binary data, why don't you use FileField and ImageField? > That way you'd store the large data in the filesystem and only have a > reference to the file in the database. M

Re: ImageField upload_to Parameter Problem

2007-07-04 Thread Martin Winkler
Am Wed, 04 Jul 2007 01:19:16 -0700 schrieb lastmohican <[EMAIL PROTECTED]>: > The Problem is, I want a dynamic image > storage path, something like MEDIA_ROOT+"images/" wont work with > hundreds of galleries, [...] Since your primary concern seems to be too many files in one directory, did you c

session in all templates?

2007-07-11 Thread Martin Kaffanke
Hi there! How can I configure django to put the session (request.session) in all templates? I want to put a 'Hello Username' for logged in Users, and I want to do a dynamic login/logout button into the menu, depends on if there is a logged in user or not. Thanks, Martin sig

Re: session in all templates?

2007-07-11 Thread Martin Kaffanke
Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble: > On Wed, 11 Jul 2007, Martin Kaffanke wrote: > > > Hi there! > > > > How can I configure django to put the session (request.session) in all > > templates? > > > > I want to put a 'Hel

Re: session in all templates?

2007-07-11 Thread Martin Kaffanke
Am Mittwoch, den 11.07.2007, 13:34 -0400 schrieb Simon Drabble: > On Wed, 11 Jul 2007, Martin Kaffanke wrote: > > > Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble: > >> On Wed, 11 Jul 2007, Martin Kaffanke wrote: > >> > >>> Hi there! >

Re: session in all templates?

2007-07-12 Thread Martin Kaffanke
Am Donnerstag, den 12.07.2007, 10:46 +0800 schrieb Russell Keith-Magee: > On 7/12/07, Martin Kaffanke <[EMAIL PROTECTED]> wrote: > > At the moment I use on some places a > > > > {'session': request.session} for the Context to render the template. > &

Re: MEDIA_URL MEDIA_ROOT problem.

2007-07-17 Thread Martin Kaffanke
your urls.py: (r'^static/(?P.*)$', 'django.views.static.serve', { 'document_root': '/home/sodrian/versatility/static' }), as your last entry in the urlpatterns = patterns( ... ) (Untested, hope you figure out troubles if there are any.) cheers, Martin signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: Trouble with last bit of Tutorial

2007-07-24 Thread Martin, Jared
I think my post got lost last night... So here's my question again: - Original Message - From: django-users@googlegroups.com To: Django users Sent: Mon Jul 23 20:53:49 2007 Subject: Trouble with last bit of Tutorial I'm trying to put the last bit on the tutorial. I'm running django 0

Textile causing UnicodeDecodeError

2007-08-05 Thread Martin Gilday
ange(128) I am using the django trunk. Any ideas what I am doing wrong? Thanks, Martin. --~--~-~--~~~---~--~~ 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

<    1   2   3   4   5   6   >