Re: how can i get all values of a field

2014-05-23 Thread Lachlan Musicman
No, that wouldn't work because Category looks like a var on Novel, not a model in it's own right. Novels.objects.filter(category="comedy") is how to get a distinct category. To get the list of categories used, use distinct for a quick hack - something like: Novel.objects.order_by('category').dis

Re: how can i get all values of a field

2014-05-23 Thread Jonathan Querubina
Hi dota and java, If your model for the categories is Category, you would use: Category.objects.all() Sent from my iPad > On May 23, 2014, at 23:23, dotaandj...@gmail.com wrote: > > i can't find a more effective method from the documentation,but thank you all > the same > > 在 2014年5月23日星期五UT

Re: how can i get all values of a field

2014-05-23 Thread dotaandjava
i can't find a more effective method from the documentation,but thank you all the same 在 2014年5月23日星期五UTC+8下午11时12分13秒,sacrac写道: > > Hi, you read the documentation? > https://docs.djangoproject.com/en/1.6/ref/models/querysets/ > > > On Fri, May 23, 2014 at 6:36 AM, > wrote: > >> In Models i decl

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Rob Skidmore
Glad I could help. On Fri, May 23, 2014 at 3:49 PM, Jonathan Querubina wrote: > I have tryied a lot of them, and this one was the salvation > > > http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > > Thanks Rob! > > On May 23, 2014, at 12:17 PM, carlos wrot

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
I have tryied a lot of them, and this one was the salvation http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ Thanks Rob! On May 23, 2014, at 12:17 PM, carlos wrote: > Hi, Digital Ocean have many tutorial > begginner : > https://www.digitalocean.com/comm

Building and firing a web page as an action under admin

2014-05-23 Thread Victor
Django 1.6.4 I've built an application to manage a medical warehouse resorting exclusively to the admin interface and postgresql 9.3. To put it in a nutshell, among other things I have an admin form using inlines that for each patient lists the medical items he/she has been given and the date of

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread carlos
Hi, Digital Ocean have many tutorial begginner : https://www.digitalocean.com/community/articles/how-to-deploy-a-local-django-app-to-a-vps advanced: https://www.digitalocean.com/community/articles/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn Cheers On Fri, May 23, 2014 at

Re: how can i get all values of a field

2014-05-23 Thread carlos
Hi, you read the documentation? https://docs.djangoproject.com/en/1.6/ref/models/querysets/ On Fri, May 23, 2014 at 6:36 AM, wrote: > In Models i declare Novel: name,category > table structure: > --- > id| name |category >

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-23 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, May 23, 2014 at 5:25 AM, Wellington Cordeiro wrote: > Cal, > > I don't have it installed in my static folder, I have the gem installed > and I was under the impression that Sass could find the installed > libraries, which I guess I was mistaken. > > What would be your recommended tool? Dja

Re: Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Rob Skidmore
Found this after a digging for a bit. Might help. http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ On Friday, May 23, 2014 4:36:23 AM UTC-6, Jonathan Querubina wrote: > > Hi guys, i am on my first deploy and loosing my hair over this. > > Could anyone send

Re: Model Objects and Updating db via XML

2014-05-23 Thread Amirouche Boubekki
Héllo (again), 2014-05-14 22:41 GMT+02:00 Sayth Renshaw : > Thanks Tom, I have set up a way to extract the elements I want with > xmltodict and played with lxml.objectify last night and that would work as > well. > > But what exactly in django models am I using to bring in the data? > Django kn

Re: int() argument must be a string or a number, not 'datetime.date'

2014-05-23 Thread MikeKJ
*D'oh* needed to reference back to the date model as in qs = Booking.objects.filter(arrival_date__travel_date__exact=form.cleaned_data['arrival_date']) arrival_date is a int id reference!!! sorry and thanks to anyone who was looking at this -- You received this message because you are subsc

Re: How to find list of blocking issues for django releases?

2014-05-23 Thread Lorenzo Peña
https://code.djangoproject.com/query?status=!closed&severity=Release%20blocker&group=component -- 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+unsub

how can i get all values of a field

2014-05-23 Thread dotaandjava
In Models i declare Novel: name,category table structure: --- id| name |category --- now i want to get all category,but i have no idea,who can help me? my english is poor,please don't joke me -- You received th

