Re: VIM as Modern Python/Dajngo IDE

2012-02-04 Thread David Markey
It looks like most of this could be scripted to be made automatic.. On 4 February 2012 19:31, yati sagade wrote: > Seriously dude, I think you should go about making a video of this. > > > On Sun, Feb 5, 2012 at 12:56 AM, Vikas Ruhil wrote: > >> >> Now working on graphics and how use all this co

Re: Will Django run on z/linux?

2012-03-16 Thread David Markey
Yup.. Should be no problem at all. On 16 March 2012 17:22, Dan Poirier wrote: > On Fri. 2012-03-16 at 01:06 PM EDT, jc wrote: > > > We have a number of z/linux (z/vm s390) Linux servers and would like > > to consider porting this application to one of the instances. Will it > > run on z? > > I

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread David Markey
Bus error is usually a very low level problem. Can you give a screen shot? If you are on linux, also post dmesg. On 19 April 2012 16:36, Harald Sigh Andertun wrote: > Hi all > > I am totally new to django. Have followed the intro tutorial until part > 2

Re: Bus Error: 10 (Intro Tutorial)

2012-04-19 Thread David Markey
Could have been an abi change between python and a new library installed with one of the OSX upgrades. On 19 April 2012 18:33, Harald Sigh Andertun wrote: > The syntax error was not the only problem. It helped a bit, but I still > got bus errors. > > I installed Python 2.7 and reinstalled Djang

Re: Ways to handle long-running server-side processing in Django

2012-04-21 Thread David Markey
Sounds like the API should return a UUID that can then be used to poll, while celery or similar does the heavy lifting in the background? On 21 April 2012 21:53, jpk wrote: > Hi django-users, > > I've come looking for some advice. I've built a json api using django, > and POST/PUT to one of my

A question about Model.full_clean

2012-06-01 Thread David Markey
Hi All, Say I have this model class TestModel(models.Model): my_test = models.CharField(max_length=512, blank=True) And I try this: In [1]: from core.base.models import TestModel In [2]: test_model = TestModel() In [3]: test_model.my_test =* ""* In [4]: test_model.full_clean() In [5]: t

Re: A question about Model.full_clean

2012-06-01 Thread David Markey
l? > Or is this example literally 'it'? > > On Fri, Jun 1, 2012 at 9:47 AM, David Markey wrote: > >> Hi All, >> >> Say I have this model >> >> class TestModel(models.Model): >> my_test = models.CharField(max_length=512, blank=True) >

Re: A question about Model.full_clean

2012-06-01 Thread David Markey
1.4 On 1 June 2012 15:54, Kurtis Mullins wrote: > What version of Django are you using? > > > On Fri, Jun 1, 2012 at 10:47 AM, David Markey wrote: > >> That is my exact class for that model. >> >> >> On 1 June 2012 15:27, Kurtis Mullins

Re: A question about Model.full_clean

2012-06-01 Thread David Markey
t >> throwing the IntegrityError until you try to save it. I suppose that's >> because it's marked as 'not null' in the database. It appears to be >> ignoring it in the actual clean() (and consequently clean_fields()) >> methods. I'm going to look

Re: A question about Model.full_clean

2012-06-01 Thread David Markey
In the actual code, I'm taking input from 3rd party code which could be None :( I think the best option is to override clean_fields* *to check for non-nullable fields that are null. * * * * On 1 June 2012 17:26, Alasdair Nicol wrote: > On 01/06/12 14:47, David Markey wrote: &g

Re: . delete() don't work

2012-06-05 Thread David Markey
Did you do a python manage.py syncdb? Are you using sqlite and have relative paths? On 5 June 2012 14:37, Lucas Aride Moulin wrote: > When I use example.objects.all().delete() I get an error that the table > example_delete wasn't found on the DB. Any ideas of what am I doing wrong? > Thanks, >

Re: SCGI error

2011-09-14 Thread David Markey
Correct, You need a webserver in front of manage.py runfcgi, which understands the protocol. To talk to django directly with your browser use manage.py runserver On 14 September 2011 10:10, Tom Evans wrote: > On Sat, Sep 10, 2011 at 9:05 PM, Brian Myers > wrote: > > It seems I am getting a

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread David Markey
I had some problems with 1.3 and Postgres 8.1, Are you using psycopg2 and pg 8.1? On 26 September 2011 11:16, Russell Keith-Magee wrote: > Hi Philip, > > I can't say I've seen the error you report. > > My immediate question when I see reports like this is "what else are > you doing?". Django has

Re: FieldError on ManyToMany after upgrading to Django 1.3

2011-09-26 Thread David Markey
s available via yum. > > Philip > > > On 26/09/2011 11:20, David Markey wrote: > > I had some problems with 1.3 and Postgres 8.1, > > Are you using psycopg2 and pg 8.1? > > On 26 September 2011 11:16, Russell Keith-Magee > wrote: > >> Hi Philip, >> >

Re: MS-SQL server support for DJango

2011-10-03 Thread David Markey
Did you try google? http://code.google.com/p/django-mssql/ was the first result for "mssql django" On 3 October 2011 07:59, Ashith wrote: > I am using Reviewboard for code review process in our organization. > Currently I am using sqlite3 backend for reviewboard since my boss > hasn't approved

