ImportError: No module named 'exceptions' - Python3

2013-08-11 Thread abhijeet shete
Hi Folks, I ported my project from python2.7 to python3 using 2to3 module. One of my class is inherited from Exception class, but after porting to python3 i am getting *No module named 'exceptions' *error. My class looks something like this :- *from exceptions import Exception* *class

Re: Iterating over fields in Formset

2013-08-11 Thread Sandeep kaur
On Mon, Aug 12, 2013 at 5:47 AM, Dan Gentry wrote: > What is the purpose of checking test.id for a value of 3 or 6? > For test.id == 3 or 6, some other code will be executed, else this code. I am currently doing for else part. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com

Re: ImportError at/ No module name

2013-08-11 Thread Pranay Shah
I just want to thank everyone. I had an error "no module name image" since yesterday nite. I googled and found out that I need to install python image library. I did that. I still continued getting error. Just then I came across this post where someone was getting "no module... blog". I read it

Re: Iterating over fields in Formset

2013-08-11 Thread Dan Gentry
What is the purpose of checking test.id for a value of 3 or 6? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: Filtering a drop-down list in Admin

2013-08-11 Thread Mike Dewhirst
On 12/08/2013 4:51am, Chad wrote: Hi, I am new to Django, I have read a good bit of the documentation and am trying to write an app. This app is simple and should allow for a lost of contacts and companies. Each company has different locations (or addresses) such as main office, branch office

Re: django windows user

2013-08-11 Thread Mike Dewhirst
On 12/08/2013 8:47am, Aaron C. de Bruyn wrote: MySQL or Postgresql for your database, followed by some basic SSH/SCP knowledge. For Windows users I recommend two tools: PuTTY and WinSCP. If you have a choice go with PostgreSQL and Filezilla is a useful tool which knows the SSL/TLS

Re: south in windows

2013-08-11 Thread Mike Dewhirst
On 12/08/2013 5:36am, Karl Arunachal wrote: Hi, I am trying to sync south in my db, but i can't sync it. Its giving me an error: (use ./manage.py migrate to migrate these) Is there anyway to do this command, "./manage.py", in windows. I could have done it by chmod + x manage.py in other os. But

Re: connecting to MS SQL server in addition to default MySQL

2013-08-11 Thread Larry Martell
On Wed, Aug 7, 2013 at 3:03 PM, Andre Terra wrote: > You can use django-mssql[0] as a backend, and then either use the ORM as > usual, write RAW queries with Django[1] or just use SQL directly[2]. > > > Cheers, > AT > > [0] http://django-mssql.readthedocs.org/en/latest/ >

Re: django windows user

2013-08-11 Thread Aaron C. de Bruyn
On Sun, Aug 11, 2013 at 1:35 PM, Robin Lery wrote: > have a linux server or hosting provider yet. I was just curious, as when > the time will come to deploy in production level, what other basic things > should I know. I will try the tutorials on ssh that you gave me. And

Re: django windows user

2013-08-11 Thread Robin Lery
No, i don't have a linux server or hosting provider yet. I was just curious, as when the time will come to deploy in production level, what other basic things should I know. I will try the tutorials on ssh that you gave me. And thank you for your guidance! On Sun, Aug 11, 2013 at 4:51 AM, Aaron

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread mulianto
Hi, Why not try use JavaScript file open to process the Information in client. It'a a waste of bandwith in client + server side if upload not needed. Regards, Mulianto Http://muliantophang.blogspot.com Sent from my iPhone On 11 Agt 2013, at 18:02, Bob Aalsma

south in windows

2013-08-11 Thread Karl Arunachal
Hi, I am trying to sync south in my db, but i can't sync it. Its giving me an error: (use ./manage.py migrate to migrate these) Is there anyway to do this command, "./manage.py", in windows. I could have done it by chmod + x manage.py in other os. But how do i do it in windows? Is there any other

Filtering a drop-down list in Admin

2013-08-11 Thread Chad
Hi, I am new to Django, I have read a good bit of the documentation and am trying to write an app. This app is simple and should allow for a lost of contacts and companies. Each company has different locations (or addresses) such as main office, branch office etc. Each contact should be

Error importing middleware django.contrib.sessions.middleware

2013-08-11 Thread Adam
Hello, I removed *Memcached* from django then i restarted Apache, but I am getting an ImproperlyConfigured error on account of custom middleware: *ImproperlyConfigured: Error importing middleware django.contrib.sessions.middleware: "No module named base" * [error] mod_wsgi (pid=758249):

Re: Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
I manage to solve this problem using this guid: http://www.springmerchant.com/blog/psycopg2-virtualenv-install-pg_config-executable-not-found/ (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ python manage.py validate 0 errors found Thank you for you time. Have a nice day :) --

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
try deleting no-global-site-packages.txt from the virtualenenv On Sun, Aug 11, 2013 at 6:24 PM, Alekto Antarctica < alekto.antarct...@gmail.com> wrote: > Thank you, but that is already done. I did it when I first installed > django.. so I am really confused > > > 2013/8/11 Avraham Serour

