Re: Query Distances from User

2012-07-24 Thread Markus Gattol
I see. You could use geolocation and still let the user input his location manually though even after you got a result via geolocation. The manual result via geocoding you can do in various ways like simple 'user puts in address, lat/lng is returned' or maybe even 'user drags marker to his

render a models slug field as a url

2012-07-24 Thread Matthew Meyer
Hello all, I'm trying to load the url of a model created with get_absolute_url() programmatically in my view. There are basically three steps I need to accomplish this: 1. make sure @permalink is working correctly. This step I am fairly confident I have completed. Here is the model I use:

Re: All of the sudden getting TemplateDoesNotExist error

2012-07-24 Thread Karen Tracey
On Tue, Jul 24, 2012 at 11:41 AM, rmschne wrote: > I have made no changes to settings.py. Honest. I'm running Django 1.4.0 > alpha. Why alpha rather than the released version? Not that I think it has anything to do with the problem, it just seems odd to stick with an alpha

Re: Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
I also want to point out the reason why I am trying to bring one model into another. MadTrak/ manage.py MadTrak/ Artists/ manage.py Artists/ initialize/

Return SQL calculation within queryset

2012-07-24 Thread jondbaker
I've implemented the spherical law of cosines to aid in proximity-based searching. Everything works correctly, but I'm a bit stumped as to how I can return the calculated distance for a record given that it's not a field in the model. In the Model Manager below, row[1] represents the

Re: object has no attribute '_state'

2012-07-24 Thread Blair Trump
Thank you! Just also had this problem today, 24 July 2012. Resolved now. :) Cheers! On Thursday, July 12, 2012 10:30:27 AM UTC-7, aria wrote: > > Hello, > > I realize this post is from 2010, but I also had this problem as of July > 12 2012. It's still one of the first results in a search

Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
I apologize for posting more than once I just wanted to make changes. I appreciate the help in advance! JJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Query Distances from User

2012-07-24 Thread JJ Zolper
I dont believe I said it wasnt supported. Currently I am interested in having the user have the flexibility to change and update their location manually so they can find results in their area. I dont believe geolocation is the answer for that. I have the user input city and state and use WGS84

Can i use mongodb for product/catalog?

2012-07-24 Thread Paul
I'm developing an application that receives products through product-feeds. Now each product will have specific attributes; a t-shirt will for example have a size attribute and maybe color, while a bottle of shampoo will have an attribute specifying the contents or weight. I could solve this in

Re: how to make template for startapp and startproyect?

2012-07-24 Thread Kurtis Mullins
Check this post out for some decent tips: http://stackoverflow.com/questions/5661861/customised-settings-files-using-django-admin-py-startproject On Tue, Jul 24, 2012 at 4:39 PM, Thomas Lockhart wrote: > On 7/24/12 11:24 AM, kase wrote: > >> hello.. i wish make my

Re: how to make template for startapp and startproyect?

2012-07-24 Thread Thomas Lockhart
On 7/24/12 11:24 AM, kase wrote: hello.. i wish make my templates for django-admin.py startproyect and startapp but i dont know how, and i dont find documentation to explain how to make it (i find documentation from how to use, but not how to make) There may be a better way suggested by

Re: json objects and PUT/GET Requests/Response

