Re: online transactions with python

2012-01-31 Thread Markus Gattol
https://github.com/agiliq/merchant the braintree backend is good, so is stripe. Depends on your type of transaction and the pricing you get. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://group

geocoding - getting latlng from JavaScript, send to server, store into MongoDB

2012-07-01 Thread Markus Gattol
Hi folks, I am using https://github.com/hmarr/mongoengine and Django 1.4 for my current project. MongoDB allows for easy geo queries e.g. you have one latlng and want all other points in your database within a certain radius... all that's fine and working already. Now I want to use Google Map

Re: geocoding - getting latlng from JavaScript, send to server, store into MongoDB

2012-07-03 Thread Markus Gattol
Answering to my own question: this is what I ended up using http://dajaxproject.com/maps/ to send coordinates (latlng) back to the server (from the users browser) and then store it in MongoDB. I can then easily query MongoDB for near points, send the data back to the users browser and draw mark

Re: Internationalized URL different per language

2012-07-13 Thread Markus Gattol
Have a look at https://github.com/trapeze/transurlvania On Friday, 13 July 2012 21:48:54 UTC+2, galgal wrote: > > I need to make an urlpattern different for each language, but following to > the same view. > > for example: > url(r'^category/(?P[\w-]+)/, 'news.views.category', > name='category'),

Re: Query Distance from User

2012-07-15 Thread Markus Gattol
You can use geolocation https://developers.google.com/maps/articles/geolocation and if that's not accurate enough let the user provide his address and with it query Google's https://developers.google.com/maps/documentation/javascript/geocoding API The tricky bit here is if you want to get the l

Re: Query Distance from User

2012-07-15 Thread Markus Gattol
I can also recommend https://github.com/HPNeo/gmaps as a wrapper, speeds up and simplifies dealing with Google's API a lot. On Sunday, 15 July 2012 17:30:16 UTC+2, Markus Gattol wrote: > > You can use geolocation > https://developers.google.com/maps/articles/geolocation and

template filter to split string

2012-07-19 Thread Markus Gattol
within the head section of my base.html I am using {% block title %} {% if request.path_info == '/' %} home {% else %} {{ request.path_info | slugify }} {% endif %} {% endblock

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 messa

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 posi

two independent Django sites, one user - share User objects

2011-09-12 Thread Markus Gattol
Say I have n (e.g. three) independent Django sites and one user. Rather than having n times a password/username I'd like to share this across all n sites. Also a users profile [0] and so forth. Now assume I don't want to use OpenID, how would I be able to have User objects in sync across n Djang

Re: Virtualenv and Django in Production

2011-09-20 Thread Markus Gattol
- it's just symlinks i.e. not more overhead - you won't clutter your system Python or vice versa when you up/downgrade something - easy to detect http://www.markus-gattol.name/ws/python.html#detect_a_virtualenv - if you want a production setup use e.g. gunicorn/nginx or even better uwsgi/mon

Re: Platform system with Django?

2011-09-26 Thread Markus Gattol
Have you had a look at the sites framework yet: https://docs.djangoproject.com/en/dev/ref/contrib/sites/ That might just be what you're after... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://

Re: Web Designer

2011-09-26 Thread Markus Gattol
I'd say most people us a simple text editor such as Vim, Emacs... If you use runserver and and your browsers auto-reload for that tab then that's all you need. If you want to be a bit speedier then you can use things like Sass/Compass for your CSS and maybe HamlPy for your HTML. Both have "watch

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
if your STATICFILES_DIRS tuple contains '/a/b/static/img' then it will work if you put foo.jpg into /a/b/static/img/foo.jpg and have STATIC_URL = '/static/'. STATIC_ROOT doesn't have something to do with that, it's used to collect static stuff like CSS files from your apps etc. I think if people

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
Here's what I think is semantically good distinction: PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) (that's the dir containing your settings.py, that dir is usually one dir below your virtualenv, I simply name it "pr". You can then use PROJECT_ROOT to reference such as: STATIC_RO

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
> > > Your STATICFILES_DIRS should not be set to static. > Create a new theme directory, put your files there and update your > STATICFILES_DIRS. > Have a look at > http://www.linovia.com/blog/django-staticfiles-troubleshooting/ for an > example. > Yeah, read that post and I disagree. Introduc

Re: PayPal Adaptive Payments

2011-10-08 Thread Markus Gattol
Rather than reinventing the wheel take a look at https://github.com/agiliq/merchant It's possible to split one payment into 90,5,5 as you want, all you need to do is write a little logic atop merchant. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Ajax replacement in django

2011-10-12 Thread Markus Gattol
If you don't want to do AJAX but still need to have a bidirectional link between client and server then websockets is probably what you want. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://grou

ZeroMQ / Mongrel2

2011-11-07 Thread Markus Gattol
Maybe sombody has given http://code.google.com/p/django-dmq and Mongrel2 a spin already and can report how it went? The reason I am interested is because it would allow me to get rid of WSGI altogether and have this stack (ZeroMQ being directly Mongrel2 for example):

Re: help_text line continuation

2011-11-14 Thread Markus Gattol
have a look at http://www.markus-gattol.name/ws/python.html#multi-line_strings_expressions ...it's the same for statements, just put stuff inside ( and ) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Simple task dispatching (How heavy is celery + RabbitMQ)

2011-11-28 Thread Markus Gattol
You don't need to roll your own... have a look at https://github.com/dmgctrl/django-ztask It's based on ZeroMQ and really lightweight compared to any alternative with a broker (yes, it's brokerless but that's a good thing I think for most use cases which don't really need a broker). -- You re

Re: Alternatives to celery

2012-01-16 Thread Markus Gattol
Have a look at https://github.com/dmgctrl/django-ztask It's based on ZeroMQ, you can schedule and background tasks in various ways, same machine or even across the network. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussio

Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Markus Gattol
you either use your own MTA (e.g. postfix) or you use a third party such as Amazon SES for which there is a Django application: https://github.com/hmarr/django-ses -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

Re: django-ztask

2011-06-09 Thread Markus Gattol
since you want feedback, that's http://www.reddit.com/r/Python/comments/hve19/django_zeromq_djangoztask/ probably something to watch :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegrou