DateTime field when using django-crispy-form

2013-01-03 Thread Subodh Nijsure
Hello, Sorry if this should go to some crispy-form specific mailing list. If there is such thing kindly redirect me towards it. I am using django-crispy-form to render my forms one thing which I haven't been able to do is display columns that are of data-time format with some kind of calender pic

Re: django_nose failing to discover tests

2013-01-03 Thread eculver
I think the trick is in the name of the module and/or test case. I can't remember exactly how django-nose modifies test discovery but here's what nose does alone: https://nose.readthedocs.org/en/latest/finding_tests.html Try renaming the test class to something that begins with "Test" -- so lik

Re: Admin page not found error

2013-01-03 Thread eculver
Hi, I have ran into this a few times and it's not exactly obvious what's going on. In short, the last line of the exception: return getpass.getuser().decode(locale.getdefaultlocale()[1]) is somewhat of a hint, if you can even call it that. Try setting $LANG in your shell environment. For exam

Django Praise: vs CakePHP

2013-01-03 Thread Kristofer
I just wanted to drop a little praise to everyone who has contributed to Django over the years. I worked on a project about a year ago, and did it exclusively in CakePHP. I can't go into too many details about what the project is due to privacy concerns, but it revolved around customer self-se

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2013-01-03 Thread Jan Paricka
Same problem here. 1) CommonMiddleware in place 2) debug = False 3) SEND_BROKEN_LINK_EMAILS = True And yet no 404 emails... Otherwise the app is happily emailing... Any thoughts? Thanks Jan On Friday, June 24, 2011 9:56:23 PM UTC+2, Kyle Gong wrote: > > For some reason, I can't get my ser

Re: Django app custom settings testing

2013-01-03 Thread Pedro J. Aramburu
No, you're not, but, there isn't a way to load or inject the app settings so that diffsettings and other project level things (like testing) can see them? That's my question. I've read something on a github repo but it seems clunky and over-done. My main goal really is to change some settings on th

Run Individual doctest in model.py or views.py

2013-01-03 Thread Bernard Kuehlhorn
In https://docs.djangoproject.com/en/1.4/topics/testing/ , individual tests can be run. It works well for unit tests in tests.py. It should work for doctest in model.py. I can not understand how to specify a doctest. $ ./manage.py test animals.classify Thanks, ben -- You received this messag

Django admin save error: get_db_prep_value() got an unexpected keyword argument 'connection'

2013-01-03 Thread Glyn Jackson
I really struggling with my understanding of the following issue and how to resolve When I try and save (using the Django standard admin interface) I get the following error... TypeError at /admin/web/campaign/dc6eb21f-87fa-462f-88af-416cf6be37f

Re: Reserved Words

2013-01-03 Thread Bill Freeman
That's not a reserved word. Case in point, "list" is not a python reserved word. You can use it as a module level variable, but you will confuse yourself later on when you try to use the list constructor in some code in that module. "else" is a reserved word. You won't be able to redefine it, a

Re: Django app custom settings testing

2013-01-03 Thread Bill Freeman
This approach is only useful for modules that import app.settings and use things that it defines. It doesn't affect things that import settings from django.conf . Your app can import settings from app, and get your settings. That's not going to affect any other app. If you want to affect what o

Reserved Words

2013-01-03 Thread Sam Raker
Is there a list of 'reserved words' for Django like there is for Python? I posted a question in here a few days ago about a mysterious recursion error I kept getting when I tried to load my data in with loaddata. Turns out, it was because I had defined a field called 'pk' with primary_key=True i

Re: citations

2013-01-03 Thread samtygier
On Sunday, December 30, 2012 1:37:17 AM UTC, Russell Keith-Magee wrote: > > > On Sat, Dec 29, 2012 at 10:26 PM, > wrote: > >> Hi, >> >> I am creating a site, and trying to implement a referencing/citation >> system. >> >> I'd like to render something like >> "Lorem ipsum dolor sit amet[[ref:foo2

Re: Using django's oodb alone

2013-01-03 Thread Nick Apostolakis
On 03/01/2013 02:30 μμ, Xavier Pegenaute wrote: Hi, I would like to use the django's oodb in some (ncurses + python) scripts. Any one have some experience on it?, do I need to use the django scripting environment or may be I can avoid it? Thanks, Xavi Of course you can do it, you just ha

Re: Using django's oodb alone

2013-01-03 Thread Jani Tiainen
3.1.2013 14:30, Xavier Pegenaute kirjoitti: Hi, I would like to use the django's oodb in some (ncurses + python) scripts. Any one have some experience on it?, do I need to use the django scripting environment or may be I can avoid it? Um... Django is just a Python library so you can use it lik

Using django's oodb alone

2013-01-03 Thread Xavier Pegenaute
Hi, I would like to use the django's oodb in some (ncurses + python) scripts. Any one have some experience on it?, do I need to use the django scripting environment or may be I can avoid it? Thanks, Xavi -- You received this message because you are subscribed to the Google Groups "Django u

Re: Django installation on Hostgator

2013-01-03 Thread Avraham Serour
Hi, I'm also using hostgator to host a django project. first of all note that they have different plans with different features, what I'm going to write applies to their shared hosting plans. Looks like they are using some version of centos, which comes with python 2.6 I believe. Installing a pyth