I use SLICE filter. I t works ok, but when I try e.g.
{{ some_list|slice:":2" }}
where some_list is
some_list=[1,2,3,4]
I will get [1, 2].
Is it possible, via templates, to remove brackets?
Thanks
L.
--~--~-~--~~~---~--~~
You received this message because you
PythonistL wrote:
>I use SLICE filter. I t works ok, but when I try e.g.
>
>{{ some_list|slice:":2" }}
>
>where some_list is
>some_list=[1,2,3,4]
>
>I will get [1, 2].
>
>Is it possible, via templates, to remove brackets?
>
>
Yes. After "slice" you get back a Python list which is converted to
Ivan,Thanks a lot
It really works!
L.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send ema
Hi
I am wondering what I need to do in order to get the admin site to
enforce the maxlength property. I am using the MR Branch.
I have a model with a CharField where maxlength=3. I goto in admin. It
shows a huge box ie way more than 3 charcaaters, allows you to enter
more than 3 characters and d
Kenneth Gonsalves wrote:
> On Tuesday 21 Mar 2006 5:52 am, layik wrote:
> > Class member:
> > username = meta.foreignKey (users)
> > email = charfield
>
> this is not onetoone
> --
> regards
> kg
>
> http://www.livejournal.com/users/lawgon
> tally ho! http://avsap.org.in
> ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
that
How can I see SQLs generated from an application. I have read the
previosu topics on this, but they no longer seem to apply to MR branch.
Well I cant find the table with all the queries anyways.
I am trying to use limit_choices_to on a foreignkey and it just doesnt
seem to do anything.
I have a
"sam" <[EMAIL PROTECTED]> writes:
> A newbie question:
>
> I am using Django admin's authentication to do login/logout for my own
> application. I want to automatically log user out if no activity for 5
> minutes. I read the session tutorial and played a bit with
> SESSION_COOKIE_AGE -- but it do
Agreeded, I am trying to use OneToOne in MR branch and get the same
problems.
I have:
class Employee(models.Model):
user = models.OneToOneField(User, verbose_name='Employees User ID')
...
And get the following error when trying to view the object in admin:
Request Method: GET
Req
PS Using ForeignKey works fine. So that my solution for now.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe fr
I have a similar problem with limit_choices_to and MR.
Within the admin interface I'd like to limit the choices for a persons
'personalAssistant' to come from a group called 'Administration'. At
the moment, it doesn't work, all 'Persons' are shown in the
'personalAssistant' popup, and I know I ha
Hello!
Where I can found usage documentation of InlineObjectCollection?
I need to implement form of composing invoice with multiple rows and
by now have
done InvoiceRow class, based on Manipulator from Django Cookbook. At
first look InlineObjectCollection should helps in processing multiple
simula
Problem: In a model that holds nothing else than a ManyToManyField, I
obviously have to introduce an unused field,
e.g.
unused = CharField(maxlength=1)
Otherwise, some operations on the model (including save(), that I feel
to be important ;-) ) raise an Exception (Stacktrace added below.)
+++
Trying my first Django install
After I do python manage.py runserver and connect to localhost port 8000 I
get:
ImportError at /
No module named opensourceadmin.urls
Request Method: GET
Request URL:http://127.0.0.1:8000/
Exception Type: ImportError
Exception Value:No modu
no matter what i do.. no matter what collations i try..
i keep getting this error when i try to create a super user..
i have tried this a few times, and tried everything that has been
posted... but i cannot get it to run..
it is already too late in the game to try to use django on a current
pro
Op di, 21-03-2006 te 07:35 +0530, schreef Kenneth Gonsalves:
> dunno if it is possible, but could the default language in django
> pastebin be set to python instead of php?
You have to accept cookies from the site, so that it can "remember" what
you used last...
--
Jan Claeys
--~--~---
[EMAIL PROTECTED] wrote:
> no matter what i do.. no matter what collations i try..
> _mysql_exceptions.OperationalError: (1267, "Illegal mix of collations
> (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
> operation '='")
"Illegal mix of collations" gives ~67000 hits on google
Hi all,
I am using:
Windows xp
Django 0.91
Django's own development server.
myproject/
...myapp
...media
../myapp
./uploads
in my settings
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = 'C:/absolute_file_path/media'
# URL that handles the media served from MEDIA_ROOT.
M
please help!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
F
Is your project directory on your Python path? The easiest thing for
me is to ln it to site-packages.
On 3/21/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
> ImportError at /
> No module named opensourceadmin.urls
> Request Method: GET
> Request URL:http://127.0.0.1:8000/
> Exception Type:
The first slash on file = meta.FileField (upload_to
="/myapps/uploads") is probably putting the file on drive C's root.
Check if you have this directory:
C:\myapps\uploads\
It bite me already :)
Anyway this is what I have:
settings.py:
MEDIA_ROOT =
'C:/Python24/Lib/site-packages/projec
Julio Nobrega writes:
>
> Is your project directory on your Python path? The easiest thing for
> me is to ln it to site-packages.
It wasn't. Thanks
Maybe is my newbiness... but the install and tutorial docs seem like could
use some changes. For instance just double-checked to make sure I ha
I dont know how to thank you! Julio
I feel blessed now!
I can go to my progress meeting tomorrow! and showing them all this!
onemore time, THANKS!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
Following the tutorial I completed up to "python manage.py install polls".
The tutorial doesn't explain how to actually see what one has done so far
and moves to playing with the API.
How do I view the poll?
Any better tutorials anyone would recommend? I find the installation and
tutorials in
I'd suggest moving on through the tutorial, and, as the end of
Tutorial 2 states, "When you're comfortable with the admin site, read
part 3 of this tutorial to start working on public poll views." That's
where you can start seeing the poll app's public view.
"Playing with the API" actually = "lea
On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
>
> Following the tutorial I completed up to "python manage.py install polls".
> The tutorial doesn't explain how to actually see what one has done so far
> and moves to playing with the API.
>
> How do I view the poll?
Its later in the tutor
On Tue, 2006-03-21 at 19:28 -0500, Francisco Reyes wrote:
> Following the tutorial I completed up to "python manage.py install polls".
> The tutorial doesn't explain how to actually see what one has done so far
> and moves to playing with the API.
>
> How do I view the poll?
At the point that
On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
>
> Julio Nobrega writes:
>
> >
> > Is your project directory on your Python path? The easiest thing for
> > me is to ln it to site-packages.
>
> It wasn't. Thanks
>
> Maybe is my newbiness... but the install and tutorial docs seem like coul
Russell Keith-Magee writes:
Malcolm Tredinnick <[EMAIL PROTECTED]>
> Do you have any specific suggestions? We're always keen to make
> improvements, but it is difficult to improve if people say "it sucks"
> without giving suggestions.
That's why I asked if there was a particular place to send f
On 3/22/06, Francisco Reyes <[EMAIL PROTECTED]> wrote:
Russell Keith-Magee writes:I will gladly try and give feedback about the docs.. just wanted to knowwhat is the best place to send the feedback to. This list or the developerslist?
The user list would be preferable to the developer list, but if
>
> Op di, 21-03-2006 te 07:35 +0530, schreef Kenneth Gonsalves:
>> dunno if it is possible, but could the default language in django
>> pastebin be set to python instead of php?
>
> You have to accept cookies from the site, so that it can "remember" what
> you used last...
ahh - didnt notice tha
I'm sure I'm missing something, since when I originally tried it when
django was first launched it worked well.
I need a poll in one of my projects and so I thought I'd just use the
poll that comes in the tutorial, all worked well up until I came to
editing the choices inline. I can only get one
Sorry found it http://code.djangoproject.com/ticket/482
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from th
Also take a look at writing a few hook scripts.
When ever a developer checks in code to SVN that code gets immediately
deployed to a central dev server. It also generates a changelog email
and sends it to the team.
You can even set it up so that checkins to different branches go to
different s
[url=http://www.oilio.net/adget.php?id=19398]奇幻之国带你进入奇幻的世界,所有的游神都是抱着分享的精神。[/url]
[url=http://www.oilio.net/adget.php?id=19398][img]http://www.oilio.net/logo.gif[/img][/url]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Francisco Reyes wrote:
> Maybe is my newbiness... but the install and tutorial docs seem like could
> use some changes. For instance just double-checked to make sure I had not
> missed it. I don't see where it mentions to create a symlink for each
> project.
Probably because you don't have to.
35 matches
Mail list logo