's a pointer for
the browser to a named anchor tag
--
Brett Parker
--~--~-~--~~~---~--~~
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.co
e error. How can I set this path, and where are stored django.db modules
> defaultly on linux ?
Are you running python directly and then importing django? It might be
better to do:
python manage.py shell
from the applcation directory.
Thanks,
--
Brett Parker
--~--~-~--~~---
"click" on them which is rather handy.
I'm using it to monitor a few sites (not, unfortunately, written in
django), and it is rather nice being able to just click round the place
and get data out again when needed. Mechanize + BeautifulSoup is
a very nice combination indeed.
Th
)
Then you can do what you like with that content.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
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@googlegrou
t cookie (maybe,
say, a day), and delete that cookie in the case of them actually logging
out rather than their login timing out.
Should be fairly easy to do from the login/logout views.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message be
s empty, do:
export LD_LIBRARY_PATH=/path/to/the/oracle/libraries
And then try starting the server.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
provements are
> in 1.0.2, though. So that's the point to aim for.
At which point, he can probably just install the .deb from the debian
lenny repository (Chris Lamb has been really on the ball in getting the
releases through recently, and many thanks to him!).
h
rt permissions and
> with the admin app installed. The public-access version uses a different
> settings file with a read-only DATABASE_USER and doesn't have the admin
> app in the INSTALLED_APP list.
Doesn't that mean sessions would be broken, though? Public website
without write acces
eck if that's installed with:
dpkg -l python-django
)
Also, if that is the version that is installed, it'll be in
/usr/share/python-support/python-django
Hope that helps,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you
for the first one but
> the next add gives me
> ((('john','adams'),('sam','smith')),('john','doe'))
>
>
> If I do this PEOPLE += ('john','doe') I get a string
> (('john','adams'),
question }}
>
> {% if error_message %}{{ error_message }}{%
> endif %}
>
>
^^^ the action there should probably be /polls/{{ poll.id }}/vote/
(but that's not very pretty).
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this mes
age, then I'm sure the custom validation will
make sense.
Thanks,
--
Brett Parker
--~--~-~--~~~---~--~~
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
kages have django-admin, not
django-admin.py on the path, as that binary is copied to /usr/bin and
the policy says that binaries in there should not include the extension.
Thanks,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are sub
soon?
> When? Or, what is the matter of it?
Well, a password field isn't actually a different type of data than a
text field, so you'd usually just override the form's default for the
password field, using a modelform to specify that you want it to
On 10 Nov 21:10, Shu Hung (Koala) wrote:
> On Tue, Nov 10, 2009 at 8:55 PM, Brett Parker
> wrote:
>
> >
> > Well, a password field isn't actually a different type of data than a
> > text field, so you'd usually just override the form's default for th
the url
should work, i.e.
background-image:
url(file:///home/lucak904/Scrivania/Luca/Webframework/Jacopo/genova_3.JPG);
Thanks,
--
Brett Parker
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
>
> --
> 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
> django-users+unsubscr...@goog
'upstream proxy
> server' that nginx mentions in the 'bad gateway' message is my apache
> instance. But so far have not been able to check out whether it is down,
> because by the time I get the message from my client the site is up again.
Erm, would you like to rea
#x27;t what you wanted it to do.
Are you saying that the phone can't read unless Content-length is set?
You might be able to do that with some middleware, infact, it appears
that you can just use the ConditionalGetMiddleware to add the
Content-length header.
http://docs.djangoproject.com/en/d
img.src = '/images/schematics/SKU' + suf + '.jpg';
> }
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
On Fri, Jul 13, 2007 at 11:48:50AM +0100, Nic James Ferrier wrote:
>
> Brett Parker <[EMAIL PROTECTED]> writes:
>
> > On Fri, Jul 13, 2007 at 11:18:18AM +0100, Nic James Ferrier wrote:
> >>
> >> Derek Anderson <[EMAIL PROTECTED]> writes:
> >
zer = HTMLSanitizer('utf8')
sanitizer.feed(content)
output = sanitizer.output()
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
aintainer" field.
The packaging just uses python support - there's nothing clever going on
there - the only thing we (me and raphael, my sponsor for that package)
do is rename django-admin.py to django-admin and drop it in /usr/bin for
convienience. (Oh, and change
; extensions like .py on commands.
Absolutely correct:
http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts
Because the django-admin script is put in to /usr/bin, it needs to
follow Debian policy! However - for the people that *really* want to use
django-admin.py, you can d
On Mon, Aug 06, 2007 at 11:08:08AM -0700, john wrote:
>
> On Aug 6, 9:48 am, Brett Parker <[EMAIL PROTECTED]> wrote:
> > On Mon, Aug 06, 2007 at 06:07:16AM -0700, john wrote:
> >
> > > On Aug 5, 10:46 pm, "James Bennett" <[EMAIL PROTECTED]>
American and had oil... (of course, we don't all believe
that, but lets just change from "the American way" to "the sane people's
way" for clarity purposes and such...)
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message be
/module-urllib2.html
Which let you do GET and POST really quite nicely (and also have the
value added bonus of letting you use Cookies if you need them!)
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
/py as a holding
place for python libraries... I'll also hazard a guess that it's not
holding much other than the django directory at the moment. Try doing:
cd /home/ktb/py
touch __init__.py
and then try again.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~--
ompiling it with MSVC, or
using it in Cygwin.
Hope that helps,
--
Brett Parker
_ .. Xapian: http://www.xapian.org/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
e dos2unix on your linux box... at
which point you just do something like:
find . -type f | xargs sed -i -s -e 's#\r$##;'
HTH, HAND,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
t;return", short for carriage
return).
But I'm sure you knew that really ;)
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send emai
as
> Forest Bond points out, django-admin is in a shell-executable path.
Yup - because debian policy dictates that things in /usr/bin should
*not* have an extension telling you which language they're implemented
in (*waves* as the debian python-django
dit
/etc/postgres/pg_hba.conf (or similar location) and you might need to
add your user - if it's prompting for a password then the only way I
know of getting round the password issue is to specify it as the
environmental variable PGPASSWD.
Hope that helps,
--
Brett Parker
--~--~
f Django
> installed at any given time, that's also a nice way to switch
> between them for testing.
That's the better reasoning for not using the packaged version, if
you're supporting multiple different sites against different versions of
django.
Cheers :)
--
Brett Parker
--
ould be able to pull in that and
only that from the experimental repository. The latest snapshot was
r7047 (thanks Gustavo).
Thanks,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
to
> adopt more than one new technology at a time, but I got no choice,
> gotta plunge in...)
>
> On Feb 1, 6:22 am, Brett Parker <[EMAIL PROTECTED]> wrote:
> > There are svn snapshot packages available from the debian experimental
> > repository, with some pinning you
On 01 Feb 08:00, bobhaugen wrote:
>
> Thanks again, Brett.
>
> On Feb 1, 7:45 am, Brett Parker <[EMAIL PROTECTED]> wrote:
> > If you're just wanting to run the latest trunk then you can just use an
> > svn checkout and add that in to PYTHONPATH on the comma
> /cart/save
> /cart/details/item/qty/save =P haha yea, I'm reaching here on the last
But then you'd just write a dispatcher, surely!
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
is to setup the api stubs required
by the appengine libraries if they have not already been initialised by an
appserver.
"""
So, that'll be a no then :)
(ref:
http://code.google.com/p/google-app-engine-django/source/browse/trunk/appengine_django/db/base.py)
Cheers,
--
B
t; without a database needed?
You'll be wanting a database, that's where the models store their data.
If you don't want anything too complicated, sqlite would probably be the
easiest to set up (depending on what OS you're using etc).
Thanks,
--
Brett Parker
--~--~-~
> afaik no
I assume that you're reading <= as less than or equal to, as any sane
person would... I think they meant >= 2.3 ;)
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
gt; not /srv/vhosts/myhost/site/site!
>
> Is there anything I can do about it?
Try...
su -c "PYTHONPATH=/srv/vhosts/mysite/site \
DJANGO_DB_NAME=dbname DJANGO_DB_PASS=dbpass \
DJANGO_DB_USER=dbuser DJANGO_SECRET_KEY=secret \
/srv/vhosts/myhost/site/manage.py runfcgi daemonize=fal
r. But how do I get user's ID after new_user = form.save()? Get
> the latest user?
After the save, the new_user object should have the id. It should be the
user object that was just saved.
hope that helps,
--
Brett Parker
--~--~-~--~~~---~--~~
You receiv
, not tabs.
> The community tends to write with spaces, not tabs. The PEP says not
> to mix the two, and if a mix happens, convert all your code to use
> spaces, not tabs. So be wary if you ever plan on plugging someone
> else's Django application into your project.
>
>
ple with broken mail clients that also keep
prepending Re: then those 14 characters become very important - my
terminal is usually only about 80 characters long, most of the time I
can only see around 20/25 characters of the subject line, I'd really
rather that they were al
r
> messages based on 'To: django-users@googlegroups.com'.
List-Id:
^ That's a better header to match on, IMO, then if the list is
CC'd/BCC'd you'll still have the mail sorted in to the right folder
(it's how I sort all list traffic).
st': list,})
>return HttpResponse(t.render(c))
>
I'm not sure what you've got imported, but the Context should have a
C... from my views I have:
from django.template import Context, loader
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~
/(?P.*)/$
>8. ^categories/$
>9. ^categories/(?P\d+)/$
>
> The current URL, /categories/1/k/, didn't match any of these.
Errr, well it won't, the closest is 9... but you'd need something more
like:
^categories/(?P\d+)/(?P\w+)/$
Cheers,
--
Brett Parker
y rather interesting:
http://www.xapian.org/
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
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@googlegroup
Any further info would be appreciated.
Looks like you're missing the C library behind MySQLdb, check that you
have python2.5-mysqldb installed.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Err, why not use a random sort as...
Obj.objects.order_by('?')
ref: http://www.djangoproject.com/documentation/db_api/#order-by-fields
That way you don't use all the memory in the world, and you're letting
the datab
rm with a whole bunch of files to remove, and
so rm gets run less often, which is good. Less processes are the way
forwards!
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
On Mon, May 22, 2006 at 10:58:22AM -0500, Adrian Holovaty <[EMAIL PROTECTED]>
wrote:
>
> On 5/19/06, Josh Trutwin <[EMAIL PROTECTED]> wrote:
> > According to the docs, serving the css in the admin is best done
> > via:
> >
> > 1. Create a symbolic link to the admin media files from within your
>
On Wed, May 24, 2006 at 07:18:06PM -, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> I know...
>
> I have the option to get Linux as a fallback.
Shouldn't ever be a fallback, it should be the primary choice - unless
you're fond of having your webserver compromised... (speaking from
exper
set of pages on your own site that could say anything...
have you got any references *outside* of your own domain that say that
you're not a troll and that your troll like tendencies are over? Or are
you just expecting it to be taken on faith?
"Thanks",
--
Brett Parker
--~--~---
nt
to ignore the thread.
(3) If you actually want to provide a useful reference, provide
a useful reference rather than calling the target audience
"Incapable Species"
Also, it appears that your web design skills suck, and the menu on tha
7;, d)
Sounds more like something to use Middleware and ContextProcessors for
to me. Use the Middleware to add it to the request, then the context
processor to make it accessable in the templates. AIUI all of the
generic views and render_to_response use RequestContext rather than
Request, so you should
and dev instances that
have the right settings in. I'm currently using this style setup for a
project, seems to work quite well, even using sqlite3 on the dev server
and postgres on the live server.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received th
>
> My application needs a list of "active" rates (those rates that are in
> use by an active Card). Here is my query:
>
> Rate.objects.filter(rateset__card__active_exact=True).distinct().values('countryfrom')
ite the
file nicely. Unfortunately I never found a way to do it without shutting
down the server accessing the file in windows.
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
that takes the
input, throws it through feedparsers sanitizer, and checks the output
against the input raising a validation exception in the case that they
don't match - seems to work quite well!
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this
>>
> >> I want to mantain a nightly .deb build from django svn, to help
> >> the poor (tm)
> >
> > There is a packaging guide in the included help (System --> Help -->
> > first item there) as well as on-line on <https://help.ubuntu.com/>.
>
s - but then I am
using it in a minorly manual way using a legacy database from another
project - it runs quite a lot nicer than the tcl that was querying it ;)
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I want is nested loops :
>{% for s in p.schedule_set.all() %}
> {% for v in s.visit_set.all() %}
Don't use the ()!
Cheers,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&
,
'pages': {
'nextpage':
paginator.has_next_page(page),
'nextpagenumber': (page + 1),
'previouspage':
paginat
e() was ousted as part of MR - so, surely you're just using
an overridden save() method?
_pre_save() shouldn't work (should it?)
http://www.djangoproject.com/documentation/models/save_delete_hooks/ is
the current way to do that ;)
Cheers,
--
Brett Parker
--~--~-~--~~--
;d guess setting SESSION_COOKIE_NAME in one or both to be something
other than sessionid would solve it.
Thanks,
--
Brett Parker
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
w other folks are doing this.
I'm just building and installing new debian packages - then manually
fixing the backward incompatabilities.
Cheers,
- --
Brett Parker
web: http://www.sommitrealweird.co.uk/
email: [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Vers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bill de hÓra <[EMAIL PROTECTED]> wrote:
>
> Brett Parker wrote:
> > Bill de hÓra <[EMAIL PROTECTED]> wrote:
> >
> >>>How are you guys managing Django deployments? I'm tending towards upload
> >&g
Hi all,
Attached is a patch against current svn (applies to 0.90 also), that
automatically sets TIME_ZONE and LANGUAGE_CODE according to the hosting
system.
Cheers,
--
Brett Parker
web: http://www.sommitrealweird.co.uk/
email: [EMAIL PROTECTED]
Index: django/core/management.py
there was a typo in the last patch - sorry!
--
Brett Parker
web: http://www.sommitrealweird.co.uk/
email: [EMAIL PROTECTED]
Index: django/core/management.py
===
--- django/core/management.py (revision 1298)
+++ django/core
any way, shape, or form change the ability to edit
settings.py.
Have you got a different suggestion for how this should be set? Maybe it
would be good to be able to give a whole metric full of options to the
django-admin.py utility?
Thoughts?
Cheers,
- --
Brett Parker
web: http://www.som
or wasn't (as such) POST variables as
the Model data that had been passed through (I was talking to him in IRC
in another place), which is as simple as self.fieldname.
Thanks,
--
Brett Parker
On Mon, Feb 20, 2006 at 10:36:38PM +, Graham King wrote:
>
> You could make the form invisible using css:
>
> #theFormId {
>display: none;
> }
>
> then use Javascript to change this to display = block. If they don't
> have Javascript the form won't appear.
>
> Or you could use J
entirely
spidarable, and there's plenty of software out there that will parse web
pages and download all content, and follow links, etc.
Cheers,
--
Brett Parker
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On 23 Mar 12:04, Tom Evans wrote:
> On Fri, Mar 23, 2012 at 12:00 PM, Brett Parker
> wrote:
> > On 23 Mar 04:38, Bastien wrote:
> >> Sorry maybe my post was not very clear, I am talking about public content
> >> here, that should be accessed by anyone, even anony
Response object.*
>
> Someone can help me? What am I doing wrong?
Well, you're only returning something if it's a POST, if you're just
visiting the URL then you'll be getting a GET request, which, erm, you
don't appear to have coded for...
--
Brett Parker
--
You r
/bin/sh: 1: /usr/lib/python2.7: Permission denied
> I have done chmod 777 - R /usr/lib/python2.7 but still this error prompt
> please help.
> thanks in advance.
Wel /usr/lib/python2.7 is likely to be a directory, so you're
trying to execute the directory...
Maybe you want
learly there are
> webservices out there that send emails from any account to any
> account, without credentials.
To a limited extent - also don't forget that the envelope sender and the
from header are different.
> What am I missing here?
Mostly that gmail *will not* allow you to send
like that) on authenticated smtp - the
only way you could do it is by going through a third party server that
does not rewrite the from header, and have the mail submitted to google
from there.
--
Brett Parker
--
You received this message because you are subscribed to the Google Groups
"Dj
On 26 May 08:27, Vladimir wrote:
> Is there a tool to transform MS WORD file into HTML ? I know there is
> markdown and textile, but I would prefer MS WORD.
http://wvware.sourceforge.net/
--
Brett Parker
--
You received this message because you are subscribed to the Google Groups
&
to be v4 only for backwards compatibilty reasons,
GenericIPAddressField covers both, so in theory I've got no problems
with that, other than it making IPAddressField backwards incompatible
which seems silly at this point, and I'd be recommending people to be
using GenericIPAddressField anyways
{% for x in akt|slice:"-1" %}
{{ x }}
{% endfor %}
Maybe quicker.
--
Brett Parker
--
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 unsubsc
be suprised if you got many applicants that
could actually fulfil your "requirements" for what you're offerering vs
what you expect.
(also, this is not, as far as I'm aware, a jobs list.)
Thanks,
--
Brett Parker
--
You received this message because you are subscribed to the G
On 24 Jan 09:28, Russell Keith-Magee wrote:
> On Fri, Jan 24, 2014 at 9:12 AM, Brett Parker
> wrote:
>
> >
> > (also, this is not, as far as I'm aware, a jobs list.)
> >
>
> It is - as long as the jobs are relevant.
I sit happily corrected :)
> It'
85 matches
Mail list logo