Re: Error: ImportError: No module named south

2013-08-11 Thread Alekto Antarctica
Thank you, but that is already done. I did it when I first installed django.. so I am really confused 2013/8/11 Avraham Serour > the page > hererecommends > installing the binaries, try sudo apt-get install

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
the page hererecommends installing the binaries, try sudo apt-get install python-psycopg2 On Sun, Aug 11, 2013 at 6:13 PM, wrote: > This is what I am gettin when trying to install psycopg2, still the

Re: Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
This is what I am gettin when trying to install psycopg2, still the same errors... (django_project)alekto@kalahari:~/Web/prosjekt/django_project$* pip install psycopg2* Downloading/unpacking psycopg2 Downloading psycopg2-2.5.1.tar.gz (684Kb): 684Kb downloaded Running setup.py egg_info for

Re: Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
so, should I try to install psycopg2 to this project with pip install psycopg2? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
install psycopg2 btw, if you created the virtualenv you should need to sudo On Sun, Aug 11, 2013 at 6:05 PM, Alekto Antarctica < alekto.antarct...@gmail.com> wrote: > (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ pip freeze > Django==1.5.1 > South==0.8.2 > argparse==1.2.1 >

Re: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
Finally - FIXED! After a some experimenting with the command line I found out that I can not access the foreign key field if there is no actual record. So this throws the error as well: >>> doc = main_documents.objects.create(doc_name="test", doc_description="description") >>> doc.created_by

Re: Error: ImportError: No module named south

2013-08-11 Thread Alekto Antarctica
(django_project)alekto@kalahari:~/Web/prosjekt/django_project$ pip freeze Django==1.5.1 South==0.8.2 argparse==1.2.1 distribute==0.6.24 wsgiref==0.1.2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
from this it looks like the error is that you don't have the postgres driver, nothing to do with south On Sun, Aug 11, 2013 at 5:51 PM, wrote: > *So this is what I am getting if I run the python manage.py syncdb, > without sudo:* > >

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
what does pip freeze shows? On Sun, Aug 11, 2013 at 5:42 PM, Alekto Antarctica < alekto.antarct...@gmail.com> wrote: > Yes, I have already activated the virtualenv project: > *(django_project)*alekto@kalahari:~/Web/prosjekt/django_project$ sudo > python manage.py syncdb > ImportError: No module

Re: Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
*So this is what I am getting if I run the python manage.py syncdb, without sudo:* (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File

Re: Error: ImportError: No module named south

2013-08-11 Thread Alekto Antarctica
Yes, I have already activated the virtualenv project: *(django_project)*alekto@kalahari:~/Web/prosjekt/django_project$ sudo python manage.py syncdb ImportError: No module named south 2013/8/11 Avraham Serour > did you active the virtualenv? > > > On Sun, Aug 11, 2013 at

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
did you active the virtualenv? On Sun, Aug 11, 2013 at 5:34 PM, wrote: > My python path shows among other > paths, > /home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/. > When I look into this dir, I find both south and >

Re: Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
My python path shows among other paths, /home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/. When I look into this dir, I find both south and South-0.8.2-py2.7.egg-info. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Error: ImportError: No module named south

2013-08-11 Thread alekto . antarctica
Hi, am using django==1.5.1 and south==0.8.2, as well as pip-1.1-py2.7.egg (python 2.7) I keep getting this error: ImportError: No module named south, when I run: sudo python manage.py syncdb. I have added south as the last line to my INSTALLED_APPS in settings.py. Does anyone here have a

Re: Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
one more thing, this is the user model setting from settings.py: AUTH_USER_MODEL = 'accounts.UserAccount' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Suddenly I keep getting this error: invalid literal for int() with base 10: ''

2013-08-11 Thread DJ-Tom
After adding a few more databases and views to my app, I suddenly get the error mentioned in the subject. Not sure what happened .. everything worked as a charm before. This only happens when the program tries to create a new record, I can change existing ones It seems as if the "created_by"

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread Bob Aalsma
Hi Tom, OK, thanks. The file I'd want to read is a parameter file which contains user specific information. I just need to know the data to guide the actions, no need to store or keep it. So I'll just accept the upload, extract the data and then delete the upload. Oh well ;) Regards, Bob --

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread DJ-Tom
Hi Bob > I'm trying to achieve the following: > >- user indicates a file on his/her machine >- the program opens the file, reads the data and acts on that > > > What you want to do is not possible - at least not without client-side scripting. The "program" you refer to is running on

Re: Newbie: do I need to upload in order to access data?

2013-08-11 Thread Bob Aalsma
Thanks Nigel. OK, at least this has stopped me running around in circles and I can continue from here. I would think you can do stuff client side, but this is probably more Python and less Django - to be solved in future releases ;) Regards, Bob Op 11 aug. 2013, om 00:10 heeft Nigel Legg