Look into using a queue system of some form. Django-queue-service
(http://django-queue-service.googlecode.com/) was developed to enable
this but there's similiar mechanisms in use through many sites. Either
developed internally, or using heavier-duty queuing mechanisms.
-joe
On Mon, Jul 7, 2008
If you're talking about changing the display name in the
administrative interface, there is the option of setting "verbose
name" - see http://www.djangoproject.com/documentation/model-api/#table-names
for more information. You can also change the database table name
associated with the model objec
Hey Kless,
I think you need to be a bit clearer on your question. What are you
trying to accomplish?
On Sat, May 31, 2008 at 11:47 AM, Kless <[EMAIL PROTECTED]> wrote:
>
> How to show only any tables to any users -as to the visitors-?
> >
>
--~--~-~--~~~---~--~~
what's MOSSO?
On Tue, May 6, 2008 at 12:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Has anyone got it to work? Maybe with a hack or two?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
I've been using urllib2 very effectively - do be careful with it
though - assuming you're planning on using it in view code - the time
it spends waiting for something is the time that your user spends
waiting.
-joe
On Thu, Apr 17, 2008 at 4:31 PM, Russell Keith-Magee
<[EMAIL PROTECTED]> wrote:
>
You can certainly hide this additional complexity with your
application either using Django as a pass through or configuring up
something with a reverse proxy in Apache or such. There's no reason
that I can think of that the complexity of maintaining a queueing
system for asynchronous processing w
The docs at http://www.djangoproject.com/documentation/i18n/ really do
outline what you need to do. make-messages.py can take a little
tweaking to work properly under Win32 (i.e. instead of invoking
./make-messages.py you invoke python make-messages.py), but it all
works quite smoothly.
-joe
On
that feature." can get a bit tiresome.
>
> In terms of updating, its (for me) as easy as going to the directory and
> running git-svn fetch (or most probably in your case: svn up ).
>
> -justin
>
>
> On Tue, Mar 25, 2008 at 1:26 PM, Joseph Heck <[EMAIL PROTECTED]> wr
It's more than a file - it's more like a directory :-)
If you're new to django, you might find it a lot easier to start with
the release version. The trunk has been reasonably stable lately, but
there's no promise that it will remain so - and you might find
yourself in a bind if you loose track o
Absolutely - the "making a seperate DB" is all wrapped in
"django-admin.py test" or "./manage.py test" - which does a number of
things for you. You don't have to use that at all - and just running
standard python unit tests will work against your system. You'll need
to set up your environment to u
Python has a number of good date/time packages that you can use to do
this... why don't you look into one of those.
-joe
On Tue, Mar 25, 2008 at 12:53 AM, soe <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I would like to check the current day on the django not on html, mean
> today is monday or t
For something as specific as MacOS X based hosting, that's a damn good price.
-joe
On Mon, Feb 18, 2008 at 7:35 AM, Dj Gilcrease <[EMAIL PROTECTED]> wrote:
>
> On Feb 17, 2008 3:12 PM, Flavio Curella <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I developed a small application using django
Austin,
There's an excellent overview of the how's and why's of Middleware at
http://www.djangoproject.com/documentation/middleware/
Fundamentally, you're just specifying a class that you've implemented
somewhere. It can be in a folder or not - that's just matching
python's module structure to t
Mark was also the one who got me working it. :-) At OSCON 2007 as well...
On Feb 16, 2008 12:47 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> On Sat, 2008-02-16 at 12:43 -0800, Joseph Heck wrote:
> > The link to Gordon's page is much nicer than the hackery I d
There isn't a visual interface for creating new fields, but don't let
that stop you. It is really very straight forward and well documented.
If you don't own the printed version of the django book, I'd recommend
hitting their web site and reading or at least glancing through
Chapter 5 (http://djan
Johan is right on - it sounds like all you need to do it get
django-admin.py on your path.
-joe
On Feb 16, 2008 7:35 AM, Johan Liseborn <[EMAIL PROTECTED]> wrote:
>
> On Feb 16, 2008 1:46 PM, doNascimento <[EMAIL PROTECTED]> wrote:
> > I'm on mac OS X (10.4)
> > Installed the official release (0
The link to Gordon's page is much nicer than the hackery I did some
time back, but I thought I'd pipe in with a comment that the
WSGIServer from CherryPy works very nicely. We've embedded it into our
Django Queue Service project (I yanked the WSGIServer directly -
didn't need the rest:
http://code
Need just a little more information...
First - what platform are you working on? Second, how did you install django?
It might be as simple as needing to set some execute permissions
(linux or Mac), bind .py to a specific program (win), or just have you
invoke "python django-admin.py" to work aro
I'm always willing to take suggestions. We've expanded on the basics
in the "unstable" branch - mostly focusing on adding a pure REST
interface, which Rajesh has done a wonderful job with. It does have
it's own settings when using it standalone - it's a pretty straight-up
Django application that w
gt; creating a empty directory or by cloning an existing one. When
> cloning a repo, after saving, a post_save signal calls mercurial's
> hg.clone function, and the screen waits until this is done, which can
> be a while for larger repos, or one on slower servers.
>
> I
Sorry for the lack of docs - I think we've all been focused elsewhere,
and the project is being somewhat quiet right now.
Do you want to integrate it into your application directly, or use it
as a standalone critter? What kind of information on using it would be
most useful to you?
I've got some
Definitely take that specific dynamic page and profile it - see what's
happening and why its slow. That's clearly your first bottleneck to
work on from the data you've provided.
There's a wiki page on that very process here:
http://code.djangoproject.com/wiki/ProfilingDjango and there's
additiona
Add on to Rajesh's list -
what pages are you requesting and have you profiled them to understand
what's taking long?
-joe
On Dec 11, 2007 10:08 AM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
>
> Hi Richard,
>
> >
> > When I stress test the dynamic part of the site, I am only getting about
> > 300
running the media off a non-standard port without a front-end proxy to
make it "look" like it's coming from somewhere on Port 80 may get you
some trouble. In particular, we found that a lot of folks behind
firewalls and in corporate environments simply didn't get anything on
the media server *unle
I'd recommend something along those lines - otherwise they'll hit you
hard and keep coming!
-joe
On Dec 5, 2007 4:50 PM, Darryl Ross <[EMAIL PROTECTED]> wrote:
> Hey All,
>
> One of the websites I run has started getting spam via the contact form.
>
> What is the recommended way of dealing with
Hey Chris,
How did you install the MySQL/Python library? Did you use MacPorts? A
pre-made binary?
On 10/30/07, crudolph <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I was able to get django/python running via mod_python under the
> apache2 installation under Leopard (MacOS X 10.5). However once I
> st
The "choice = " is getting evaluated as a class, and the self.q_prime
is referring to an instance of the class myForm. At least I think
that's what's happening here...
-joe
On 10/16/07, johnny <[EMAIL PROTECTED]> wrote:
>
> Below is my form class. Inside myForm, I tried doing this:
>
> choice
On 10/16/07, David Larlet <[EMAIL PROTECTED]> wrote:
> 2007/10/15, Joseph Heck <[EMAIL PROTECTED]>:
> >
> > Hi David,
> >
> > If you'd be willing to indulge me, why doesn't DQS doesn't fit your
> > requirements? I'd love to have
Hi David,
If you'd be willing to indulge me, why doesn't DQS doesn't fit your
requirements? I'd love to have some explicit feedback on where it
could be improved to match your needs. And yes, I know there's a LOT
of places where it could be improved... :-)
-joe
On 10/15/07, David Larlet <[EMAIL
Get an instance of the model and call getValue() on it.
i.e.
my_model_instance = myClass.objects.get(pk=12)
my_model_instance.getValue()
-joe
On 10/4/07, Goon <[EMAIL PROTECTED]> wrote:
>
> probably a dumb question, what's the syntax for calling a method in
> models.py from views.py?
>
> so li
ight" way to send an encrypted message with GPG is, but that
might be something of use...
-joe
On 10/4/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> Nothing built in - You're going to have to head towards the low-level
> libraries to make this happen.
>
> -joe
&
Nothing built in - You're going to have to head towards the low-level
libraries to make this happen.
-joe
On 10/4/07, Francis <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I need to send an email with a encrypted part in it. Is there a built-
> in way to do this in python or django (since it is a dj
ument 2 of âPyErr_SetStringâ from
> incompatible pointer type
> error: command 'gcc' failed with exit status 1
> --------
>
>
You're on the right track - missing the MySQL python libraries. It
looks like Python is also missing the zlib libraries...
not sure which OS you're using, but there's probably an "apt-get
install ..." or "rpm -Uvh ..." command that will get you the MySQL
Python libraries that you need. Looking on
just modify sys.path as you need...
On 10/3/07, Xan <[EMAIL PROTECTED]> wrote:
>
> In http://code.djangoproject.com/ticket/5534 there is a howto for
> doing that.
> But it's only when the script is in the root project directory.
> What happens if we want the script in other location? What line we
Narrow this down and you should be able to work through it.
First - is the view getting invoking correctly, regardless of what
newforms is doing? If you're running on a dev server instance (i.e.
django-admin runserver), then try printing out the request.POST or
request.GET in the view to see what
Yes, absolutely.
You have all the form data in the request object that comes into the
view - you can use that to tweak data and send off another request
externally. It's relatively high latency, but it definitely is
possible.
-joe
On 10/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I d
Right on - a better solution if you're keeping it all in the same server!
-joe
On 10/1/07, Marty Alchin <[EMAIL PROTECTED]> wrote:
>
> On 10/1/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> > You could do it by having your view act as a proxy. Basically
> >
You could do it by having your view act as a proxy. Basically
instantiate a new connection to the view in question from your web
application using urllib2 or the like. Then get the results, process
them as you wish, and send the results of that post-processing (if
any) back to the original client
Django has an excellent starter tutorial at
http://www.djangoproject.com/documentation/tutorial01/ that should get
you started with what you're asking and want to know. Do the tutorial,
it's worth it.
-joe
On 9/23/07, mayank bhargava <[EMAIL PROTECTED]> wrote:
>
> How to use html or how to creat
You can certainly access cookies manually and do with them as you
like. That's how we've implemented a "remember who it was that last
logged in from this computer" kind of feature.
There's a set_cookie() method on the request object that can do this
work for you - but it's not thoroughly document
e out Django horizontally to
achieve the scale you need.
-joe
On 9/18/07, yezooz <[EMAIL PROTECTED]> wrote:
>
>
>
> On Sep 18, 10:23 pm, yezooz <[EMAIL PROTECTED]> wrote:
> > On Sep 18, 10:14 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> &g
two words: intelligent caching
Know what you're asking for commonly, and cache it up with memcache.
That will do you a world of benefit.
-joe
On 9/18/07, yezooz <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> I'm sure many of you run high traffic websites in Django and I'm very
> curious how you're
You get to decide the version of "safe" - i've done something similiar
with a little REST queuing app and run it up to fairly significant
loads without issue.
-joe
On 8/28/07, Justin Johnson <[EMAIL PROTECTED]> wrote:
>
>
> I've managed to get Django working nicely with CherryPy using WSGI.
> Pr
To answer your specific question about can Django handle 100 page
hits/sec, the answer is yes. Like any other technology, how you
achieve that scale depends on a lot of things other than just the
framework.
There's a nice (but not detailed) interview about Pownce at
http://immike.net/blog/2007/07
Use the path settings from my earlier post - that fits perfectly with
MacPorts and should do you.
-joe
On 8/26/07, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I scrapped my custom install of Python 2.4.4 and Django in favor of an
> install from MacPorts. So, now I have Python
For anyone interested, I've made available the code (using Django) to
a project that implements a message queue for use with Django (or
anything, really) projects. The brilliantly conceived name is "Django
Queue Service", and the source is available at
http://django-queue-service.googlecode.com/.
It is most likely an improper reference in django-admin.py to the
location of python - or the "wrong" python.
If you invoke python in your terminal, which do you get?
BTW: I used the MacPorts install of Python, and I keep the following
in my .profile:
export PATH=/opt/local/bin:/opt/local/sbin:
common problem, but a pretty straightforward solution. You can run a
script via cron that imports and uses Django bits as you like - we do
that quite often. Just make sure you have your environment set up
appropriately when you invoke the script - adding in the proper
PYTHONPATH and such.
-joe
O
What platform are you trying to install this onto?
-joe
On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote:
>
> Ok, I've used memcached for quite some time with PHP sites and that
> was rather easy.
>
> Now I see you can use it with Django, but to get memcached support you
> need to either install
There was a very impressive demonstration of SOLR at OSCON this year,
and it looks very, very easy to set up for light(i.e. reasonable but
not-heavy) usage. The default install comes pretty much ready to roll
- you'll have to tweak out a "schema" description of what you're
indexing, and work on a
If you want something that lasts longer than a session (for how-ever
you configured it on your system), then you might consider writing
your own cookie, and checking for it at the relevant places. I don't
use this mechanism for authentication, but as a little additional
personalization touch to re
The middleware is loaded by whatever is serving your requests, and
when it loads it'll process through that file - invoking "foofunc()"
in the path and executing it.
I'm not sure I understand your second question though.
-joe
On 7/31/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> Hi Thomas
>
> >
A side conversation from the Django BOF at OSCON this year made some
noises about "TheSchwartz" (http://code.sixapart.com/trac/TheSchwartz)
- a Perl job queue that SixApart (Brad FitzPatrick) has made
available. I'd heard there were now Ruby and Python bindings to it,
but I haven't found the relev
We pre-process the search query with our own simple code, converting
"and" and "or" and verifying that the resulting query is acceptable.
Ultimately, we fall back to a method that just checks against TSearch2
itself to verify the query is "OK":
def _validate_query(querystring):
""" validates
You can optimize a bit for Google as well by implementing a sitemap
(see: http://www.djangoproject.com/documentation/sitemaps/)
-joe
On 7/13/07, felixhummel <[EMAIL PROTECTED]> wrote:
>
> Thanks for this fine answer, Julio!
> Now nothing is going to hold me back! ;)
>
> On Jul 13, 8:22 pm, "Juli
Hi Sreelatha,
When you say "send a messae to multiple users", do you mean display a
message on your site to a set of users?
There's a couple of different ways to attack this kind of problem -
but the easiest is to have a view that queries a storage place (likely
a model) and displays any message
Where are you getting stuck? I assume you it works - it's just a
matter of getting the pieces/parts installed.
-joe
On 7/8/07, surfwizz <[EMAIL PROTECTED]> wrote:
>
> I am having trouble installing Django on Mac OSX 10.4.10. Any help
> would be welcome. Thanks!
>
>
> >
>
--~--~-~--~--
I'm not 100% sure I understood what you were asking.
-joe
On 7/8/07, Gianluca <[EMAIL PROTECTED]> wrote:
>
> Thanks...but in my case?
> I have thought to extends the "change_form.html" generic template. But
> how can I refer to a field of my data model? ( book nam
I think most everything that you'd like to know is detailed out at
http://www.djangoproject.com/documentation/i18n/
-joe
On 7/6/07, Gianluca <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I'm following the Django tutorial about books application. How can I
> internationalize this application?
> For exa
my JSON and name is its one of the values present in that
> list) then it doesnt get recognized, is gives me Type mismatch error , is
> there any conversion or decode i need to do ?
>
>
> On 6/20/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> >
> > If I understa
Ahhh! Thanks, didn't know (obviously) about that one!
-joe
On 6/21/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
>
> Actually, type is a function, not a method.
> type(x) == x.__class__
>
> Regards,
> Aidas Bendoraitis aka Archatas
>
>
> On 6/18/07,
I've been using FusionGraphs (flash based graphing, generating the
"data" through XML templates) with good success. It's not directly in
python using PIL or anything, but it's been quick and effective.
-joe
On 6/20/07, Gerry Steele <[EMAIL PROTECTED]> wrote:
>
> i was wondering if anyone had any
If I understand correctly, that sounds reasonably doable - what is
your question? Taking JSON from whatever source and generating a form
in HTML is pretty much straight javascript and/or templating.
-joe
On 6/20/07, cess <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>I am very new to the Django fra
x = '123'
x.__class__ will give a reasonable answer, x.type() doesn't. (Python 2.4)
If you can get away with using type(), it's probably a lot cleaner to use...
-joe
On 6/18/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
>
> or type()
>
> On 6/7/07,
I don't know about Gabor, but I actually use it in a dashboard view on
my site to know what version of the software is deployed at any given
time. Very handy that way.
-joe
On 6/15/07, Udi <[EMAIL PROTECTED]> wrote:
>
> Mind if I ask why?
>
> Udi
>
>
> >
>
--~--~-~--~~~-
generally invoking "svnversion" is the easiest way to get this.
i.e.
"svnversion ./trunk" return the subversion version # for the directory "trunk".
-joe
On 6/15/07, David Reynolds <[EMAIL PROTECTED]> wrote:
> Gabor,
>
> On 15 Jun 2007, at 9:18 am, Gábor Farkas wrote:
>
> >
> > hi,
> >
> > in
Just so you're aware - switching from a Web Start application to
Django is a fairly significant change in how you attack some problems.
With WebStart, you have a full user interface API with Swing (or
whatever you're using) running in it's own JVM, and in Django you're
pushing this all into a brow
That kind of mechanism doesn't exist within Newforms. If you want to
display a representation of an model object, you're better off looking
at generic views for that sort of functionality.
-joe
On 6/13/07, eXt <[EMAIL PROTECTED]> wrote:
>
> Hello
>
>I use new forms library in my application
Has anyone investigated or used Spread (spread.org) as a messaging bus
between systems, either using Django or not?
I am looking for something to transport messages between systems -
basically a message queue mechanism. Spread seemed like it might do
the trick, and has some reasonable python libr
Nothing built in to Django enables that - you have to do it externally
to the Django framework.
On 6/7/07, Warvin Barker <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I can set up fulltext indices via MySql directly, but is there a way to do
> this in models.py?
>
> Thanks!
>
> -Warren
>
> >
>
--~--~-
.__class__
On 6/7/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote:
> how can I know insede a method the type of my class dynamicaly?
>
> --
> Lic. José M. Rodriguez Bacallao
> Cupet
> >
>
--~--~-~--~~~---~--~~
You received this message because you a
ded apache to the group bestx. This is the group that the
> user 'thebest' belongs to.
>
>
>
> On Jun 6, 6:07 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> > What user does apache run as - set group read permissions (at least) to
> > that.
>
What user does apache run as - set group read permissions (at least) to that.
If you're using Ubuntu or Debian, it is likely "www-data", so the
following commands (as root) would do the trick:
chgrp -R www-data /home/thebest/TheBest/
chmod -R g+r /home/thebest/TheBest/
-joe
On 6/6/07, [EMAIL P
Yes, you'd set in something like:
SetHandler None
(which is exactly what I've done)
-joe
On 6/5/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I'm not using mod_rewrite currently (and may even have it turned off
> in Apache to save memory). Is there another solution?
>
> I have my static
tle. It is ultimatley a tradeoff choice that you need
to make for your own code.
-joe
On 6/4/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote:
> that is repeating a lot of common information about my models, what about
> DRY, reusing, etc?
>
> On 6/4/07, Joseph Hec
While it may look ugly, it's actually pretty effective - depending on
what you want to enable with search queries overlaid on URL's. If you
only had simple (i.e. one word) terms, you could write the query into
the URL itself, but I found that using a url like /search/ and then
appending on ?q=...
Another thing to keep an eye out for is referencing one model from
another - when loading up the choices for something that has > 1000
possible associated objects, then system will take a while to pull all
those into place. Setting "raw_admin_id" in the model will help
alleviate this, but you loo
Maybe a foreign key relationship would work, but you might just
consider adding all those attributes to each model. Unless you think
you'll end with really sparse tables, it may be worth it for the
simplicity.
You wouldn't want to use a one-to-one table for common elements among
different models.
12 2007.
>
> andrew
>
> On May 29, 1:01 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> > Is the question "What's the URL for the 0.96 release?"
> >
> > browse:http://code.djangoproject.com/browser/django/tags/releases/0.96
> >
> > che
Is the question "What's the URL for the 0.96 release?"
browse:
http://code.djangoproject.com/browser/django/tags/releases/0.96
checkout:
svn co http://code.djangoproject.com/svn/django/tags/releases/0.96
-joe
On 5/29/07, Andrew <[EMAIL PROTECTED]> wrote:
>
> Anyone know? We were working off th
Your question is far to vague for anyone here to help you. You need to
ask an explicit question, giving an example.
-joe
On 5/29/07, xzh <[EMAIL PROTECTED]> wrote:
>I am a rookie of Diango . I have problem.I wrote a template then
> test it in the browser, the coding was not I want . How can
You might take a look at twill (http://twill.idyll.org/) - Although I
find it a tad trickier to get rolling with than Selenium, it has the
functionality that you want (emulating a browser, including cookies)
and can be 'programmed' to walk to an OpenID login site and back again
following redirects
<[EMAIL PROTECTED]> wrote:
>
> > On May 23, 10:18 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> >
> > > The session is a model in Django - so you can delete it like any other -
> >
> > > x=request.session
> > > x.delete()
> &
When you're done with the command (assuming you're not being explicit
about the transactions), use:
transaction.commit_unless_managed()
to force the commit.
-joe
On 5/23/07, ZebZiggle <[EMAIL PROTECTED]> wrote:
>
> More info ...
>
> I wrote a little program to execute the query directly via p
Don't put the % inside of " characters, or Python will attempt to
evaluate it out. Alternately, escape it so it doesn't eval. I
generally form up my custom SQL strings outside of the execute()
method to make debugging this kind of thing a tad easier.
-joe
On 5/23/07, [EMAIL PROTECTED] <[EMAIL PR
The session is a model in Django - so you can delete it like any other -
x=request.session
x.delete()
There's also the daily_cleanup.py script included with Django that
just goes straight to the database:
http://code.djangoproject.com/browser/django/trunk/django/bin/daily_cleanup.py
-joe
On 5/
I thought the same thing. :-) I'll take a whack at wringing it
together and submitting it as a patch, and you can be appalled at my
slaughtering of your fine explanation.
-joe
On 5/21/07, simonbun <[EMAIL PROTECTED]> wrote:
>
> Great stuff again Malcolm. Perhaps it should be rehashed a bit and p
What is the "general way" to add your own validation to forms under
the newforms framework?
Subclassing and adding in your clean_* methods? Using decorators or
the such around existing validation? Adding your own custom Field
objects and setting their "clean" methods?
-joe
On 5/21/07, Matt <[EM
We determined that Postgres was portable enough to any platform we'd
host on, and went with TSearch2 and have been pretty happy. Having
done hard-core search work in a previous life (www.singingfish.com), I
know it isn't everything you can get in the search world, but it was
sufficient for our nee
Beginner, at least in my opinion. YMMV.
On 5/9/07, walterbyrd <[EMAIL PROTECTED]> wrote:
> Before attempting to use Django, a person should have a Python
> programming skill level of:
>
> 1) beginner
> 2) intermediate
> 3) expert
>
> To use Django, a developer should have an exceptionally strong
Back in February, TrenchMice was hit with a reasonable load from a
front-page Slashdot article, and they wrote it up at
http://www.cogitooptimus.com/2007/02/11/wow-we-made-it/
I helped them with some load testing before the site ever went live,
and it looked to be able to handle it with aplomb. T
Using django syncdb is fine - just make sure the database itself is
set up with utf-8 encoding. I used that very command just prior to
running "django-admin.py syncdb"
You might check the archives of this group for similiar topics - I
recall seeing discussion on this previously, and I think they
You need to deal with whatever encoding the file is in. But you're
also running out of my area of knowledge in regards to text encodings.
-joe
On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote:
>
> Thanks for all your help guys, but I'm facing another little thing
> here, if I'm getting the word fro
task just to spawn a child
> process and continue the parent. I have a feeling that it is still
> perfectly doable.
>
> Ilja
>
> On May 8, 8:01 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> > For a light (i.e. short) duration process that you want results
You'd want to write that as
w = u'ataché'
to make sure python knew you were pushing out a unicode string, but an
ASCII string.
-joe
On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote:
>
> Thanks for your help Rafael, but I got into another trouble trying to
> encode my string like this;
> I have th
Generally outside and prior to any thread initiation should be fine.
-joe
On 5/8/07, johnny <[EMAIL PROTECTED]> wrote:
>
> Since I have my code in threaded manner, do I have to put the
> following code inside threaded function or outside?
>
> from os import environ
> environ['DJANGO_SETTINGS_MOD
when you created your database, did you set the encoding to UTF-8?
When we set up our database, we used:
createdb -E='utf-8' -Upostuser databasename
I'm not familiar enough to Postgres to know if you can convert the
encoding of a database after it's been created.
-joe
On 5/8/07, Gerard M <
For a light (i.e. short) duration process that you want results from
to return to the user, it's fairly straightforward. Here's some code
we're using to report our current code revision in an admin dashboard:
def get_code_revision():
import os
x = os.popen("/usr/bin/svnversion /u/django/w
Interesting solution Bill! Thanks for sharing! I'll see if I can't
make that mechanism work for me...
Malcolm's response was also great in detail, and now I think I need to
digest some and see how I can use it, and if there's a good generic
solution for me.
-joe
On 5/7/07, Bill Fenner <[EMAIL P
1 - 100 of 229 matches
Mail list logo