Re: deploy ?

2013-10-15 Thread Diogene Laerce
You can use nxinx with uwsgi even with several domain names, nginx takes care of that, you just run several uwsgi/gunicorn processes on different tcp ports or unix sockets, and nginx will just select the one that fits for its domain name (set in config) of course you need to set it properly

Re: Image browsing in django

2013-10-15 Thread Harjot Mann
On Mon, Oct 14, 2013 at 9:48 PM, Harjot Mann wrote: > I have not done anything special in views..it just contains a simple > form saving code. > Should I need to do anything there? Please reply. I am waiting :( -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harj

Re: New to Django

2013-10-15 Thread Bryan Kim Artificio
HI, good day! i would like to know id there's a way to connect the postgresSQL with django? regards, On Tuesday, October 15, 2013 1:55:01 PM UTC+8, Mahantesh U wrote: > > Hi All, > > I am new to Django framework. I worked on Flask framework using python. > Please share the sites to learn Dj

Re: dates DateQuerySet includes time

2013-10-15 Thread Chad Vernon
I'm using django 1.5.1 and I guess in in 1.5, the dates method returns datetime objects. So nevermind! On Tuesday, October 15, 2013 5:56:01 PM UTC-7, Chad Vernon wrote: > > I'm trying to use the dates QuerySet method but I am getting different > values in the template: > > view: > timecards =

dates DateQuerySet includes time

2013-10-15 Thread Chad Vernon
I'm trying to use the dates QuerySet method but I am getting different values in the template: view: timecards = Timecard.objects.all() dates = Timecard.objects.dates('date', 'day', order='DESC') template: {% for tc in timecards %} {{ tc.date }} {% endfor %} Oct. 14, 2013 {% for d in dates

SQL cast for custom model lookup

2013-10-15 Thread Aryeh Leib Taurog
I'm working with and I'm wondering if there's a way to get django to add an explicit cast to the SQL generated for field lookups. I have a model that looks like this: class Floats(models.Model): arr = FloatArrayField() Which translates

Test

2013-10-15 Thread Casey Havenor
Test -- 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 post to this group, send email to django-users@googlegroups.co

Best Practices/Examples/Working Demos For Adding Form Fields With Ajax?

2013-10-15 Thread Casey Havenor
I'm using Django 1.4.4 FINAL, crispy-forms with bootstrap 2.0. I have a very large form. I have sections within that form where I need the user to be able to add additional forms based on their needs. (Button add another xyz form). I still need validation to work with with this new fields. I a

ImportError: cannot import name actions

2013-10-15 Thread rok
I have recently been testing the 1.6b4 tag with a new app we are writing, using apache and wsgi. However, I could not get rid of the following issue happening on every request: ... [Tue Oct 15 12:50:36 2013] [error] [client 127.0.0.1] File "/home/rok/apps/django-trunk/django/contrib/gis/admin

Re: Django data to Javascript

2013-10-15 Thread Larry Martell
On Tue, Oct 15, 2013 at 9:54 AM, Scot Hacker wrote: > > > On Tuesday, October 15, 2013 8:45:09 AM UTC-7, larry@gmail.com wrote: >> >> >>> >> You can embed js anywhere in your template, e.g.: >> >> {% for shbf in should_have_found_list %} >> >> my_js_function(shbf); >> >> {%

Re: Django data to Javascript

2013-10-15 Thread Bill Freeman
I'd probably put the script tag outside the for loop. But I don't see where you're passing should_have_found_list to the context. If it's an item (top level) in form.field_mapping, then it needs to be something like: ... {% for shbr in form.field_mapping.should_have_found_list %} ... I d

Re: Django data to Javascript

2013-10-15 Thread Scot Hacker
On Tuesday, October 15, 2013 8:45:09 AM UTC-7, larry@gmail.com wrote: > > >> > You can embed js anywhere in your template, e.g.: > > {% for shbf in should_have_found_list %} > > my_js_function(shbf); > > {% endfor %} > I think you meant to write: my_js_function({{

Re: Django data to Javascript

2013-10-15 Thread Larry Martell
On Tue, Oct 15, 2013 at 6:46 AM, drakko wrote: > Hello! > > I'm new to Django and Javascript and so I need some help with passing list > from django template to Javascript. > > The list is available in template (template.html) by using > > {% for shbf in should_have_found_list %} > > > but I have

Re: Defining new project as a service at nignx

2013-10-15 Thread Roberto López López
Hi Muhammed, I agree with Javier: a django project is never run. In your case it is deployed on gunicorn, which reads/interprets your source code. But it's never started as a service. You can run nginx as a service, though. Roberto On 10/15/2013 11:12 AM, Muhammed TÜFEKYAPAN wrote: > Hell

Re: Defining new project as a service at nignx

2013-10-15 Thread carlos
Hi maybe you need use supervisord http://supervisord.org/ Cheers On Tue, Oct 15, 2013 at 3:12 AM, Muhammed TÜFEKYAPAN wrote: > Hello everyone, > > Yes I know that but now my problem is our new project doesn't seen on > services list and so I can't start it. > > I use gunicorn. > > How can I mad

Re: django cron job - stops after reading some portion of huge file - why is this?

2013-10-15 Thread Bill Freeman
Yes, you should split the db activity into sensible transactions, since information about how to roll back is being stored somewhere (though some DBs may not have a problem with this. You've added a whole new dimension when you say that this data is not, in fact, a local file that you are reading,

Re: django cron job - stops after reading some portion of huge file - why is this?

2013-10-15 Thread doniyor
Awesome, then let me try these things you mentioned.. i let you know then.. thanks in tons for now On Tuesday, October 15, 2013 5:04:02 PM UTC+2, ke1g wrote: > > Yes, you should split the db activity into sensible transactions, since > information about how to roll back is being stored somewher

Re: New to Django

2013-10-15 Thread Roberto López López
>From your link: https://docs.djangoproject.com/en/1.5/intro/tutorial01/#database-setup On 10/15/2013 04:07 PM, Mahantesh U wrote: > yeah ... > https://docs.djangoproject.com/en/1.5/intro/tutorial01/ > > And also wanted know how can I set-up mysql with django? > > On Tuesday, October 15, 2013

Re: New to Django

2013-10-15 Thread Mahantesh U
yeah ... https://docs.djangoproject.com/en/1.5/intro/tutorial01/ And also wanted know how can I set-up mysql with django? On Tuesday, October 15, 2013 7:31:15 PM UTC+5:30, Lloyd Dube wrote: > > You're welcome, Mahantesh :) Did you find the tutorial I mentioned? > > > On Tue, Oct 15, 2013 at 3:56

Re: New to Django

2013-10-15 Thread Sithembewena Lloyd Dube
You're welcome, Mahantesh :) Did you find the tutorial I mentioned? On Tue, Oct 15, 2013 at 3:56 PM, Mahantesh U wrote: > Thanks a lot Lloyd Dube :) > > > On Tuesday, October 15, 2013 5:38:33 PM UTC+5:30, Lloyd Dube wrote: > >> Hi, >> >> Do the tutorial on the official Django website - it will

Re: django cron job - stops after reading some portion of huge file - why is this?

2013-10-15 Thread doniyor
yes, db code is doin all these calls in single transaction, i mean, i am not using transactions, may be this is the reason? this is my cron code: http://pastebin.com/Lrym1z8E i know, very ugly code, it is saving at least some objects into db this is url where i am reading my xml file from: ht

Re: New to Django

2013-10-15 Thread Mahantesh U
Thanks a lot Lloyd Dube :) On Tuesday, October 15, 2013 5:38:33 PM UTC+5:30, Lloyd Dube wrote: > > Hi, > > Do the tutorial on the official Django website - it will show you where > else to look when you are done :) > > > On Tue, Oct 15, 2013 at 7:55 AM, Mahantesh U > > > wrote: > >> Hi All, >>

Re: readonly_fields depending on request

2013-10-15 Thread Roberto López López
Hi Timothy, thanks for your advice. I'm sorry, I've been quite busy lately on other stuff so I had to leave this apart. You are right, maybe I am overcomplicating things. I have simplified my code to: def get_readonly_fields(self, request, obj=None): if not request.user.groups.filter

Re: django cron job - stops after reading some portion of huge file - why is this?

2013-10-15 Thread Bill Freeman
One possibility is that your code keeps all that is read (or something derived from it) in memory, and you are running out. E.g.; Is your database code trying to do all this in a single transaction? Another possibility is that something in the file at that spot triggers a but in your code that co

Re: New to Django cannot figure URLpatterns

2013-10-15 Thread Bill Freeman
Actually, there is a character class \D; it matches any NON-digit. As such this should match title, as long as it contains non digits. But looking at this line from the error message: 8. ^plugin/ ^(?P\d+)/$ [name='detail'] It appears that you are actually using the little \d, contrary to the

Re: Multiple django web applications

2013-10-15 Thread drakko
Hello Thanks for insight guys Yes I'm using mod_wsgi. Drakko piektdiena, 2013. gada 27. septembris 15:21:54 UTC+2, Ben Lopatin rakstīja: > > drakko, using virtualenv will certainly help in isolating your projects > and dependencies. You can host both on the same server, how you go about > doin

Django data to Javascript

2013-10-15 Thread drakko
Hello! I'm new to Django and Javascript and so I need some help with passing list from django template to Javascript. The list is available in template (template.html) by using {% for shbf in should_have_found_list %} but I have no idea how to access this list from Javascript. The should_ha

Re: New to Django

2013-10-15 Thread Sithembewena Lloyd Dube
Hi, Do the tutorial on the official Django website - it will show you where else to look when you are done :) On Tue, Oct 15, 2013 at 7:55 AM, Mahantesh U wrote: > Hi All, > > I am new to Django framework. I worked on Flask framework using python. > Please share the sites to learn Django easi

New to Django

2013-10-15 Thread Mahantesh U
Hi All, I am new to Django framework. I worked on Flask framework using python. Please share the sites to learn Django easily. Thanks Mahantesh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: How to build a social network

2013-10-15 Thread Kumar Anirudha
Hii, I've been developing websites on html, php, javascript for quite some now.. I've been coding on python and made small Django apps too like a blog. I want to know how and what else is needed for a social networking site. On Thursday, 21 April 2011 04:53:37 UTC+5:30, Rodrigo Ruiz wrote: > >

django cron job - stops after reading some portion of huge file - why is this?

2013-10-15 Thread doniyor
I am reading file from url and parsing it and saving some information out of this file into db - using cron job. i am testing now in my local dev. the problem is: job is reading file and saving into db without any problem but after some time, since file is very huge approx. >8GB, job doesnot

Re: def altword_list(self, request, word_id):

2013-10-15 Thread Pepsodent Cola
Hi Leo, get_query() function in class AltwordlistView which I refer to as *Filter-5*didn't give me the ordered list result that I wanted. So somebody on #django IRC helped me to fix that problem by giving me *altword_list()*function which I refer to as *Filter-8*. You can basically ignore all the

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-15 Thread Darion Yaphet
Great !!! It's the point and now successful helloworld ➤ tree . |-- helloworld | |-- __init__.py | |-- __init__.pyc | |-- settings.py | |-- settings.pyc | |-- urls.py | `-- wsgi.py `-- manage.py 1 directory, 7 files thanks a lot 2013/10/15 Leonardo Giordani > As I suspected, th

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-15 Thread Leonardo Giordani
As I suspected, there is a problem with the logging module, which is probably shadowed, i.e. when Django performs "import logging" it imports a different module. Try the following: exactly where you execute the manage.py open an interactive Python shell and do >>> import logging >>> print logging.

Re: Defining new project as a service at nignx

2013-10-15 Thread Muhammed TÜFEKYAPAN
Hello everyone, Yes I know that but now my problem is our new project doesn't seen on services list and so I can't start it. I use gunicorn. How can I made it? On Monday, October 14, 2013 10:03:22 PM UTC+3, Javier Guerra wrote: > > On Mon, Oct 14, 2013 at 12:17 PM, Muhammed TÜFEKYAPAN > > wro

Re: New to Django cannot figure URLpatterns

2013-10-15 Thread Tom Evans
On Mon, Oct 14, 2013 at 11:58 PM, Mark Strickland wrote: > > I am new to using Django and I can get one urls to work, but I cannot get > another. I am running Django 1.5 > > This url works. > > url(r'^$', views.index, name='index'), > > > But if I try to follow this one. > > url(r'^(?P\D+)/$',

Re: AttributeError: 'module' object has no attribute '_handlerList'

2013-10-15 Thread Darion Yaphet
the output exception info as following : ~ ➤ python /usr/bin/django-admin.py startproject hello --traceback Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv self.execute(*args, **options.__dict__) File "

Re: We are hiring!

2013-10-15 Thread Sithembewena Lloyd Dube
Are you only hiring UK developers? On Tue, Oct 15, 2013 at 8:11 AM, Team UK wrote: > Independent freelance Django developers. 2 years minimum experience > required in Django/python, CSS, HTML5, Bootstrap and JS backbone. > > Please email your CV. > > -- > You received this message because you

Re: We are hiring!

2013-10-15 Thread Sithembewena Lloyd Dube
There's a typo in your company name on your website (in the copyright message at bottom left) :-) On Tue, Oct 15, 2013 at 8:11 AM, Team UK wrote: > Independent freelance Django developers. 2 years minimum experience > required in Django/python, CSS, HTML5, Bootstrap and JS backbone. > > Please