How to find list of blocking issues for django releases?

2014-05-23 Thread Ryan Osborn
How can I go about finding a list of the issues that are blocking a djago release? -- 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...@goog

Dynamically updating field with JQuery

2014-05-23 Thread Jason S
Hi, I'm sure this has been discussed to death, however the examples i've seen involve 3rd party django apps or are very complicated and I haven't been able to find a clear example which.I can repurpose. I'm new to development so am building up a Django website to help grow my skills, but have a

Tutorial to deploy (with install instructions) = django+gunicorn+nginx

2014-05-23 Thread Jonathan Querubina
Hi guys, i am on my first deploy and loosing my hair over this. Could anyone send me a tutorial on how to make this deploy? I am on DigitalOcean, but their tutorial doesnt work, even if i use all the same configuration, virtualenv names and so on... Thanks guys! -- You received this message b

ImportError: No module named django.core.wsgi

2014-05-23 Thread Satinderpal Singh
ImportError: No module named django.core.wsgi I am facing the above error while deploying Django with Apache. Here is my Apacahe conf file contents: ServerAdmin webmaster@localhost WSGIPythonPath /home/user/site:/home/user/.virtualenvs/test/lib/python2.7/site-packages

Django 1.6.4 debug-toolbar confusing error

2014-05-23 Thread Florian Auer
Hi I am running 2 django 1.6.4 projects, both with debug toolbar enabled. The first one ist a simple project, following the a cookbook tutorial and the toolbar works fine inside. The second project ist the one, I'll wnated to start the real development in. But there every call to the most pane

Re: int() argument must be a string or a number, not 'datetime.date'

2014-05-23 Thread MikeKJ
Ummm do I need to use Q? just dawned on me -- 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

int() argument must be a string or a number, not 'datetime.date'

2014-05-23 Thread MikeKJ
According to me in the qs line I am looking at, for example, results from Booking where 2014-07-17 equals 2014-07-17 as in date field comparison I dont even see where an int() argument comes into it dl_reports.py class SelectDate(forms.Form): def __init__(self, *args, **kwargs): su

Re: Why Django Apps Suck

2014-05-23 Thread Delusional Insanity
I've seen enough great reusable packages for Django. I've also seen a lot of really bad packages and even have been forced to use bad apps in production, that you should really either fork or hack in a very strange way. Some awesome packages: - South https://pypi.python.org/pypi/South - django

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
In case anyone else ends up with same problem, I was using request.path instead of request.path_info. P. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the example ^times$ patt

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
Ugh nevermind. Yes it's a bug - but in my code. I'll figure it out. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the example ^times$ pattern): > > 1) When WSGIScriptAlias is

Re: Any job offer for Junior Django Developer?

2014-05-23 Thread Mariusz Dev
Thank you for the feedback :) I currently live and work in Poland. I'm ready to move to a country in Europe and working remotely with people from the USA. Best W dniu piątek, 23 maja 2014 01:52:42 UTC+2 użytkownik Russell Keith-Magee napisał: > > > On Thu, May 22, 2014 at 10:25 PM, Mariusz De

Re: Python Math and Physics problem solving

2014-05-23 Thread Team UK
Hello We are developing a Django app that has a calculator to calculate prices for our products and services on our website. I am looking for someone with skills in solving calculator problems and make the solution cover all the products. Are you good with Math and physics? Email us your skype

Django - Mysql datetime timezone naive and aware

2014-05-23 Thread Gabriel
Hello folks, I've found an abnormal behavior migrating a project from php - mysql to django 1.6.x - mysql and timezone naive to aware datetimes, I've posted my insights about it in stack overflow, if anyone can help will be more than welcome! Many thanks! Stackoverflow link -> http://stackove

Re: How to execute query for multiple table using cursor in Django

2014-05-23 Thread Kelvin Wong
https://docs.djangoproject.com/en/1.6/topics/db/sql/ K On Thursday, May 22, 2014 11:31:26 PM UTC-7, swapnil srivastava wrote: > > Hi Experts, > > I just want to execute queries and subqueries in Django . > Can anybody please tell me how to use cursor for execute queries in Django > framework in