Hi,
I am using python's multiprocessing module to spawn new process
as follows :
import multiprocessing
import os
d = multiprocessing.Process(target=os.system,args=('iostat 2 >
a.txt',))
d.start()
I want to obtain pid of iostat command or the command executed using
multiprocessing
module
On Mon, Jul 26, 2010 at 11:16, Martin Tiršel wrote:
> * userproject/settings.py:
> LANGUAGE_CODE = 'sk'
>
> LANGUAGES = (
>('en', 'English'),
>('sk', 'Slovensky'),
> )
> USE_I18N = True
> USE_L10N = True
>
Gah, my eyes were closed.
Have you also added the
I have L10n working, and the set up is almost the same.
I also have, in settings.py the following:
LOCALE_PATH = (
os.path.join(PROJECT_DIR, "myapp/locale"),
)
> * locale/sk/LC_MESSAGES/django.po:
> ...
> #: forms.py:7
> msgid "Your name"
> msgstr "Vaše meno"
> ...
>
>
Confirm which
Hi everybody,
I just want to "advertise" a small Django app that I have begun a few
months ago, and little by little came to maturity :
http://code.google.com/p/django-cube/
"
django-cube realizes multi-dimensional analysis on a queryset. It
tries to make easy :
1. Calculating complex
Hello,
I can not get my translation working. Structure:
* minicms - CMS project
* userproject - project using minicms
- minicms
|-plugins
||-contactform
|||-locale
|||-templatetags
|||-forms.py
* forms.py:
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import
On 26/07/2010 5:11am, john wrote:
I got the message 'No fixtures found' when I ran the python manage.py
syncdb command. I am working in sqlite3 which seems to be working as
evidenced by the fact that if I type sqlite in a terminal I get the
sqlite>.
The first time I got the following output,
John
It looks like you mis-spelled slightly ...
> ... 'django.contrib.sessi[o]ns.middleware.Session(s)Middleware',
It should be django.contrib.sessions.middleware.SessionMiddleware but
you have probably discovered that already.
Cheers
Mike
On 26/07/2010 6:59am, john wrote:
I still
Hi list!
I just started on django and so far my project went very well: I've
created an admin site that will allow the user some data into a
postgres db. Cool me, my first site. Now I want to do the following:
make in admin interface a custom widget that will have a charfield or
integerfield but
Hello,
I am programming (and learning django+python) a CMS. The core is working,
now I am adding features and utils. One of them is a contact form. I have
default functionality, but I want the user to overwrite default contact
form in case he wants some fields added/removed or add some
I still don't see why I am getting the error messages:
Traceback:
File "/home/john/Django/lib/python2.6/site-packages/Django-1.2.1-
py2.6.egg/django/core/handlers/base.py" in get_response
80. response = middleware_method(request)
File
Oh,
I guess it just look concerning. I'll keep working on the tutorial
and see what happens.
Thanks!
On Jul 25, 2:51 pm, n3ph wrote:
> Am 25.07.2010 21:36, schrieb Daniel Roseman:
>
> > On Jul 25, 8:11 pm, john wrote:
> >> I got the message 'No
Am 25.07.2010 21:36, schrieb Daniel Roseman:
On Jul 25, 8:11 pm, john wrote:
I got the message 'No fixtures found' when I ran the python manage.py
syncdb command. I am working in sqlite3 which seems to be working as
evidenced by the fact that if I type sqlite in a
On Jul 25, 8:11 pm, john wrote:
> I got the message 'No fixtures found' when I ran the python manage.py
> syncdb command. I am working in sqlite3 which seems to be working as
> evidenced by the fact that if I type sqlite in a terminal I get the
> sqlite>.
>
> The first time
I got the message 'No fixtures found' when I ran the python manage.py
syncdb command. I am working in sqlite3 which seems to be working as
evidenced by the fact that if I type sqlite in a terminal I get the
sqlite>.
The first time I got the following output, followed by the
aforementioned
I got the message 'No fixtures found' when I ran the python manage.py
syncdb command. I am working in sqlite3 which seems to be working as
evidenced by the fact that if I type sqlite in a terminal I get the
sqlite>.
The first time I got the following output, followed by the
aforementioned
Obviously the subquery has too many columns, namely
two: "error_test"."id", and "error_test"."name",
but you want that only "error_test"."id" is NOT in select
elements of the subquery.
I'm not even sure that your approch makes sense.
Greetings, Ogi
>Hi all,
>Just came across this error.
Neither 500 nor 404 errors will show up in their respective templates
when debug=True.
This can make things tricky if your local media serving is set up like
this:
if settings.DEBUG:
urlpatterns += patterns('',
(
r'^media[/]+(?P.*)$',
'django.views.static.serve',
As some of the replies have suggested, it depends very much on your
application but I can talk about my experience in scaling and web
hosting and you might find them helpful
Webhosting
For one of my projects (http://www.borrow-err.com/), I used
Webfaction and it was one of the best decision I
On zo, 2010-07-25 at 03:16 -0700, gs794 wrote:
> pks = Test.objects.none().values('pk').query
> print Test.objects.exclude(pk__in=pks)
You're not supposed to do that. Try without the .query, and without
the .values('pk').
--
Dennis K.
They've gone to plaid!
--
You received this message
Me culpa! Ignore this -- got it -- django.views.generic.create_update.
On Sun, Jul 25, 2010 at 5:56 PM, Venkatraman S wrote:
> Hi,
>
> I have many tables defined, wherein bulk of the operations which are
> rendered in the UI are CRUD operations.
> Is there any generic way of
On Sat, 24 Jul 2010 07:57:02 +0200, john wrote:
Hi all,
I am following the django book. I am to the point of setting up my
datebase. It instructs me to enter the command:
python manage.py sqlall.
When I do I get no output, and no errors. It just returns me to the
.
Hi all,
Just came across this error.
class Test(models.Model):
name = models.CharField(max_length=20)
test = Test(name='bob')
test.save()
pks = Test.objects.none().values('pk').query
print Test.objects.exclude(pk__in=pks)
DatabaseError: subquery has too many columns
The query:
SELECT
On Sun, 25 Jul 2010 07:17:48 +0200, Nikhil Somaru
wrote:
Hi
I'm using Ubuntu Lucid 10.04. I had previously installed Django 1.1.1 via
the repos. I downloaded the django 1.2 tarball. Ran "sudo setup.py
install"
after extracting, and it seems the installation went fine.
Hi,
I have many tables defined, wherein bulk of the operations which are
rendered in the UI are CRUD operations.
Is there any generic way of doing this instead of me explicitly creating
ModelForms and then handling each of the CRUD operations in my views?
For eg. for creating an item, i do
http://docs.djangoproject.com/en/dev/topics/testing/#understanding-the-test-output
Franklin
On Sun, Jul 25, 2010 at 6:31 AM, balu wrote:
> I'm using djago 1.2.1 and python 2.6
>
> The command line error is...
>
> C:\mysite>python manage.py syncdb
> Creating table
Have you set up the admin site?
http://docs.djangoproject.com/en/dev/ref/contrib/admin/
In the meantime,
handler404 = 'mysite.views.my_custom_404_view'
should go into urls.py in your project.
http://docs.djangoproject.com/en/dev/topics/http/views/#the-404-page-not-found-view
Good luck!
Just figured out that I used django-tagging before but switched to
django-taggit and then removed django-tagging. But it is being used in
the migrations. Not sure if I should mess with the migrations or just
install django-tagging. Feels wrong to install it when I don't use it
anymore.
However
I'm using djago 1.2.1 and python 2.6
The command line error is...
C:\mysite>python manage.py syncdb
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
No one who knows what could be causing it not to find the TagField
field? Do I have to do something special for South to find it? I don't
have any trouble with the field when it is used by django. Atleast not
what I've noticed.
On 23 Juli, 16:13, Martin Lundberg wrote:
You have not added the admin urls in urls.py so you can't access to it.
Regards,
2010/7/25 yalda.nasirian :
> hi
> i'm new at django code .
> i have a problem with 404.html page .
> i can't see mypage http://127.0.0.1:8000/admin/ , i see error not found >
> can you
2010/7/25 Nikhil Somaru :
> That should work, I don't think it's a django problem
>
> On Sun, Jul 25, 2010 at 12:00 AM, kostia wrote:
>>
>> How to open my web site on development server to others?
>> I use python manage.py runserver 0.0.0.0:8000
>>
>>
hi
i'm new at django code .
i have a problem with 404.html page .
i can't see mypage http://127.0.0.1:8000/admin/ , i see error
can you guide me ? and i have another question , where i write this
command :
handler404 = 'mysite.views.my_custom_404_view'
and another question before this error , i
hi
i'm new at django code .
i have a problem with 404.html page .
i can't see mypage http://127.0.0.1:8000/admin/ , i see error
can you guide me ? and i have another question , where i write this command
:
handler404 = 'mysite.views.my_custom_404_view'
please help !
tanx
On Sat, Jul 24, 2010 at
That should work, I don't think it's a django problem
On Sun, Jul 25, 2010 at 12:00 AM, kostia wrote:
> How to open my web site on development server to others?
> I use python manage.py runserver 0.0.0.0:8000
>
> But something stops others to visit my site. I use Linux
Hi
I'm using Ubuntu Lucid 10.04. I had previously installed Django 1.1.1 via
the repos. I downloaded the django 1.2 tarball. Ran "sudo setup.py install"
after extracting, and it seems the installation went fine. However, when I
run the dev server with my old project, it still shows as django
On Sun, Jul 25, 2010 at 7:16 AM, Andy wrote:
>
>> The db_for_read() and db_for_write() methods accept a model, and
>> usually a hint. If provided, the hint will be the instance the
>> database operation is acting on (or an instance related to the
>> operation). These
36 matches
Mail list logo