the use of your
user object in your views and templates.
--
+-----------+
| Jason F. McBrayer[EMAIL PROTECTED] |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one
t, but it is basically a minimalistic photogallery app that is
intended to integrate into any django-based site.
--
+-------+
| Jason F. McBrayer[EMAIL PROTECTED] |
| If someone conquers a thousand times a thousand others i
in
the template tags. It is probably best for you to just let the
article page handle form submissions, so it can handle the errors as
well.
--
+-------+
| Jason F. McBrayer[EMAIL PROTECTED] |
| If someone conquers a thousa
yncdb: just modify your local settings.py to point to your database
on your provider, and run syncdb there.
--
+---+
| Jason F. McBrayer[EMAIL PROTECTED] |
| A flower falls, even though we love it; and a weed grows, |
| even though we do not love it.-- Dogen|
--~--~
as simple as possible and do more complex
things on the application side. In this case, it's not too bad; I'll
just have to document it adequately.
Thanks again.
--
+---+
| Jason F. McBrayer[EMAIL PROTECTED] |
|
IA_ROOT, but on the
other hand, I'd like to be as webserver-agnostic as possible.
--
+-----------+
| Jason F. McBrayer[EMAIL PROTECTED] |
| A flower falls, even though we love it; and a weed grows, |
| even thoug
write my own field class for the purpose? Move
the file someplace else in the model's save() method? Use the normal
setup, but lock down that subdirectory of MEDIA_ROOT in the
webserver's configuration? Something else?
--
+------
ibly third-party) apps to use it instead of django
auth.
Let me know when and how I can help on the new-auth branch.
--
++
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If y
n the Floating Sargasso
branch, or to take one of those desperate measures?
--
+----+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
--~--~-~-
required
and redirect them.
Also, if they already had an old session, it will have the default
long expiry time. You may wish to flush the core_sessions table and
see if it's working for you afterwards.
--
+--------+
| Jason F. McBraye
ced by the
second page.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
--~--~-~--~~-
ou probably want to do validation of a field on the page
where the user actually entered it.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't g
that does what you want, rather than trying
to use client-side code to generate stuff to be sent to an existing
view.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy
gabor <[EMAIL PROTECTED]> writes:
> i'll set up something "serious" then there. i think i'll go with the
> lighttpd+fcgi approach.
You can also build mod_fastcgi for Apache 1.3.
--
+-----
en form that they legitimately want to
submit. I know you know that you can't rely on client-side
validation, but I just want to say, you _really_ can't rely on
client-side validation.
--
+--------+
| Jason F. McBrayer
thon interface to HTML Tidy:
Beautiful Soup (http://www.crummy.com/software/BeautifulSoup/) might
also be something to look at for this.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wi
p quite
a few new ways to steal credentials (think about referrers, and about
httpd logs).
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him mor
es memory usage.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
m here,
but it would probably be more work for me to sanitize out the
local-interest-only stuff from the general code than it would be for you
to write your own version -- it's really just a dozen or so lines of
code.
--
+-------
, or periodically by
a grim record reaper but I haven't found that necessary yet.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more
little slow, at least partly because
the whole list must be fetched and updated before set_FOOs() gets
called.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don
No in the entry afaict.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
or taking some other approach?
--
+----+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
edirect. But learning just enough
about mod_rewrite to do the job would probably be less work.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
according to the documentation, which rules
it out for me.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
Also on shared hosting, it is probably a bit less common
than mod_fastcgi (not sure). If the server is dedicated to your django
website, then neither of these is probably a problem.
--
+--------+
| Jason F. McBrayer [
On Thu, 2005-09-08 at 19:21 -0700, Jason Huggins wrote:
> Jason F. McBrayer wrote:
> > Hi. I've more-or-less finished a django app that might be useful to
> > other people
>
> > I'd like to package this for other people in a way that is as convenient
&
after sleeping a little or via a temporary page,
even though you don't know for sure that the job is done? Is it even
safe to use a thread or forked process to do the work?
--
+----+
| Jason F. McBrayer [EMAIL
people expect from a third-party django app by way of packaging?
Just a tarball of the app and templates directory? Install scripts?
README, COPYING, and INSTALL documents?
--
+--------+
| Jason F. McBrayer [EMAIL
ts the stalls, at least for browsers that support gzip
encoding!
I am not, at this time, sure where the problem lies; whether it is in
django's WSGI interface, in flup's fcgi-wsgi adapter, or in Apache's
mod_fcgi.
--
+--------+
models, instantiates objects, and saves
them. Or, of course, you could use the admin interface, but that would
quickly get tedious.
--
+----+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythoc
pt database space which you
can reclaim when it's convenient.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
o
(as I'm using python 2.3):
def view(req):
blah blah blah...
view = util.login_required(blah)
> Anyone point me in the right direction? Or even a breif explanation of
> how django's admin authentcation works might get me going.
I arrived at this solution by looking at th
The "enctype" on the form was
"multipart/form_data" rather than "multipart/form-data". Too much
typing python, I guess ;)
Thanks, all, for the response. As I said, I knew it had to be something
stupid.
--
+--------
eUploadField), but somewhere else, either in my template or my view,
but I am unable to find the problem (so far).
Thanks for the input.
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to m
g, and obviously it shouldn't
be. So what's going wrong here? It's surely something that should be
completely obvious, but somehow I'm just managing to miss it.
--
++
| Jason F. McBrayer [EMAI
On Fri, 2005-08-26 at 13:33 -0500, Adrian Holovaty wrote:
> On 8/26/05, Jason F. McBrayer <[EMAIL PROTECTED]> wrote:
> > > In [1]: from django.models.engulf import feeds, users, articles, categorys
> > > In [2]: c = categorys.get_list(user_id__exact=1)
>
; TypeError: got unexpected keyword argument 'user_id__exact'
>
I've tried a few variations on the keyword argument, and can't seem to
find what it is now looking for. I regenerated the database from the
model (sqlreset) and populated it a bit, just to make sure that wasn'
t are no
> SQL databases.)
I am interested in this as well. I've seen some examples of adding non-
database methods to a model, but nothing that is entirely dissociated
from an SQL database.
--
+--------+
| Jason F. McBrayer
o? Or should this kind of thing be on
the devel list?
--
+--------+
| Jason F. McBrayer [EMAIL PROTECTED] |
| "If you wish to make Pythocles wealthy, don't give him more |
| money; rather, reduce his desires."-- Epicurus |
40 matches
Mail list logo