Re: Problem getting django on mac (10.5/Leopard) working

2012-01-07 Thread David Markey
Is there a reason you didnt do easy_install django? On 8 January 2012 01:50, larry.mart...@gmail.com wrote: > I am trying to get django working on my mac. I downloaded it from SVN > to /usr/local/django-trunk and it's there: > > $ ls /usr/local/django-trunk/ > __init__.py corehttp

Re: get django with ftp

2013-06-21 Thread David Markey
No wget or curl command available? wget https://www.djangoproject.com/download/1.5.1/tarball/ -O django.tar.gz curl -L https://www.djangoproject.com/download/1.5.1/tarball/ > django.tar.gz On 21 June 2013 13:54, Larry Martell wrote: > Is there a ftp site I can download django 1.4 and 1.5 fro

Re: change the displayed name of the app in the Django admin?

2011-04-20 Thread David Markey
As i remember the only way is to override the template. On 20 April 2011 15:06, rahul jain wrote: > Can you change the displayed name of the app in the Django admin? > > for ex: Select "app_name" to change > > Thanks. > > Rahul > > -- > You received this message because you are subscribed to the

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread David Markey
At the top of the WSGI script, set the LD_LIBRARY_PATH environment variable. On 21 April 2011 11:07, kamalp.sha...@gmail.com wrote: > Hi, > > I have installed cx_Oracle module in one of my Solaris box and then > trying to create a django page to read data from oracle db. But I am > getting follow

Re: Error: No module named messages.

2011-05-04 Thread David Markey
You're probably using a version of django that is too old.. the messages framework was introduced in 1.2 i think? On 4 May 2011 10:10, Jacob Scherffenberg wrote: > Have been working on an Error: No module named debug toolbar for a > couple hours, finally realized that i could just use the ubuntu

Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread David Markey
What is your database? On 4 May 2011 12:44, Aragorn wrote: > HI, > > I can not understand where is the error. when you insert a > blog comment I receive an email, but this' > the email I receive ! > > > Traceback (most recent call last): > > File "/usr/local/lib/python2.6/dist-packages/django/

Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-04 Thread David Markey
sqlite3 uses unicode by default so you should be ok. Is that the full stack trace? Can you post another? On 4 May 2011 13:06, Aragorn wrote: > Sqlite3 > > On 4 Mag, 13:50, David Markey wrote: > > What is your database? > > > > On 4 May 2011 12:44, Aragorn

Re: Error: No module named messages.

2011-05-05 Thread David Markey
A quick google yields: https://github.com/robhudson/django-debug-toolbar On 5 May 2011 19:51, Jacob Scherffenberg wrote: > I found the problem, but stil doesn't really know what to do. > But i was fairly sure that i used 1.3, which i did. > But when i install the debug-toolbar with sudo apt-ge

Re: I need to create a Django WebService to be consumed by AspNet

2011-06-22 Thread David Markey
Xml-rpc or SOAP? On 22 June 2011 22:19, Emmanuel Rojas wrote: > Hi, > > I was test a lot of tutorials in internet but I canĀ“t get it yet, I do > not understand how to create a web service in Django, would you help > me? > > Thanks in advance > Emmanuel > > -- > You received this message because

ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest), AttributeError: 'module' object has no attribute 'handler500'

2011-07-03 Thread David Markey
Anyone any idea how to fix this, in my urls.py im explicitly doing: from django.conf.urls.defaults import handler404, handler500, include, patterns, url == ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest) -

Re: ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest), AttributeError: 'module' object has no attribute 'handler500'

2011-07-07 Thread David Markey
Anyone any ideas? Is this a bug in 1.2.5? On 3 July 2011 12:52, David Markey wrote: > Anyone any idea how to fix this, in my urls.py im explicitly doing: > > from django.conf.urls.defaults import handler404, handler500, include, > p

Re: CSRF Cookie in IE

2011-03-09 Thread David Markey
If its not too much trouble for you, I've switched to GETs instead of POSTs for my AJAX calls, so i wont have to think about CSRF again. On 9 March 2011 14:12, krzysiekpl wrote: > Did you try add custom header X-CSRFToken ? Try this solution if youre > using jquery > > $.ajaxSetup({ >b

Re: Django in low memory environments

2011-03-18 Thread David Markey
Perhaps a cheerypy/python based webserver? (So you only need one process) On 18 March 2011 17:35, Shawn Milochik wrote: > I use gunicorn with nginx, albeit on a much more powerful machine. > > I think you'll find nginx or lighttpd recommended for a lightweight server. > > -- > You received this

Re: how to Generate a 5 character unique alpha-numeric string

2011-04-10 Thread David Markey
Ermm.. Why not just use a UUID? On 10 April 2011 18:48, GOUTAM KUMAR RANA wrote: > how to Generate a 5 character unique alpha-numeric string to use as primary > key in my model. > > how to show the generated string in a particular textbox when loading a > particular form or page? > > > Please he

python manage.py reset contenttypes doesnt work with mysql 5.5.1 Works with 5.1

2011-04-12 Thread David Markey
Simple django setup, when I try to reset contenttypes app, just after doing a syncdb.. python manage.py reset contenttypes You have requested a database reset. This will IRREVERSIBLY DESTROY any data for the "contenttypes" application in the database "my_test". Are you sure you want to do this?