Re: Installation of Django

2011-11-27 Thread Timothy Makobu
Read that Python tutorial first, It will answer all your questions . You need to read the WHOLE thing. http://docs.python.org/tutorial/index.html On Sun, Nov 27, 2011 at 3:52 AM, JJ Zolper wrote: > Tim, > > Does our system include a Python Interpreter? > > " > > The interpreter’s line-editing

Re: filesystem path in settings.py

2011-11-27 Thread TANYA
I read it but after following all steps in it the error still remains. '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '

Re: [ date and null value ]

2011-11-27 Thread Daniel Molina Wegener
On Saturday 26 November 2011, Lord Goosfancito wrote: > Hello. > > I have problem when i declared field with "blank" the admin django show > this error: > > (1048, "Column 'fechaProyecto' cannot be null") > > in my models.py: > > fechaProyecto = models.DateField(verbose_name='Ingresó a l

startproject

2011-11-27 Thread veva...@yandex.ru
Hi ! Command django-admin.py startproject stopped work on my computer (it worked well in the past), I get: Usage: django-admin.py subcommand [options] [args] etc. I found it was because I have set another Python version last week. At first I got such a message: Traceback (most recent call last):

Re: Installation of Django

2011-11-27 Thread JJ Zolper
Sounds Great! I started yesterday. JJ On Nov 27, 2011, at 5:10 AM, Timothy Makobu wrote: > Read that Python tutorial first, It will answer all your questions . You need > to read the WHOLE thing. > > http://docs.python.org/tutorial/index.html > > > > On Sun, Nov 27, 2011 at 3:52 AM, JJ Z

Re: Installation of Django

2011-11-27 Thread william ratcliff
I've recommended: http://www.amazon.com/Beginning-Python-Professional-Magnus-Hetland/dp/159059519X To people with good success. Best, William On Sun, Nov 27, 2011 at 8:46 AM, JJ Zolper wrote: > Sounds Great! > > I started yesterday. > > JJ > > > On Nov 27, 2011, at 5:10 AM, Timothy Makobu >

Re: How to do some additional process while saving a django flatpage

2011-11-27 Thread Swaroop Shankar V
Well Daniel, I tried this but i am not able to see the function being called while saving any flatpage page. Is it possible to give me a step by step instruction on how to achieve the same? I read through the signals documents but i am kind of confused on where to include the signal related stateme

Re: Bulk import of data

2011-11-27 Thread Andre Terra
This should be run asynchronously (i.e. celery) when importing large files. If you have a lot of categories/subcategories, you will need to bulk insert them instead of looping through the data and just using get_or_create. A single, long transaction will definitely bring great improvements to spee

Re: [ date and null value ]

2011-11-27 Thread Lord Goosfancito
El 27/11/11 02:00, Anoop Thomas Mathew escribió: Hi, Try this *fechaProyecto = models.DateField(verbose_name=**'Ingresó a la subdirección de Proyecto', blank=True, null=True)* Thanks, Anoop atm ___ Life is short, Live it hard. On 27 November 2011 05:22, Lord Goosfancito

django tests. where to create users

2011-11-27 Thread Gelonida N
Hi, I'd like to run some django tests, which use the test client and which should check, that certain users can only access certain contents. Where would you create this users / passwords. - With a fixture - as part of a test class in the SetUp section and tear it down afterwards? - create

django testing. random test order with some 'dependency constraints'

2011-11-27 Thread Gelonida N
I'd like to create some unit tests whch should be executed in random order. However some tests could benefit from results of some predecessor tests. Therefore they should be executed only after certain tests. Did anybody try to implement such a test setup with Django's default unit tests? Are

Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Nathan McCorkle
I'm using Django 1.3 and am processing 3 files into genes, proteins, and genomes for a tool I built... this processing usually takes between 5 minutes to a few hours, depending on the genome size. After uploading the files (10-100 MB), the upload view begins processing the files, without returning

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Brian Schott
You really should look at django-celery and RabbitMQ. The upload submit can initiate a task that is defined in tasks.py. There are separate worker processes that pick up the task from the message queue and do the actual work. These workers don't even have to be on the same machine with rabbit

Re: django testing. random test order with some 'dependency constraints'

2011-11-27 Thread Russell Keith-Magee
On Mon, Nov 28, 2011 at 9:39 AM, Gelonida N wrote: > I'd like to create some unit tests whch should be executed in random order. > > > However some tests could benefit from results of some predecessor tests. > > Therefore they should be executed only after certain tests. Unit tests are supposed t

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Nathan McCorkle
Yeah I've seen the djcelery solution before... I've tried implementing it, but I'm getting an error on the celeryd console: TypeError: processXLS1() got an unexpected keyword argument 'task_is_eager' when I try running processXLS1.delay(dataObjectID=someInteger) from a function in views.py here's

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Nathan McCorkle
P.S. the printGene function works... printing the messages on the celeryd console terminal... the processXLS1 function doesn't even print anything at all On Sun, Nov 27, 2011 at 11:21 PM, Nathan McCorkle wrote: > Yeah I've seen the djcelery solution before... I've tried implementing > it, but I'm

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Nathan McCorkle
On Sun, Nov 27, 2011 at 11:21 PM, Nathan McCorkle wrote: > Yeah I've seen the djcelery solution before... I've tried implementing > it, but I'm getting an error on the celeryd console: > TypeError: processXLS1() got an unexpected keyword argument 'task_is_eager' I couldn't find anything on this e

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Brian Schott
What are your settings? Using carrot? Kombu? RabbitMQ? Does your task try to return a value? Sent from my iPhone On Nov 27, 2011, at 11:22 PM, Nathan McCorkle wrote: > P.S. the printGene function works... printing the messages on the > celeryd console terminal... the processXLS1 functio

Re: Need to process uploaded files into database entries(takes hours), how do I return a progress bar?

2011-11-27 Thread Nathan McCorkle
using guest on rabbitMQ, installed django-celery using pip... my task returns true/false if it succeeds/fails... otherwise it does a lot of database R/W Its currently processing a file via the worker, and I'm able to refresh the web browser on a page that shows how many genes have been processed f

thank you South

2011-11-27 Thread kenneth gonsalves
hi, although I have been using django for many years, I had always refused to look at South as I believed that schema migration in production was too delicate a matter to be left to a tool, and also felt that the tool would never be able to handle cases like adding a not null field. Recently I had

Security design questions

2011-11-27 Thread Mike Dewhirst
Can someone please help me with a design dilemma? The scenario is multiple companies each with their own users to edit corporate information. Companies have divisions each with their own assets and associated information. I'm envisaging at least one corporate admin who can adjust anything for