http://www.teenwag.com/widget
--~--~-~--~~~---~--~~
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
I'm writing some model code which needs to be reusable in several
different applications. I'm running into a lot of name clashing
issues, and need to use related_name to disambiguate relationships.
To accomplish this, I need some way in my model code to find out the
name of the application that
Hi Michael,
On Mon, 2007-04-16 at 22:42 -0400, Michael F. Robbins wrote:
> I have a model with two DateTimeFields, named start and end. As Python
> datetime objects, I'd like to ensure that (start < end) for all valid
> instances of this model. What's the right way to enforce this
> invariant?
On Mon, 2007-04-16 at 19:45 -0700, mamcxyz wrote:
> I'm triying to build a custom admin site.
>
> I'm using the newforms library in 0.97-pre.
>
> DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too
> utf-8 and the html templates are
> .
>
> All the other things work fine
I have a model with two DateTimeFields, named start and end. As Python
datetime objects, I'd like to ensure that (start < end) for all valid
instances of this model. What's the right way to enforce this
invariant?
I tried making a custom Validator object and adding it to
start.validator_list,
I'm triying to build a custom admin site.
I'm using the newforms library in 0.97-pre.
DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too
utf-8 and the html templates are
.
All the other things work fine using old-forms, including the admin
site.
Also,I can load python
On 4/17/07, Nate Finch <[EMAIL PROTECTED]> wrote:
>
> No breadcrumbs so you can go up in the document heirarchy, just a link
> to the root documentation page
Breadcrumbs for the docs page are a reasonable request. Open a ticket
and request them.
> If you go to the root, you'll notice
Thanks for the quick and detailed reply Russ, I'll have a look at the
wiki now.
Regards,
Duncan
On Apr 17, 12:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
>
>
> > Briefly, I have a system set up to manage football teams, with
> >
On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
> Briefly, I have a system set up to manage football teams, with
> fixtures, results, players etc.
>
> How would I go about editing the admin permissions so that User X
> could only edit the fixtures and results for Team X, and User Y could
> only
Briefly, I have a system set up to manage football teams, with
fixtures, results, players etc.
How would I go about editing the admin permissions so that User X
could only edit the fixtures and results for Team X, and User Y could
only edit the fixtures for Team Y? I've looked at the admin
Perfect analogy there James :-)
On Apr 17, 2:09 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote:
>
> > I am new to Django, but am familiar with python. I am also
> > familiar with
> > joomla (formerly mambo), and I would like someone to
No python/django programmers here looking for work?
On Apr 13, 1:29 pm, "sime" <[EMAIL PROTECTED]> wrote:
> I'm looking for a talented local programmer to help with a growing
> workload, on a regular contract basis. All projects in django :-)
>
> Or if you have experience working remotely that
http://www.freemp3sky.com
--~--~-~--~~~---~--~~
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
Am I the only one who has a hellish time trying to navigate Django's
online documentation? (here: http://www.djangoproject.com/documentation/)
There seems to be no good table of contents for what is in the
documentation, and no good way to navigate once you hit a specific
page.
For example, the
I am sure this question has been asked before but haven't been able to
find the answer.
I am using the django decorator for user authentication.
My views has the line
@login_required
And my urls.py has the line
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
It works fine in the
The _checklogin decorator in django/contrib/admin/views/decorators.py
is very helpful - if a user enters an email address as their username,
and authentication fails, it gives a message saying that email
addresses are not allowable as usernames.
In a particular app, I am using email addresses as
I'm doing something pretty similar sounding with jQuery. I wanted to
check for form validation errors via Ajax and do a regular form
submission otherwise.
The JavaScript:
http://dpaste.com/hold/8571/
The Python:
http://dpaste.com/hold/8572/
The code might be a little weird looking. I'm relying
Nice, thanks for the help!
On Apr 16, 2:09 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is it possible to use the {% url %} tag with generic views? Generic
> > views get used more than once in an app presumably, so there would
> > have
We are trying to use them to generate a report where a bunch of
calculations are being made... via a custom sql query... then hand all
of the results back to my django view to display.
After they are displayed...they can be nuked...but the guy working on
this piece told me he couldn't get
On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote:
>
> Is it possible to use the {% url %} tag with generic views? Generic
> views get used more than once in an app presumably, so there would
> have to be some way to narrow it down.
>
> I'm guessing that there might not be a way to do it at this
Is it possible to use the {% url %} tag with generic views? Generic
views get used more than once in an app presumably, so there would
have to be some way to narrow it down.
I'm guessing that there might not be a way to do it at this time,
which is a shame.
On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote:
> I am new to Django, but am familiar with python. I am also familiar
> with
> joomla (formerly mambo), and I would like someone to provide a comparison /
> contrast between Django and joomla please, no hype, just the facts. I am
>
I fixed it. Symbolic link wasn't pointing to the right directory.
--~--~-~--~~~---~--~~
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
Ashampoo WinOptimizer is an easy-to-use suite of tools for maintaining and optimizing your Microsoft Windows® computer. It keeps your Windows® installation free of unnecessary garbage and running smoothly while other computers just get slower and slower.Download: Daha hızlı, akıllı ve kolay -
> I think the behaviour is correct though, why do you want to redefine it ?
If the behavior is indeed correct, then I don't think I need to
redefine it.
It just seemed odd to return a 'not-modified' response to a query for
a page that did not exist.
Apache, when configured with mod_expires,
Thanks for all the suggestions. I'm going to try to work on some of them
this evening and see where it gets me. I'll be sure to let the group know
if I have any "aha" moments that might help others.
-Chris
--~--~-~--~~~---~--~~
You received this message because
I created a link in python/site-packages/django that actually points
to the /home/me/django_src/django. I copied my project from windows
into linux. I will delete *.pyc files and try it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi Harris,
Django is a framework where you can build a CMS, it doesn't come
with this behaviour after installed. You're going to have to make a
"Model" for "Article", code the functions to retrieve them, build each
display page (the html), etc...
The comparision can't really be made,
hi folks,
I have a client wishing to go with Django as a content management
solution
(safe web hosting) and would like to implement the server with MySql.
I am new to Django, but am familiar with python. I am also familiar
with
joomla (formerly mambo), and I would like
http://www.freemp3sky.com
--~--~-~--~~~---~--~~
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
ahh =P I'll try. I'm running with Grokthis.net as server right now,
and I'm relatively new to understanding apache, I'll see what I can
do.
On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
>
>
> > serving directly from apache.
>
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
johnny schrieb:
> I am not sure how to fix this. I reinstalled linux and now manage.py
> has an import problem. Does this mean I have to add django to $PATH?
>
> My ERROR:
>
> [EMAIL PROTECTED] mysite]$ python manage.py runserver
> Traceback
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> serving directly from apache.
Well, I'm out of ideas then :) Probably, you should start putting up
some of your more relevant config information (Apache config files),
because you haven't given too much information to go on.
Jay P.
serving directly from apache.
On Apr 16, 8:25 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey Jay, yeah, I noticed somethign similar to that affect as well. It
> > seems like it does some sort of caching or something, and if it hasn't
>
I am not sure how to fix this. I reinstalled linux and now manage.py
has an import problem. Does this mean I have to add django to $PATH?
My ERROR:
[EMAIL PROTECTED] mysite]$ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 2, in ?
from
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> Hey Jay, yeah, I noticed somethign similar to that affect as well. It
> seems like it does some sort of caching or something, and if it hasn't
> cached in a while it takes a while to load. I'm running mod_python,
> so I'm often reseting the
Hey Jay, yeah, I noticed somethign similar to that affect as well. It
seems like it does some sort of caching or something, and if it hasn't
cached in a while it takes a while to load. I'm running mod_python,
so I'm often reseting the server so that my code changes go through.
As for serving
hi scanner,
i hope i understood correct...
i have an newsitem apps with comments, the comments are paginated by
50.
this is my get_absolute_url() for the comments:
def get_absolute_url(self):
comment_ids = [c.id for c in
self.newsitem.comment_set.iterator()]
> When I enable etags, django is sending back an etag on 404 pages.
> When a client does a subsequent request for the same nonexistent
> page, a 304 response is sent back, because the page has not changed
> (based on the etag).
>
> When I disable etags, multiple requests for a non existent page
Thanks xav, I thought that the answer might involve both caching and
Ajax but I wasn't sure how. I'm not familiar with either so I'll need
to go through the documentation. Do you know where I can find some
good examples of using these?
Tim
--~--~-~--~~~---~--~~
> Is there a way to force the db connection to stay open if you are
> excecuting raw sql that is creating a temp table? When the connection
> closes...the temp tables go away.
>
Temp tables are meant to be temporary. You can't guarantee, even with
persistent db-connection pooling that the same
> The actual code is here -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop...
and the save function starts at line 150.
I had a look and was wondering about the
self.clean_data['other_field'] references within various clean_x
methods. I thought, perhaps cyclic references
42 matches
Mail list logo