I'm sure the answer is probably documented clearly somewhere. But, I
can't find it.
I would like to change the ordering of a field in a form on the admin
site based on the model below. The "game" column is several records
long. I would like to order desc. I've tried adding a META class to
my
I am very much new to django and I assume this question has been
answered. I referance to a tutorial or example of what I am trying to
do would be great. i.e. don't feel you need to give me a long answer
unless you want to.
I am trying to make some improvements to pydocweb
On Sunday 13 June 2010 04:40:10 Jerry Schrader wrote:
> oh, well, Windows, and Linux Ubuntu. I was in Ubuntu when I wrote.
>
where were you when you installed?
--
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC
--
You received this message because you are subscribed to the
On Sat, Jun 12, 2010 at 8:37 AM, MIL wrote:
> I experience problem with special chars like æøå in filename when
> using models.ImageField.
>
> What am I doing wrong?
>
> models.py
> picture = models.ImageField(upload_to='pics', blank=True,
> verbose_name='Picture of you')
>
did you tried so:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
or something similar?
On Sun, Jun 13, 2010 at 1:25 AM, MichaleHjulskov wrote:
> Hi Bjørn
>
> I have allready # -*- encoding: utf-8 -*-# in top of my settings.py
> and models.py
>
> Should I put it in
oh, well, Windows, and Linux Ubuntu. I was in Ubuntu when I wrote.
On Sat, Jun 12, 2010 at 4:59 PM, Dave E wrote:
> To help guide answers, please state which platform are you using (OS
> X, Windows, Linux)?
>
> --
> You received this message because you are subscribed to
Hi Bjørn
I have allready # -*- encoding: utf-8 -*-# in top of my settings.py
and models.py
Should I put it in all my .py files?
Thanks :o)
On 12 Jun., 17:06, Bjørn Høj Jakobsen wrote:
> Hi
>
> Try and put "# -*- encoding: utf-8 -*-#" in the top of the py script.
>
>
To help guide answers, please state which platform are you using (OS
X, Windows, Linux)?
--
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
Hi,
I try to create a wiki application and the pages can be classified
into categories. The model for category has a field called "url" to
contain the url to access the category. One can have categories and
sub-categories, like wiki/category/Test/ and wiki/category/Test/Sub-
test, knowing that
I installed python, I am not sure if I use the IDLE, or the command
line, then I downloaded Django, and double clicked on install.py,
another command windows opened and shut real fast, I don't know what
to do now. When I go to the python command line, and put in cd django.
1.2.1 I get errors, I
Tx a lot "Restless"...
As yr post took me a while to decipher it and get most of the info, I
thought it might be usefull to post extra info based on yr post.
Django allows for extension to the command line (./manage.py).
One of the extension is provided by Google :
Hi there,
I need to use a task queue for Django, and Celery seems ideal,
unfortunately I can't install RabbitMQ on my server, so I need to use
an alternate backend (I have Redis and MySQL available).
Unfortunately, I can't get either to work :\
I'm using Celery 1.0.5 with Django 1.2.1, I've
On Sat, Jun 12, 2010 at 12:58 PM, Jagdeep Singh Malhi
wrote:
> My http://localhost/admin/ is display in pattern without grapic or
> image not like that which is shown in Tutorial
> http://docs.djangoproject.com/en/1.2/intro/tutorial02/#intro-tutorial02
>
> MY admin
My http://localhost/admin/ is display in pattern without grapic or
image not like that which is shown in Tutorial
http://docs.djangoproject.com/en/1.2/intro/tutorial02/#intro-tutorial02
MY admin page (http://localhost/admin/)
Django administration
Welcome, Jagdeep. Change password / Log out
thanks very much Django usersits work
On Jun 12, 1:16 pm, Alexander Jeliuc wrote:
> I think like Kenneth... django is the same python but additional library. No
> python - no django
> My recommendation Python Essential Reference 4th edition
>
> On Sat, Jun 12,
Thanks Dan.
I also found this: http://goo.gl/l2IW
--
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
Hi
Try and put "# -*- encoding: utf-8 -*-#" in the top of the py script.
These danish characters really are a pain the ass.
Regards
Bjørn
On 12 Jun., 14:37, MIL wrote:
> I experience problem with special chars like æøå in filename when
> using models.ImageField.
>
> What
On Jun 11, 7:17 pm, "James O'Connor" wrote:
> Wel what I have in mind is wondering if it would be useful to build
> full implementations of what would normally be called "Analysis
> Patterns", like Designed Patterns but commone object modeling
> solutions to common domain
This article might help you out: http://djangoadvent.com/1.2/object-permissions/
Cheers,
Dan Harris
dih0...@gmail.com
On Jun 11, 11:46 pm, Wiiboy wrote:
> Hi guys,
> I don't know whether the built-in permissions system would be
> appropriate here, but I want to control
I experience problem with special chars like æøå in filename when
using models.ImageField.
What am I doing wrong?
models.py
picture = models.ImageField(upload_to='pics', blank=True,
verbose_name='Picture of you')
Using model forms
Let say I want to upload picture named "æøå.jpg"
If I do
I think like Kenneth... django is the same python but additional library. No
python - no django
My recommendation Python Essential Reference 4th edition
On Sat, Jun 12, 2010 at 11:01 AM, Kenneth Gonsalves wrote:
> On Saturday 12 June 2010 10:39:36 Jagdeep Singh Malhi wrote:
>
independed urls.py file
On Sat, Jun 12, 2010 at 10:45 AM, HARRY POTTRER wrote:
> On Jun 4, 4:10 am, Daniel Roseman wrote:
> > On Jun 4, 5:06 am, HARRY POTTRER wrote:
> >
> > > I'm writing a forum app that I want to be reusable. All
On Saturday 12 June 2010 10:39:36 Jagdeep Singh Malhi wrote:
> IndentationError: unindent does not match any outer indentation level
>
no one help you in this unless you are willing to do some homework - most IDEs
have a button to press to compile the code - mine uses f8. Press that key and
it
I finally got it to work by adding the RequestContext to my
render_to_response. I think the issue was that it was redirecting and
the csrf_token wasn't getting sent to the new page by the
requestcontext, here is what it looks like now: (csrf_token is also in
the form)
return
On Jun 4, 4:10 am, Daniel Roseman wrote:
> On Jun 4, 5:06 am, HARRY POTTRER wrote:
>
> > I'm writing a forum app that I want to be reusable. All of my urls I
> > have named. Some of them are named like "index" and "thread" which are
> > generic and will
Ok, that helped narrow things down a little bit. It seems that IE is
receiving the AJAX header after all. For some reason my JavaScript doesn't
always get rendered correctly in IE, but if I clear the browsing history,
cookies, temp files, etc., it works (at least until it starts caching things
Hi!
Christoph wrote:
> normally in views.py I have a function that takes a request and
> returns a render_to_response or the like. I, however, would like it to
> take a request and have Django reply with multiple responses. Is there
> a way to do this, or is this not possible with HTTP anyway?
Check your indentation of that particular line, and all of the lines
above. In Python, indentation matters, and it all needs to line up
accordingly.
We can't really help anymore without you showing us more code, which
is difficult due to the way email messes with leading spaces. You can
try
Hi!
Jagdeep Singh Malhi wrote:
> IndentationError: unindent does not match any outer indentation level
You need to learn Python :) Indentation matters in Python. If previous
lines of your file use spaces and this line uses tabs, you'll get a wrong
indentation error.
--
Dmitry Dulepov
Twitter:
29 matches
Mail list logo