What about using tornado as wsgi server behind nginx?
I made some improvements to the management command published at
http://geekscrap.com/2010/02/integrate-tornado-in-django/
You can check the code and sample project here:
http://github.com/darkrho/django-on-tornado
May not be heavy production
I'm trying to write a program that scrapes all the pdfs off of this
page:
http://www.ca3.uscourts.gov/recentop/week/recprec.htm
And then puts them onto my hard drive, with the reference to their
location in a FileField.
I've defined a FileField in my model, and I believe I can scrape the
site OK
Just specify an argument for --settings when you launch the server for each
instance.
example (development):
./manage.py runserver --settings=myproject.myapp.special_settings
Sawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Hi friends,
i have two apps in my project, and i want to use two different settings for
each app. it means same project but i sud run those two apps separately. is
it possible..? if anyone of u guys know please reply me. And if u want any
further information regarding this post please ask me.
--
On Mon, Mar 8, 2010 at 2:24 PM, Derek wrote:
> I have noticed that, if a change list has been filtered before a record is
> edited, the filter is not restored after the editing operation is complete.
>
> a. Is there a way to automatically restore the filtered view and, if so,
> how?
>
> b. If ther
Cherokee is what I use since quite a while now. Before that, Apache. I
would never go back since Cherokee is imo way easier to set up and
maintain plus is a lot faster in its basic setup than compared to Apache
in its basic setup (what the .debs give you).
http://www.cherokee-project.com/doc/cookb
Hi Jen,
I am happy to help you but my experience with django is very much like
starting level. Is that something helps you?
Riz
-Original Message-
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]
On Behalf Of Jens
Sent: 07 March 2010 19:15
To: Django users
Subj
I have noticed that, if a change list has been filtered before a record is
edited, the filter is not restored after the editing operation is complete.
a. Is there a way to automatically restore the filtered view and, if so,
how?
b. If there is not a way to automatically restore it, what other opt
Before the Django 1.2 beta and the class-based Feed views, I was doing
this to cache my RSS feeds:
urls.py:
from django.contrib.syndication.views import feed as syndication_feed
from django.views.decorators.cache import cache_page
urlpatterns = patterns('',
url(r'^feeds/(?P.*)/$',
cache_
On Mon, Mar 8, 2010 at 8:14 AM, Aljosa Mohorovic
wrote:
> according to http://code.djangoproject.com/wiki/Version1.2Roadmap RC1
> marks translation string freeze, any updates on roadmap?
We've been discussing this amongst the core; we should be making some
sort of formal announcement shortly, but
On za, 2010-03-06 at 23:36 +0200, H.İbrahim Yılmaz wrote:
> Hi all,
> I have some ModelForms.. This ModelForms based some ForeignKey
> included models. When i want to create a ModelForm I got these
> ForeignKey fields something like (in a dropdown menu) "BlaBla object".
> But i want to get in that
On zo, 2010-03-07 at 01:45 -0800, gintare wrote:
> Is it possible in python access name of variable?
> I want to convert the name of the variable to the string, not the
> value of variable to the string.
No, this is not possible.
--
Dennis K.
The universe tends towards maximum irony. Don't pus
On zo, 2010-03-07 at 01:53 -0800, Alexis Selves wrote:
> InternalError: current transaction is aborted, commands ignored until
> end of transaction block
http://docs.djangoproject.com/en/dev/topics/db/transactions/#handling-exceptions-within-postgresql-transactions
--
Dennis K.
The universe ten
On zo, 2010-03-07 at 05:01 -0800, jorge.silva wrote:
> Hi there!
>
> As far as I've read in the Django wiki this is a very common
> situation, yet I can't get it right
> I've inherited a legacy database which I'm slowly trying to model in
> Django to benefit from the free Admin site. As long a
You don't say anything about what hosting mechanisms you are using for
each.
The Django runserver does extra automagic setup steps which aren't by
default going to be done by other hosting mechanisms. Part of this is
solved by manual setup of sys.path, but not necessarily all that is
necessary.
H
according to http://code.djangoproject.com/wiki/Version1.2Roadmap RC1
marks translation string freeze, any updates on roadmap?
Aljosa
--
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
i have something like this in urls.py:
---
from django.db.models.fields import TextField
for model, modeladmin in admin.site._registry.items():
if isinstance(modeladmin, ):
if TextField in modeladmin.formfield_overrides:
modeladmin.formfield_overrides[TextField]['widget'] =
I have two identical django deployments and one of them (the beta
staging server) is having import errors on startup and is failing.
1. is something causing the deployments to be loading classes in
different orders ?
the directory structure is identical, the pythonpaths are in an
identical order
On Mar 7, 9:57 pm, "het.oosten" wrote:
> I am almost done implementing tweets on my site using a tutorial which
> a found
> here:http://www.omh.cc/blog/2008/aug/4/adding-your-twitter-status-django-s...
>
> The problem is that i want to modify the date output when i retrieve
> multiple tweets. The
I am almost done implementing tweets on my site using a tutorial which
a found here:
http://www.omh.cc/blog/2008/aug/4/adding-your-twitter-status-django-site/
The problem is that i want to modify the date output when i retrieve
multiple tweets. The example above is written for retrieving only one
Have a look here:
http://code.djangoproject.com/wiki/ServerArrangements
In general, you should have two Web servers (e.g. Apache and nginx or
lighttpd). Apache (with mod_wsgi) to serve Django and nginx or
lighttpd to serve the static files (CSS, JavaScript, images, etc.).
I'm not an expert
Hi all,
I have an opportunity to help an organisation develop a replacement
for their ageing line of business database (Microsoft Access) - it
holds their quotes, orders, customers, suppliers, and so on.
I immediately started thinking in terms of either Ruby on Rails,
Django, or CakePHP - purely
Hi,
I am new to django and wanted to set up a webserver
and use apache or lighttpd.
As I understood wsgi is the preffered ( most performant) way
to use python & a web server.
I heard that apache has a mod_wsgi and wanted to ask if
there exists such a module for lighttpd too?
What would you pro
I started http://code.google.com/p/django-weave/ a Django reuseable
Application witch implements a Firefox weave server.
The Project is in planning/pre-alpha state.
If anyone has interest to help, please contact me!
Mfg.
Jens
--
You received this message because you are subscribed to the Goo
On Mar 7, 2:42 pm, Naveen Reddy wrote:
> Why am i getting this error:
> ValueError at /user/naveen_admin/
> The view django_bookmarks.bookmarks.views.user_page didn't return an
> HttpResponse object.
> Request Method: GET
> Request URL: http://localhost:8000/user/naveen_admin/
> Exception Type:
On Mar 7, 2:36 am, Alexis Selves wrote:
> Hello,
> When I try to use raw SQL commands to simple selects from db I get
> this:
> InternalError: current transaction is aborted, commands ignored until
> end of transaction block
If you make an error in an SQL statement, Postgres will refuse to do
any
Please provide the least amount of code possible to duplicate this
problem.
Saying "when I try to user raw SQL commands it breaks" is kind of like
telling a mechanic "my engine is making a funny noise." Where does the
noise come from? Does it happen only when the engine is running? Does
i
I'm trying to use date-based generic views for each category on my
site so, for example, the news category will have date-based archive
at news/2010/jan/02/slug and features would have features/2010/
… and so on.
I also want site admins to be able to rename categories at will, so I
don't want the
Why am i getting this error:
ValueError at /user/naveen_admin/
The view django_bookmarks.bookmarks.views.user_page didn't return an
HttpResponse object.
Request Method: GET
Request URL:http://localhost:8000/user/naveen_admin/
Exception Type: ValueError
Exception Value:
The view django_bookmarks
Hi there!
As far as I've read in the Django wiki this is a very common
situation, yet I can't get it right
I've inherited a legacy database which I'm slowly trying to model in
Django to benefit from the free Admin site. As long as I'm here I'm
also trying to learn something ;)
My situation is
Yeah, I didn't display the entire view. Sorry about that! But, just
now I did figure out what I was doing wrong! I named the variable
coming from the url "poll". Which is the same as my class name
"Poll". When I changed the url name to "id" everything magically
worked! I feel like an idiot...
On Sat, 06 Mar 2010 23:39:59 +0200, Arkeoloji.web.tr wrote:
> Hi all,
> I have some ModelForms.. This ModelForms based some ForeignKey included
> models. When i want to create a ModelForm I got these ForeignKey fields
> something like (in a dropdown menu) "BlaBla object". But i want to get
> in th
On Sat, 06 Mar 2010 09:52:06 -0800, uthaman wrote:
> url:
> url(r'top25/(?P\d{1})/$', views.top25_test, name='top25_test'),
>
> view:
> def top25_test(request, poll):
> entry = Poll.objects.filter(poll_id=poll)
>
> model:
> class Poll(models.Model):
> PUBLISHED_ST
if bids is ordered by index then you could just return
BID.objects.filter(...).filter(pk__lte=id).count() and that should be
what your after in one step (if I've understood the question
correctly).
--
G
On Mar 7, 7:10 am, Hasan Karahan wrote:
> Hi,
>
> I'm wondering if there is an efficient way
Hello,
When I try to use raw SQL commands to simple selects from db I get
this:
InternalError: current transaction is aborted, commands ignored until
end of transaction block
I tried many hints from another forums, but nothing..
Please help me..
Using django with postgre
--
You received this mes
Yes, sure, raw sql is not problem for me.
But if I want to perform simple query like SELECT * FROM cars; It
give this:
InternalError: current transaction is aborted, commands ignored until
end of transaction block
I am using postgres and karmic coala..
On 6 bře, 19:44, Matthew Warren wrote:
> Fr
Hello,
Is it possible in python access name of variable?
I want to convert the name of the variable to the string, not the
value of variable to the string.
For example for item inclass Aref: List.append( str(name_of _item) )
i want 'Rfirstauthor' to be inserted in List[0], not the value of
varia
Thanks for both of you!
On Mar 5, 6:37 pm, Atamert Ölçgen wrote:
> On Friday 05 March 2010 18:09:22gintarewrote:> b = Blog( [name, tagline] ,
> ['Beatles Blog', 'All the latest Beatles
> > news] )
>
> > >>> b.save()
>
> How many items are you saving at once? Have you measured the time required
38 matches
Mail list logo