On 2/13/07, Jianjun <[EMAIL PROTECTED]> wrote:
>
> limodou,
> Thanks for sharing the source code. It looks a nice.
> I got one question: I create a book on the demo site and I couldn't
> find how to enable the comment bar on the left side. Did I miss
> something? All the sample books except for th
Michel Thadeu Sabchuk wrote:
> Hi guys!
>
> I'm having troubles using admin interface to add an inline object that
> have a unique constraint in it. Look the code:
>
> class Office(Model):
>
> name = CharField(maxlength=200)
>
> def website(self):
> return self.office_set.all()[0]
Hi
Malcolm Tredinnick wrote:
> There isn't any way to do this built into Django. It may not always make
> sense, either, since a template could just be a string (hence have no
> name).
>
> Looking through some code I have written, I found a case where I was
> doing something like you are an
If you Still using Internet Explorer for browsing ,Following not available
in internet explorer
* Tabbed Browsing
Save time by viewing more than one page in a window
* Pop-up Blocking
Block annoying pop-up ads
* Better Security
Help keep computers safe from malicious
If you Still using Internet Explorer for browsing ,Following not
available in internet explorer
* Tabbed Browsing
Save time by viewing more than one page in a window
* Pop-up Blocking
Block annoying pop-up ads
* Better Security
Help keep computers safe from maliciou
In limodou's implementation, you have to assign a [comment quote]
before the section you want to have the comment.
ex:
[1] I want some comment here
but here I don't need a comment
[2] other rst
the above text will produce 2 comment bars.
On Feb 13, 1:37 pm, "Jianjun" <[EMAIL PROT
On Tue, 2007-02-13 at 17:29 +1100, Michael Lake wrote:
> Hi all
>
> Is there a way for a template file to know its name? The reason is that I
> have a
> template file base.html which is placed at the beginning of each HTML file
> and it
> contains a link to the help page. This will appear on
Hi all
Is there a way for a template file to know its name? The reason is that I have
a
template file base.html which is placed at the beginning of each HTML file and
it
contains a link to the help page. This will appear on each page and works fine.
However I don't want the help link to appe
On Tue, 2007-02-13 at 03:46 +, damacy wrote:
> hi, there.
>
> i have two tables in the database; TEAMS and PLAYERS.
> and in my model.py, i have specified min_num_in_admin = 4,
> num_extra_on_change = 4,
> so that there always exist 4 blank players.
>
> the problem is that there are 4 blank
limodou,
Thanks for sharing the source code. It looks a nice.
I got one question: I create a book on the demo site and I couldn't
find how to enable the comment bar on the left side. Did I miss
something? All the sample books except for the very first one do NOT
show the comment bar on the left si
> Don isn't being unreasonable. People are (understandably) very
> protective of their creative efforts. It doesn't matter whether it is
> a demo or a production site, whether it is fixed content of modifiable
> content - you have published something to the world which you didn't
> create, and hav
On Feb 12, 8:42 pm, "Waylan Limberg" <[EMAIL PROTECTED]> wrote:
> You can do it either way, but the suggested way works better when you have
> multiple apps which share the same layout and who's templates all inherit
> from the same base template. Add on top of that the fact that (in a large
>
On Mon, 12 Feb 2007 23:19:19 -0500, kbochert <[EMAIL PROTECTED]> wrote:
>
>> From the tutorial I see that a project directory looks like:
>
> Project
> App
> models.py
> views.py
> Templates
> App
> index.htm
> Admin
>
On Mon, 2007-02-12 at 20:19 -0800, kbochert wrote:
> >From the tutorial I see that a project directory looks like:
>
> Project
> App
> models.py
> views.py
> Templates
> App
> index.htm
> Admin
>
> Doesn't it make more
>From the tutorial I see that a project directory looks like:
Project
App
models.py
views.py
Templates
App
index.htm
Admin
Doesn't it make more sense to have:
Project
App
models.py
views.
hi, there.
i have two tables in the database; TEAMS and PLAYERS.
and in my model.py, i have specified min_num_in_admin = 4,
num_extra_on_change = 4,
so that there always exist 4 blank players.
the problem is that there are 4 blank players when modifying an
'existing' team (as expected),
however,
hey all
i was wondering if anyone has encountered this issue.
i am trying to create some replacement admin templates, so that the
list views show small thumbnail images for models that have images. i
am using nesh.thumbnail, which provides templatetags and filters for
generating thumbnails.
the
On Feb 12, 4:46 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> You can specify the key/passkey files in the virtual
> host directive, which would probably be the most
> manageable way to do it:
> http://www.apache-ssl.org/docs.html#SSLCertificateFile
> However, if you use a wildcard you can use the
I recently had this problem and got nowhere with the ticket 2070
patches. I wanted large file upload with user feedback. I ended up
implementing a two-part solution: a CGI that actually handles the
uploading (the "tramline"-like component) and a Django interface to
it.
I've received permission
You may want to try self.user.email instead of user.email.
- Ben
On 2/12/07, Silas <[EMAIL PROTECTED]> wrote:
>
> I've created a newforms custom form in which I'm trying to update a
> user's email while making sure no other user currently has the new
> email address. Ignoring the fact that I co
Hi guys!
I'm having troubles using admin interface to add an inline object that
have a unique constraint in it. Look the code:
class Office(Model):
name = CharField(maxlength=200)
def website(self):
return self.office_set.all()[0]
def __str__(self):
return self.nam
Hi guys,
I have my database and my application set up to the UTF-8 charset (my
settings file have an option DEFAULT_CHARSET = 'UTF-8'). I don't have
to pass verbose_names or help_texts as unicode strings, I didn't have
any problem with character encoding using the admin interface, but now
I want
Case 1:
When you have Validation for TextField and FileField on the same form,
you enter the info and upload a file. When you hit submit, text form
validation fails, that means the File is still sent to the server and
server would have it in the memory. Now, I have to fix the TextField
info with
On 2/13/07, limodou <[EMAIL PROTECTED]> wrote:
>
> On 2/13/07, Don Arbow <[EMAIL PROTECTED]> wrote:
> >
> The book image just a default image, and I could change it. So you can
> upload your own book image.
>
> Please take it easy, this site just a demo site, and I setup it just
> wan to show the
On Tue, 2007-02-13 at 01:01 +0100, Bram - Smartelectronix wrote:
> hey guys,
>
>
> given the premises that I need a solution "right now" which is the best
> way to go? Patch Django? Try to get tramline working? Write something
> myself? Something else?...
>
>
> I'm pretty desperate, so anyth
hey guys,
given the premises that I need a solution "right now" which is the best
way to go? Patch Django? Try to get tramline working? Write something
myself? Something else?...
I'm pretty desperate, so anything that could help more than welcome!
thanks a lot for any help,
- bram
--~
On 2/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> you could use verbose_name and help_text to clarify purpose of fields
> like num, and in case num - make it a slugField. Also a note for
> models:
num is not the same as slug, because I will use num to order the
chapters order. So it ha
On 2/13/07, Don Arbow <[EMAIL PROTECTED]> wrote:
>
> On Feb 12, 2007, at 6:30 AM, limodou wrote:
> > I'v setup a demo site for open book platform project. So you can visit
> > it : http://limodou.51boo.com
> > This site is just for testing and demo, so don't put important
> > things in it.
>
>
>
>
Thanks Rob! Very very helpful. (And thanks Jeff and Rob for the SSL
followup)
Much obliged,
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
I've created a newforms custom form in which I'm trying to update a
user's email while making sure no other user currently has the new
email address. Ignoring the fact that I could use the User generated
forms, I was wondering if anyone could hint on the best way to pass a
variable to a custom for
This may be more of a python question, but here I go...
I want to develop a maillist manager that works with existing django
applications. I thought that it would be suitable to declare the
mailable content class in the model in a way similar to the admin
application.
Suppose there is a blogging
>
>
> We're talking about *named* virtual hosting + SSL. Named
> virtual hosting uses the "Host:" HTTP/1.1 request header
> to decide which site should receive the request. But to
> extract that from the SSL'd content we need the site's
> private key. The problem is we don't know which site
>
In my form, I have the following:
appointment = forms.SplitDateTimeField(label='AppointmentAt',
required = True
)
What do you type in Template to get SplitDateTimeField? This is what
I have, unfortunately this is not working.
you could use verbose_name and help_text to clarify purpose of fields
like num, and in case num - make it a slugField. Also a note for
models:
Book -> Chapter -> Articles could be bit better (or a "line break"
feature for chapter) For example:
Django the Book:
Chapter 1. Basics
--- what is djan
Have you looked into passing a widget attribute into your field? You
can either subclass a widget or create one from scratch.
--
Jeff Bauer
Rubicon, Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
On Feb 12, 2:37 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> For the cons, not true, really. You can use the same IP address.
Your advice contradicts my (very limited) understanding
of how SSL works, so please inform me of where my
ignorance lies ...
We're talking about *named* virtual hosting
> 1. One virtual host per site (project1.mycompany.com,
>project2.mycompany.com, etc.)
>
>Pros: Each project has its own admin site. The sqlite database
>file for each project is independent of the others.
>
>Cons: For SSL, each virtual host needs its own IP address and its
>ow
Hello -
I'm trying to set up multiple sites on one server using SSL, to give
each of several independent projects its own site. Each site will
have low-volume traffic and there won't be more than 5-10 up at the
same time.
My questions are:
1. Do I understand the options (below) correctly? Any I'm
On Mon, 12 Feb 2007 17:54:55 +, Patrick J. Anderson wrote:
> On Mon, 12 Feb 2007 13:06:19 +, Patrick J. Anderson wrote:
>
>> I want to plot my milestones into a 28-week calendar using Django. What
>> would be the best approach to doing that?
>>
>> I have the following code:
>>
>>
>> [
On 12 Feb, 18:38, Merric Mercer <[EMAIL PROTECTED]> wrote:
> By using TEMPLATE_ CONTEXT_PROCESSOR (by adding a path to a function,
> example - Function X) I understand that I can access the variables of
> Function X in any template.
In any template to which you pass a RequestContext object.
> W
* GvaderTh wrote, On 12.02.2007 10:40:
> Hi all. Does anyone know how to capture server error (500)? I mean,
> I'm using django with mod_python and I want to serve prepared static
> html whenever happen server error. How to do this? Actually when
> something goes wrong, I just get screen Internal
On Mon, 12 Feb 2007 13:06:19 +, Patrick J. Anderson wrote:
> I want to plot my milestones into a 28-week calendar using Django. What
> would be the best approach to doing that?
>
> I have the following code:
>
>
> [dashboardcalendar.py (custom template tag)]
>
> from datetime import datet
* Rob Slotboom wrote, On 12.02.2007 10:25:
> When running Django using mod_python you have to restart Apache
> whenever you make changes to your code. Some changes don't require a
> restart so I wonder which changes trigger mod_python to reload and
> which don't.
Basically any change to the pytho
By using TEMPLATE_ CONTEXT_PROCESSOR (by adding a path to a function,
example - Function X) I understand that I can access the variables of
Function X in any template.
What I would like to know is does this function get run in every
template - even if I don't need it in a template.
For examp
On Feb 12, 2007, at 6:30 AM, limodou wrote:
> I'v setup a demo site for open book platform project. So you can visit
> it : http://limodou.51boo.com
> This site is just for testing and demo, so don't put important
> things in it.
I would refrain from using other's images on your site (you too
Thank you so much.
On Feb 12, 10:38 am, "Igor Guerrero" <[EMAIL PROTECTED]> wrote:
> You must add the app dir and django dir to the PYTHON_PATH env variable in
> the preferrence menu and rescan the PATH.
>
> On 2/12/07, johnny <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am using PyDev and Eclipse. Fo
* johnny wrote, On 12.02.2007 04:37:
> Do you keep your frontend related css,js file in separate folder other
> than admin (My assumption is admin, is the BACKEND)?
Admin is just another application, don't mix your media files with admins.
>
> I am confused with:
>
> ADMIN_MEDIA_PREFIX
This is
* Benedict Verheyen wrote, On 12.02.2007 12:03:
> Benedict Verheyen schreef:
>
>
> I almost succeeded in getting there.
> I can get the rooms i want via this command:
>
> r = models.ForeignKey(Room, blank=True, null=True, limit_choices_to =
> Room.objects.exclude(id__in=[patient.room.id for pat
On Feb 11, 7:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The goal is to be able to publish
> a unique uri for a file that can be accessed via a web page, ensure
> that the user is authenticated and permissioned for that uri, then let
> them download the file.
I've been trying to ev
I have a form that is generated dynamically and contains either radio,
checkbox, text field or drop down menu.
The following is used to render the form:
{% for attribute in attributes %}
{{ attribute.label }} {{attribute }}
{% endfor %}
This work well except when attribute is a radio or a c
You must add the app dir and django dir to the PYTHON_PATH env variable in
the preferrence menu and rescan the PATH.
On 2/12/07, johnny <[EMAIL PROTECTED]> wrote:
>
>
> I am using PyDev and Eclipse. For some reason I can't get Eclipse to
> do the autocomplete to work for python.
> Eclipse autocom
I am using PyDev and Eclipse. For some reason I can't get Eclipse to
do the autocomplete to work for python.
Eclipse autocomplete work for other language and library packages. It
does autocomplete for python, but not for Django. My django in python/
lib/site-packages/django. Is there something
I think is a newbie question but...
I have this in my settings.py:
LANGUAGE_CODE = 'en'
LANGUAGES = (
('pt', 'Portuguese'),
('en', 'English'),
)
But if a user have a browser(like firefox) in "pt-br" the application
tries "pt-br".
And sometimes the "en" tries "en-us".
Any idea why this h
I'v setup a demo site for open book platform project. So you can visit
it : http://limodou.51boo.com
This site is just for testing and demo, so don't put important things in it.
Thanks the master of 51boo.com, without his help I cann't run up the site.
The project can be found at: http://code.goo
On Feb 12, 8:06 am, "samira" <[EMAIL PROTECTED]> wrote:
> I want to have two
> kind of cookie: permanent and temporary. Temporary cookie should be
> deleted when browser close. I don't want to use
> "SESSION_EXPIRE_AT_BROWSER_CLOSE" because that will delete all part of
> cookies but I want to temp
On Feb 11, 3:42 pm, "voltron" <[EMAIL PROTECTED]> wrote:
> I plan on using newForms and the auth module for my site. All of the
> examples I have seen involve extracting form data and creating a user
> in the database immediately, how can I "shortcircuit" this process to
> allow one to confirm one
On Feb 11, 12:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The files will be stored on a general
> filesystem (probably on a large SAN array but I appreciate advice on
> alternatives that can be shared by multiple servers).
An alternative to SAN would be MogileFS (from the same people
I want to plot my milestones into a 28-week calendar using Django. What
would be the best approach to doing that?
I have the following code:
[dashboardcalendar.py (custom template tag)]
from datetime import datetime, timedelta
from django.template import Library,Node
register = Library()
de
On Mon, 12 Feb 2007 05:50:32 +, Patrick J. Anderson wrote:
> On Mon, 12 Feb 2007 15:32:07 +1100, Malcolm Tredinnick wrote:
>
>> On Mon, 2007-02-12 at 03:49 +, Patrick J. Anderson wrote:
>>> I think I might be missing something, but I have a problem with
>>> date filter. Why doesn't this
Benedict Verheyen schreef:
I almost succeeded in getting there.
I can get the rooms i want via this command:
r = models.ForeignKey(Room, blank=True, null=True, limit_choices_to =
Room.objects.exclude(id__in=[patient.room.id for patient in
Patient.objects.filter(room__isnull=False)]) )
However,
Nebojša Đorđević schreef:
> On Feb 9, 2007, at 09:32 , Benedict Verheyen wrote:
>
>
> Have you tried `limit_choices_to` (http://www.djangoproject.com/
> documentation/model_api/#many-to-one-relationships) to filter out all
> of the used beds from the select list.
>
> Do you use Django admin
I think that you can only use {{block.super}}. May be you have to
change your template design
On Feb 12, 12:09 pm, "Rob Slotboom" <[EMAIL PROTECTED]> wrote:
> Sorry that isn't working (at least not in my template )
--~--~-~--~~~---~--~~
You received this message
Hi all. Does anyone know how to capture server error (500)? I mean,
I'm using django with mod_python and I want to serve prepared static
html whenever happen server error. How to do this? Actually when
something goes wrong, I just get screen Internal Server Error, but I
want to change this for my
Also beware that mod_php can give you session troubles on some systems.
--~--~-~--~~~---~--~~
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 uns
When running Django using mod_python you have to restart Apache
whenever you make changes to your code. Some changes don't require a
restart so I wonder which changes trigger mod_python to reload and
which don't.
--~--~-~--~~~---~--~~
You received this message bec
Nebojša Đorđević schreef:
>
> Have you tried `limit_choices_to` (http://www.djangoproject.com/
> documentation/model_api/#many-to-one-relationships) to filter out all
> of the used beds from the select list.
>
> Do you use Django admin interface or the custom form?
Hi,
no i haven't tried l
For those interested:
### INIT ###
import datetime, time
from django.http import Http404
def trans_month(month):
"""Vertaald de locale maandweergave naar globale"""
if month == "maa": month = "mar"
elif month == "mei": month = "may"
elif month == "okt": month = "oct"
return mont
Sorry that isn't working (at least not in my template )
--~--~-~--~~~---~--~~
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 t
Hi Rob,
Perfect!
Thank's
Robert Slotboom
Op 10-feb-07 om 17:13 heeft Rob Hudson het volgende geschreven:
> "limit_choices_to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Can anybody help me? I have problem by cookies. I want to have two
kind of cookie: permanent and temporary. Temporary cookie should be
deleted when browser close. I don't want to use
"SESSION_EXPIRE_AT_BROWSER_CLOSE" because that will delete all part of
cookies but I want to temporary part to dele
70 matches
Mail list logo