Re: static files, runserver debug=True

2013-01-17 Thread Tom Evans
On Wed, Jan 16, 2013 at 11:31 PM, Fred Kingham wrote: > perfect thanks Javier. > > I guess my question should have been phrased, if debug = False, does the > runserver serve static files from the STATIC_ROOT. Clearly that's no. > > Thanks again. > > Fred Even with debug=True, runserver does not

Table2 populated by raw SQL query, help needed

2013-01-17 Thread Andy Woods
Hi, I need to use a raw SQL query and populate a table2 table with the results. The query works fine and returns a list of Dicts using this function from the helpfile : def dictfetchall(cursor): "Returns all rows from a cursor as a dict"

list of dicts to Table2

2013-01-17 Thread Andy Woods
Afraid I just cannot figure out your help file on 'populating a table with data' with non-queryset data. I am quite the Newbie so apologies in advance for yet another non-issue. Would you mind providing a more fleshed out example for your helpfile? Hope you don't mind. I started a stackoverf

Help - how to deploy to nginx in windows

2013-01-17 Thread frocco
Hello, If I create a base django app, how can I get it to run using nginx in windows? I keep getting 404 errors. Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/m

Re: Django lucene

2013-01-17 Thread Barun Saha
Puneet, Were you able to solve this problem? I have been searching a solution for this almost the entire day! On Monday, 31 August 2009 22:12:44 UTC+5:30, Puneet wrote: > > Hi, > > Can anyone help with this in django with lucene? Is there anyone able > to use this module sucessfully. I am gett

Can't resolve dependencies error in dumpdata.

2013-01-17 Thread wyleu
Sub classing a self referring class with natural keys from a Base class generates an error on dumpdata. c:\dev\chris\bugdemo>manage.py syncdb Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_user_permission

Looking for a Django opportunity to pursue...

2013-01-17 Thread Robert Steckroth
Hello, I am actively seeking a opportunity to develop Django applications. If there are any professionals seeking to grow in this area, feel free to respond via this address. Also, I have other soundly developed skills in the Systems/Software/Web field. Thanks, Robert Steckroth -- Bust0ut, Surge

Re: Help - how to deploy to nginx in windows

2013-01-17 Thread Nikolas Stevenson-Molnar
Nginx is just a proxy server, you still need something behind it to run your Django project. I recommend gunicorn (http://gunicorn.org/). It's easy to use and is commonly used with Nginx. _Nik On 1/17/2013 7:45 AM, frocco wrote: > Hello, > > If I create a base django app, how can I get it to run

Working example on django-search-lucene

2013-01-17 Thread Barun Saha
Hello, Could anyone please provide a working example on django-search-lucene? I have been going through this tutorial, but ending up with an error while trying to search: type object 'Document' has no attribute 'obje

TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types in models/fields/related.py line 955

2013-01-17 Thread Derek Edwards
Greetings - I'm not sure if this is a bug or if I'm unknowingly doing something that I ought not, but I started encountering this exception when I switched my site from debug to production: Traceback (most recent call last): > > File > "/usr/local/lib/python2.7/dist-packages/Django-1.4.2-py

Re: Help - how to deploy to nginx in windows

2013-01-17 Thread frocco
Thanks, Are there any examples on how to get this up and running on windows? On Thursday, January 17, 2013 10:45:26 AM UTC-5, frocco wrote: > > Hello, > > If I create a base django app, how can I get it to run using nginx in > windows? > I keep getting 404 errors. > > Thank you > -- You receiv

Re: Help - how to deploy to nginx in windows

2013-01-17 Thread Nikolas Stevenson-Molnar
Here's an Nginx package for Windows: http://kevinworthington.com/nginx-for-windows/ Once you have Nginx installed, configuration is about the same as for any other platform. The gunicorn site has an example Nginx configuration you can adapt: http://gunicorn.org/#deployment You also need to run gu

Re: Help - how to deploy to nginx in windows

2013-01-17 Thread Nikolas Stevenson-Molnar
Actually, it looks like those are Nginx builds for cygwin. If you want native Windows builds, the Nginx site itself has those: http://nginx.org/en/download.html _Nik On 1/17/2013 11:52 AM, Nikolas Stevenson-Molnar wrote: > Here's an Nginx package for Windows: > http://kevinworthington.com/nginx-f

quantize result has too many digits for current context

2013-01-17 Thread Fellipe Henrique
Hello, I have this model: class ItensPedido(models.Model): idvenda_pedido_itens = models.IntegerField(u'Código', primary_key=True, null=False) idvenda_pedido = models.ForeignKey('Pedido', db_column='idvenda_pedido', null=False, blank=False) idproduto = models.ForeignKey('Produto', db_

Deployment and user libraries (builds on the Django tutorial)

2013-01-17 Thread Frederik T
I've worked my way through the Django tutorial successfully, up to https://docs.djangoproject.com/en/dev/intro/reusable-apps/ which worked for the development test server. I have refactored out the polls application and turned it into a python package, as suggested, which I then installed as a l

Re: Deployment and user libraries (builds on the Django tutorial)

2013-01-17 Thread Alex Mandel
On 01/17/2013 12:11 PM, Frederik T wrote: > I've worked my way through the Django tutorial successfully, up to > https://docs.djangoproject.com/en/dev/intro/reusable-apps/ which worked for > the development test server. > I have refactored out the polls application and turned it into a python >

Issues with MAMP

2013-01-17 Thread beee bello
I apologize in advance if this topic has already been addressed. This is my first time EVER using Python and, of course, Django. I have MAMP installed in my laptop and it seems to be stopping me from connecting Django to MySQL. I am a student and my other classes use MAMP so uninstalling isn't

Re: Issues with MAMP

2013-01-17 Thread Nikolas Stevenson-Molnar
I don't see any reason MAMP should preclude you from using Django /w MySQL. Can you detail the error(s) you're seeing? _Nik On Jan 17, 2013, at 6:10 PM, beee bello wrote: > I apologize in advance if this topic has already been addressed. > > This is my first time EVER using Python and, of cou

Re: Issues with MAMP

2013-01-17 Thread Nikolas Stevenson-Molnar
Ok, looks like perhaps I spoke to soon. Seems there are a couple of gotchas in using Django with an existing MAMP installation. Have you seen this? http://tom.londondroids.com/2012/05/setting-up-django-with-mamp-on-mac-os-x-lion-in-steps/ _Nik On Jan 17, 2013, at 8:16 PM, Nikolas Stevenson-Moln

Re: django: creating tag groups

2013-01-17 Thread Sammael
Amirouche, thank you very much. jQuery solution is quite interesting but it's more complicated for me to implement. So I think I gonna use your first idea =). django-mptt is very simple to install and it's well documented. Thank you very much. Your help is inestimable. среда, 16 января 2013 г.,

Signal handler not work

2013-01-17 Thread yillkid
Hi all I want save B model when A mode has been saved, my code as below : http://codepad.org/4ogGh6ru But not works, anybody help me ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.goo