Hi,
Is that posible to make context manipulation (in every views) before
send to templates from middleware?
I use Django 1.3 at this case.
Eg:
views.py
def view_function:
return render(request, templates, data)
def other_function:
return render(request, templates, data)
Middleware w
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
posi
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:
htt
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
level after the offi
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/
mo
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 dynamically
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 for
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
https://groups.google.com/d/msg/django-users/-
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 i
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
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 templates for django-admin.py
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 ot
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 spe
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
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 r
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 Googl
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 messa
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 the user could create a
> 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?
Interesting
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 Produc
>
> 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 users
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)
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)
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)
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
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 appr
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'),
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 done
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 b
> 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 reqGET.has_key
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 matche
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 retu
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 ever
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 streamingm
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 mapa
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
> incredible photographs and st
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 approximat
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 Form. I create a template that use a forms.FileField
(text) and
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 uplo
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 while
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 vi
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
submissio
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
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 = models.CharField(max_len
44 matches
Mail list logo