2012-07-24 Thread sanket
Hi Svs, please have a look at django-tastypie (https://github.com/toastdriven/django-tastypie). it's great for the REST purpose. Thanks, sanket On Tuesday, July 24, 2012 12:09:14 PM UTC-7, svs wrote: > > Hello, > > I am new to both DJANFGO & REST. > Here is my problem,I have defined CRUD

Re: json objects and PUT/GET Requests/Response

2012-07-24 Thread Masklinn
On 2012-07-24, at 21:09 , svs wrote: > Hello, > > I am new to both DJANFGO & REST. > Here is my problem,I have defined CRUD specific to that of MongoDB in my > Models.py file, now I am trying to pass data to be written into this DB > using http PUT requests. > 1.How parse json objects in the

json objects and PUT/GET Requests/Response

2012-07-24 Thread svs
Hello, I am new to both DJANFGO & REST. Here is my problem,I have defined CRUD specific to that of MongoDB in my Models.py file, now I am trying to pass data to be written into this DB using http PUT requests. 1.How parse json objects in the body of HTTP request ? 2.How to create HTTP put/get

how to make template for startapp and startproyect?

2012-07-24 Thread kase
hello.. i wish make my templates for django-admin.py startproyect and startapp but i dont know how, and i dont find documentation to explain how to make it (i find documentation from how to use, but not how to make) THX! -- You received this message because you are subscribed to the

Re: Query Distances from User

2012-07-24 Thread Markus Gattol
You're mistaken if you think only mobile devices support geolocation queries; current Chrome for example supports it already - info: https://developers.google.com/maps/articles/geolocation - test your browser: http://hpneo.github.com/gmaps/examples/geolocation.html -- You received this

Re: ManyToMany relationship with intermediate model and admin list display with each realtion with value as diferent column

2012-07-24 Thread Ignacio Soto
ok, it looks very nice i will try and let you know.. thanks 2012/7/24 Tomas Neme > > > as shown in the picture, this i could do by add a method in the model > > getTienda1 and return the stock and do it for each store, but i want it > to > > be created dinamically because

Re: ManyToMany relationship with intermediate model and admin list display with each realtion with value as diferent column

2012-07-24 Thread Tomas Neme
> as shown in the picture, this i could do by add a method in the model > getTienda1 and return the stock and do it for each store, but i want it to > be created dinamically because the user could create a new store and it will > not be there. > > so this is my cuestion: can i do that?

ManyToMany relationship with intermediate model and admin list display with each realtion with value as diferent column

2012-07-24 Thread Ignacio Soto
Hey guys i have an issue, i don know if it really can be done. im using django 1.3 i have a model producto(product) and Tienda(store) and a product could be in one or more stores, so i created a many to many relationship but y have a stock in each store, so i use the intermediary model

Re: How To Display Non-Modal Popup From Resulting Asynchronous Javascript Request

2012-07-24 Thread curious1
> > Thanks for the help. You revealed some things to me which I hadn't > understood or tried before, but now I have. The 404 problem has been > resolved and things are working much better. Thanks again. -- You received this message because you are subscribed to the Google Groups "Django

Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
Hello fellow Django developers, So here is my model that interfaces with my Artists database: from django.db import models class Artist(models.Model): name = models.CharField(max_length=30) genre = models.CharField(max_length=30) city = models.CharField(max_length=30)

Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
Hello fellow Django developers, So here is my model that interfaces with my Artists database: from django.db import models class Artist(models.Model): name = models.CharField(max_length=30) genre = models.CharField(max_length=30) city = models.CharField(max_length=30)

Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
Hello fellow Django developers, So here is my model that interfaces with my Artists database: from django.db import models class Artist(models.Model): name = models.CharField(max_length=30) genre = models.CharField(max_length=30) city = models.CharField(max_length=30)

Discovering Artists through GeoDjango by referencing my Artists database

2012-07-24 Thread JJ Zolper
Hello fellow Django developers, So here is my model that interfaces with my Artists database: from django.db import models class Artist(models.Model): name = models.CharField(max_length=30) genre = models.CharField(max_length=30) city =

All of the sudden getting TemplateDoesNotExist error

2012-07-24 Thread rmschne
I have made no changes to settings.py. Honest. I'm running Django 1.4.0 alpha. The variable TEMPLATE_DIRS is pointing to a folder which exists and the template 'directory.html' i wish to load in in that folder, /Users/rmschne/Documents/source/django/projects/socmgmt/templates/. My ID has

Re: Django Models: How to allow users to select an image from a choice of 3 pictures

2012-07-24 Thread Melvyn Sopacua
On 16-7-2012 3:26, croberts wrote: > I am familiar with the use of Field.choices for text. Then that's all you need. Let the template handle the image rendered: EMO_CHOICES = ( ('smiley_sad.png', 'sad sad emo'), ('smiley_neutral.png', 'ask me later'),

Re: Catch or raise exception designissue

2012-07-24 Thread Melvyn Sopacua
On 15-7-2012 21:30, Jani Tiainen wrote: > In case of incorrect request I prefer to raise 400 (Bad Request) with some > explanation what went wrong. Since 500 is usually meant for "catch all" > unexpected errors that happened in web server and server can't be more > precise what happened. I've

Re: Query Distances from User

2012-07-24 Thread JJ Zolper
Thank you for the great information! Currently I'm focused on my desktop browser platform but if I move to mobile I'll consider GeoLocation! JJ On Tuesday, July 24, 2012 10:56:34 AM UTC-4, Melvyn Sopacua wrote: > > On 15-7-2012 4:30, JJ Zolper wrote: > > > So i was thinking maybe GeoIP might

Re: How To Display Non-Modal Popup From Resulting Asynchronous Javascript Request

2012-07-24 Thread Tomas Neme
> The current URL, mediahelp/comphelp/mediaHelpPopup.html, didn't match any of > these. > > The code from the comphelp url view is very basic and looks like this: > def component_help(request): > view = "component_help" > dctnry = {} > reqGET = request.GET.copy() > if

Re: Query Distances from User

2012-07-24 Thread Melvyn Sopacua
On 15-7-2012 4:30, JJ Zolper wrote: > So i was thinking maybe GeoIP might be good because it will use the users > location and last known GeoIP of the artist for example. > > I was curious if anyone had any ideas or better ideas then I had. IP addresses are only good if the remote address

Re: How To Display Non-Modal Popup From Resulting Asynchronous Javascript Request

2012-07-24 Thread Daniel Roseman
On Tuesday, 24 July 2012 15:03:49 UTC+1, curious1 wrote: > So is there a problem with the url used above(the href field in the popup > function)? If so what's wrong with it? Previously the call seemed to be > successfull as well as the return, since I was previously able to display > the

Re: phpBB3 to DjangoBB migration...

2012-07-24 Thread jens
jens wrote: > The last thing to migrate is the topic subscriptions, but django can't > handle the model. See: https://github.com/jedie/django-phpBB3/issues/5 This is now implemented with commit: https://github.com/jedie/django-phpBB3/commit/2c4835fceb1c7dc8df30b1ef50b2cc06d4425f5c So i think

Re: How To Display Non-Modal Popup From Resulting Asynchronous Javascript Request

2012-07-24 Thread curious1
OK. sorry for not providing more information previously. Currently here's the 404 I'm getting back when I submit the asynchronous request: Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/mediahelp/comphelp/mediaHelpPopup.html Using the URLconf defined in

Re: ForeignKey as dropdown list, get user's choice

2012-07-24 Thread Dmitry Zimnukhov
First you say that the field "is being rendered on the template as dropdown list", and then "it's not rendered as a classic html select" How is it rendered? Isn't html select a drop-down list? By the way models.ForeignKey is a model field, not a form field. How is your form defined? 2012/7/24

Re: Washington, D.C.

2012-07-24 Thread Marcin Tustin
Unless I'm mistaken, they already posted an ad for this job to this list. On Tue, Jul 24, 2012 at 9:43 AM, Andrew Moore wrote: > Seeking a senior Django developer with 5 years experience to develop > applications for a world famous media company (think a century of >

Washington, D.C.

2012-07-24 Thread Andrew Moore
Seeking a senior Django developer with 5 years experience to develop applications for a world famous media company (think a century of incredible photographs and stories in its signature monthly magazine) in Washington, D.C. Job is permanent, with full benefits. Compensation would be

R: Re: forms.FileField

2012-07-24 Thread francescobocca...@libero.it
Thanks, Francesco Messaggio originale Da: kmtra...@gmail.com Data: 24/07/2012 14.11 A: Ogg: Re: forms.FileField On Tue, Jul 24, 2012 at 8:05 AM, francescobocca...@libero.it wrote: Hi all, i have a question about

Re: forms.FileField

2012-07-24 Thread Karen Tracey
On Tue, Jul 24, 2012 at 8:05 AM, francescobocca...@libero.it < francescobocca...@libero.it> wrote: > Hi all, > i have a question about Form. I create a template that use a > forms.FileField > (text) and forms.FileField to upload a file. > I fill a forms.FileField field and forms.FileField. I

forms.FileField

2012-07-24 Thread francescobocca...@libero.it
Hi all, i have a question about Form. I create a template that use a forms.FileField (text) and forms.FileField to upload a file. I fill a forms.FileField field and forms.FileField. I upload the file without errors but when the page is reaload only forms.FileField is filled with last text

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-24 Thread Rob
Sometimes the browser cache is making trouble too. Especially with Firefox I occasionally have this kind of problems. Clear the browser cache, or test with a different browser mostly helps. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

ForeignKey as dropdown list, get user's choice

2012-07-24 Thread mapapage
Hello! I have a form including a field: veh_id1 = models.ForeignKey(Vehicles)) that is being rendered on the template as dropdown list. Now I want according to the user's choice in that list some other fields of my form to be auto-completed and displayed on the template before the form

Re: Retrieve Data from Database

2012-07-24 Thread Daniel Roseman
On Tuesday, 24 July 2012 08:00:02 UTC+1, Madhu wrote: > > Hi! > I am new in django, i want to get the table from one table also want the > some content from another table. > Can anybody tell me how it should be done? > > My module class structure is as below > > class A(models.Model): > name

Retrieve Data from Database

2012-07-24 Thread Madhu
Hi! I am new in django, i want to get the table from one table also want the some content from another table. Can anybody tell me how it should be done? My module class structure is as below class A(models.Model): name =models.CharField(max_length=100) content =

Re: Merging results from two tables

2012-07-24 Thread Madhu
Hi! How should i get the details from B and some content of A using that foreign key? Thanks Madhu On Saturday, January 31, 2009 10:37:58 PM UTC+5:30, Daniel Roseman wrote: > > On Jan 31, 12:27 pm, Markus wrote: > > Hi > > > > just starting to use Django, am stuck with the

can't attach more info to User

2012-07-24 Thread heni yemun
Hi, When i used to add more info to User using the method described in the standard specification and the inheritance method i couldnot do it. Here is what it says: My addon model UserProfile is composed of char, integer, date fields. And when i create a user it says sth like 'column username