planetshwoop wrote:
> Ramiro Morales wrote:
> > brian,
> >
> > On 6/10/06, planetshwoop <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > I'm trying to get my first app/project started on Django. I've created
> > > my first model, but am unable to access the admin site. I continue to
> > > get the e
Hi all
Is anybody aware of a template tag or something that renders a calendar
for a blogs sidebar?
One of those things that shows the month of the blog entry you're
currently looking at and the days are links to entries that where made
on other days?
cheers
Steven
--~--~-~--~~-
On 6/10/06, mohan <[EMAIL PROTECTED]> wrote:
> In the admin interface index, an 's' is appended to the model name when
> it is listed. This works for most object names. But now I have a model
> by name 'country'. It is listed in the Admin index as 'countrys'.
>
> How do I override this behaviour?
In the admin interface index, an 's' is appended to the model name when
it is listed. This works for most object names. But now I have a model
by name 'country'. It is listed in the Admin index as 'countrys'.
How do I override this behaviour?
--~--~-~--~~~---~--~
I'm triying to use lighttpd for Windows, so I can test stuff localy and
then upload to linux.
I download the windows version of lighttpd :
http://www.kevinworthington.com:8181/
I configure the thing this way:
server.modules = ( "mod_rewrite", "mod_fastcgi" )
server.document-root = "F:/Proyecto
On 6/10/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> Is there a list of attributes for an HttpRequest object somewhere?
http://www.djangoproject.com/documentation/request_response/
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
--~--~-~--~
On Jun 10, 2006, at 12:32 PM, Luke Plant wrote:
>
> On Saturday 10 June 2006 16:40, Todd O'Bryan wrote:
>
>> so I'd like to add userinfo to the context by default. To do that,
>> I've figured out that I need to add my own function to
>> TEMPLATE_CONTEXT_PROCESSORS, but I'm a little confused how t
On 6/10/06, Justin <[EMAIL PROTECTED]> wrote:
> I toyed with the idea of a custom Manager but wanted to see first if
> Django already handled this scenerio "out of the box" and I was just
> missing it.
Yeah, Django covers it, you just need to add 'blank=True' as well; as
Luke pointed out, 'null'
Yeah, what I have is:
class Container(models.Model):
parent = models.ForeignKey('self', null=True, related_name='child')
I toyed with the idea of a custom Manager but wanted to see first if
Django already handled this scenerio "out of the box" and I was just
missing it.
--~--~-~--~--
On Saturday 10 June 2006 16:46, Todd O'Bryan wrote:
> On Jun 10, 2006, at 11:41 AM, Justin wrote:
> > I was following the Model Ex. 11 "Relating an object to itself,
> > many-to-one" in an attempt to create nested containers. I'm running
> > into the problem that at the start there is no parent f
On Saturday 10 June 2006 16:40, Todd O'Bryan wrote:
> so I'd like to add userinfo to the context by default. To do that,
> I've figured out that I need to add my own function to
> TEMPLATE_CONTEXT_PROCESSORS, but I'm a little confused how to get the
> currently logged in user so I can get the app
won't this work for you:
class Node(Model):
parent = ForeignKey('self', blank=True, null=True)
... rest of your model...
then fetch it like Node.objects.filter(parent__isnull=True)
if you are worried with the possibility of ending up with mode that
one root node you could do either (bot
On Jun 10, 2006, at 11:41 AM, Justin wrote:
>
> I was following the Model Ex. 11 "Relating an object to itself,
> many-to-one" in an attempt to create nested containers. I'm running
> into the problem that at the start there is no parent for newly
> created
> objects to relate too. Is there a w
[EMAIL PROTECTED] wrote:
> Hi,
>
> I understand the suggestion and it does make sense, as do the other
> that have been suggested. However, I am thinking about the following
> issues:
>
> 1. The data that I am consuming (XML) is a pretty complex structure. I
> want to convert it to a Python stru
I was following the Model Ex. 11 "Relating an object to itself,
many-to-one" in an attempt to create nested containers. I'm running
into the problem that at the start there is no parent for newly created
objects to relate too. Is there a way to handle this from the Model or
do I need to just fire
To recap, I have a UserInfo model that has User as a foreign key. I'm
getting tired of
{{ user.userinfo_set.all.0... }}
so I'd like to add userinfo to the context by default. To do that,
I've figured out that I need to add my own function to
TEMPLATE_CONTEXT_PROCESSORS, but I'm a little co
On Saturday 10 June 2006 15:56, James Bennett wrote:
> That actually won't work at all on current trunk, even if the model
> definition is updated; 'replaces_module' isn' a part of Django
> anymore so far as I know.
>
> I'd highly recommend a related model with edit_inline, and using the
> AUTH_P
On Jun 10, 2006, at 10:32 AM, Luke Plant wrote:
>
> On Saturday 10 June 2006 14:40, Todd O'Bryan wrote:
>> What do people use to verify the strength of user passwords? Is there
>> a Python library out there that's good?
>>
>> I've found python-crack, but that requires cracklib to be installed
>>
On 6/10/06, Luke Plant <[EMAIL PROTECTED]> wrote:
> This sounds like you are really asking 'how *flexible* is Django?'.
> With regards to adding fields, see:
> http://code.djangoproject.com/wiki/ExtendedUserModel
That actually won't work at all on current trunk, even if the model
definition is up
On Wednesday 07 June 2006 12:12, mazurin wrote:
> I am using limoudou's 'expr' tag, btw.
>
> In a template html file, why can I do this (very simplified
> example):
>
> {{ form.somefield }}
>
> but not this:
>
> {% expr form.somefield as var %}
> {{ var }}
>
> The 2nd
On Monday 05 June 2006 20:51, HBTaylor wrote:
> Since the method doesn't correspond to a column in a table, the
> order_by() method doesn't work. I want to show all teams by
> descending winning percentage in a "standings" view, but I'm not sure
> what way to best accomplish this. I have ideas in
On Saturday 10 June 2006 14:40, Todd O'Bryan wrote:
> What do people use to verify the strength of user passwords? Is there
> a Python library out there that's good?
>
> I've found python-crack, but that requires cracklib to be installed
> on the server and I'd prefer something self-contained.
I
Thanks Luke, very nicely explained!
Rudolph
--~--~-~--~~~---~--~~
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, s
On Friday 09 June 2006 18:02, Marcin Kaszynski wrote:
> I just spent some time looking for a way to extend the User model in
> a way that would allow me to:
>
> 1. add fields to the model itself,
> 2. use the standard admin interface to edit them,
> 3. keep changes to Django minimal and generic.
On Friday 09 June 2006 13:35, Rudolph wrote:
> Hi,
>
> I understand why we have the django.db.models.LazyDate(): it's to
> make sure we get the datetime value at execution time and not at
> "compile" time. The docs tell you to use it for "limit_choices_to",
> but should I also use it when I want t
Ramiro Morales wrote:
> brian,
>
> On 6/10/06, planetshwoop <[EMAIL PROTECTED]> wrote:
> >
> >
> > I'm trying to get my first app/project started on Django. I've created
> > my first model, but am unable to access the admin site. I continue to
> > get the error "ImportError at /admin/" "No modu
brian,
On 6/10/06, planetshwoop <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to get my first app/project started on Django. I've created
> my first model, but am unable to access the admin site. I continue to
> get the error "ImportError at /admin/" "No module named admin"
>
> My hunch is that I
On Friday 09 June 2006 23:50, binjured wrote:
> 1) How robust is Django? Take for instance the User class. Say I
> wanted to add the field "favorite_color" and have it editable in the
> admin interface and work with all applicable functions, is that
> possible? What if I need to connect to a S
What do people use to verify the strength of user passwords? Is there
a Python library out there that's good?
I've found python-crack, but that requires cracklib to be installed
on the server and I'd prefer something self-contained.
TIA,
Todd
--~--~-~--~~~---~--~
I'm trying to get my first app/project started on Django. I've created
my first model, but am unable to access the admin site. I continue to
get the error "ImportError at /admin/" "No module named admin"
My hunch is that I have some path misconfigured, since it sounds like
python can't find th
Oh!
Actually, I had read some about the static files, but had not made the
relation between that and serving css and images in development
server. How silly of me!
Thanks for the (boring and not so boring ;-) explanation, both were as useful.
G
On 6/10/06, Frankie Robertson <[EMAIL PROTECTED]>
On Sat, 2006-06-10 at 04:35 -0700, PythonistL wrote:
> Malcom.
> Thank you for help.
> I followed
> http://www.modpython.org/live/current/doc-html/inst-trouble.html
> so i added to my httpd.conf
>
>
> SetHandler mod_python
> PythonHandler mod_python.testhandler
>
>
>
> but whe
Malcom.
Thank you for help.
I followed
http://www.modpython.org/live/current/doc-html/inst-trouble.html
so i added to my httpd.conf
SetHandler mod_python
PythonHandler mod_python.testhandler
but when I
point my browser to the /mpinfo URL
I will get
Mod_python err
On Sat, 2006-06-10 at 03:35 -0700, PythonistL wrote:
> Simon,
> On Apache
> I use
> Apache/2.0.55 (Trustix Secure Linux/Linux)
> mod_python/3.2.8
> Python/2.3.5
> PHP/5.0.5
> mod_perl/2.0.0 Perl/v5.8.7
Since you are using mod_python 3.2.8, have you tried looking at the
output of the helper descri
On Sat, 2006-06-10 at 10:37 +, Giovanni Giorgi wrote:
> Hi all,
> I am building a small blog, based on the code of the wamber website.
> I have a fuzzy problem: when I insert a new posting adding a 'slug' to
> it, then I cannot search for it based on its slug name.
> I am recieving a 'No post
Hi all,
I am building a small blog, based on the code of the wamber website.
I have a fuzzy problem: when I insert a new posting adding a 'slug' to
it, then I cannot search for it based on its slug name.
I am recieving a 'No post found for' error. Sometimes it seems working,
sometime I get an err
Simon,
On Apache
I use
Apache/2.0.55 (Trustix Secure Linux/Linux)
mod_python/3.2.8
Python/2.3.5
PHP/5.0.5
mod_perl/2.0.0 Perl/v5.8.7
Do you think there can be a problem?
Thank you for help
regards,
L
--~--~-~--~~~---~--~~
You received this message because you are
On 10 Jun 2006, at 10:02, PythonistL wrote:
> ImproperlyConfigured: Could not load database backend: No module named
> _mysql. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled
> correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql',
> 'sqlite3'
>
>
> but from Python sh
My settings.py looks like this:
# Django settings for mimiproject project.
DEBUG =True
TEMPLATE_DEBUG = DEBUG
SESSION_COOKIE_AGE=259200
ADMINS = (
# ('Your Name', '[EMAIL PROTECTED]'),
)
MANAGERS = ADMINS
SERVER_EMAIL='[EMAIL PROTECTED]'
DEFAULT_FROM_EMAIL='[EMAIL PROTECTED]'
EMAIL_HOST='loc
Hello Michael,
thank you for help.It solved that problem.
But now it says
File "/home/django_src/django/core/db/__init__.py", line 23, in ?
raise ImproperlyConfigured, "Could not load database backend: %s.
Is your DATABASE_ENGINE setting (currently, %r) spelled correctly?
Available options a
40 matches
Mail list logo