Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > y So this is effectively a feed aggregation engine. I would recommend > having a separate daemon running per media source, so that issues with one > media source do not affect the operations of another. > I never would have thought of this application as a feed aggregation engine, but I'

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
> > I suggest that you use Celery. > A very useful tip! > > If people are making HTTP requests of you, that is reason enough to choose > Django. > Well, let me put it this way; I felt in love with Python almost 7 years ago, but when I met Django, this love turned into an obsession you see; I

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
I understand HTTP requests are short lived, I just could not figure out how to handle the possible long responses, I' m rather new to python AND to web programming and when I start mixing things like WSGI my brain just burst. I know about celery, just never thought it would be my allied in this

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
Thanks to each and every one of you for the VERY HELPFUL recommendations you have given me (Avraham Serour, ke1g & James Schneider so far) I really got back more than I expected, but as I told a friend of mine; it was worth every minute of the almost 4 hours it took me to redact this question, n

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread sum abiut
Yes it could be how you have set up your directories. You could try from django.conf.urls import include, url from django.contrib import admin from myproject.polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] On Mon, Feb 1, 2

Re: how do I use the url to filter?

2016-02-01 Thread James Schneider
Have you completed the official Django tutorial? It covers this exact question in detail. https://docs.djangoproject.com/en/1.9/intro/tutorial01/ -James On Feb 1, 2016 3:54 PM, "Dean Johnson" wrote: > Hello all, > > Hopefully someone can shed some light on this for me.. > > I have been followin

how do I use the url to filter?

2016-02-01 Thread Dean Johnson
Hello all, Hopefully someone can shed some light on this for me.. I have been following a blog tutorial, just to get used to Django, and how everything works with url/views/models etc... but I have become stuck. So I am able to go to the admin panel and create,save "blogs", when I visit http:

Re: Django formtools wizard produces blank page (No error returned)

2016-02-01 Thread James Schneider
On Sun, Jan 31, 2016 at 2:16 PM, Martín Torre Castro < martin.torre.cas...@gmail.com> wrote: > Hi, James, > > I'm trying with the django-debug-toolbar. I can't see anything because the > message "500: INTERNAL SERVER ERROR" appears. I tried in all the options > and keeps showing this 500 code mess

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread James Schneider
On Sun, Jan 31, 2016 at 8:51 PM, Mario R. Osorio wrote: > I need comments on an application I have been recently proposed. The way > it is being envisioned at this moment is this: > > > One python daemon will be listening for different communications media > such as email, web and SMS (web also).

Re: How to limit ForeignKey field to another model FK depending on value

2016-02-01 Thread James Schneider
> > The question: In the model Project how do i show only provinces from > Province model, that has country set to X (If i have countries "USA" and > "Canada" i want the field province to show list of provinces in "USA" > only/preselecting country). > > You would filter the choices available to the

Re: Manually setting the session cookie

2016-02-01 Thread monoBOT
Think i havent explained my problem very well ... Since its a Saas the users are inside schemas/tenants one user can have accounts inside different schemas (they share username and password) ... i want to let the user move throught different tenants more or less freely ... now i have designed a vi

How to limit ForeignKey field to another model FK depending on value

2016-02-01 Thread Ahmad Zoughbi
I have the following models in Django, and using smart-selects: class Country(models.Model): name = models.CharField(max_length=100) class Province(models.Model): name = models.CharField(max_length=100) country = models.ForeignKey(Country) class City(models.Model): name = model

[ANNOUNCE] Django releases issued: 1.9.2 (security) and 1.8.9 (bugfix)

2016-02-01 Thread Tim Graham
Today the Django team issued 1.9.2 as part of our security process. This releases address a security issue, and we encourage all users to upgrade as soon as possible. The Django 1.8.9 release fixes several bugs in 1.8.8 but no security issues as the issue fixed in 1.9.2 doesn't affect older ver

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Bill Freeman
I suggest that you use Celery. If people are making HTTP requests of you, that is reason enough to choose Django. But do not wait for long calculations to complete before returning an HTTP result. Instead redirect to a page containing simple JavaScript that will poll for a result. PostgreSQL is

Re: How to write Scripts

2016-02-01 Thread Derek
Here's a good introduction: http://www.tutorialspoint.com/python/python_database_access.htm On Monday, 1 February 2016 14:22:05 UTC+2, Rajkumar P wrote: > > how to write python scripts for storing external database > -- You received this message because you are subscribed to the Google Groups "

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread jfragos via Django users
Is it possible that that the way the sys and user paths are set up can cause this problem. When I used the command prompt of python from the python directory I received the error, however, when I changed the directory to c:\djangoprojects\mysite\polls and then imported views it worked fine.

Re: Manually setting the session cookie

2016-02-01 Thread 'Tom Evans' via Django users
On Mon, Feb 1, 2016 at 10:13 AM, monoBOT wrote: > Hello django! > > Im creating a saas with django, due to some project requirements need to > manually change the user "on the fly" but have problems with the cookie, > since I dont know how to manually (read programatically) set it. > > Any insight

How to write Scripts

2016-02-01 Thread Rajkumar P
how to write python scripts for storing external database -- 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 t

Re: Manually setting the session cookie

2016-02-01 Thread Daniel Chimeno
Hello, I'm sure some time ago I saw an app where you can change the current user logged (something like ``su user``), I can't remember the name sorry. El lunes, 1 de febrero de 2016, 11:15:03 (UTC+1), monoBOT monoBOT escribió: > > Hello django! > > Im creating a saas with django, due to some pr

Manually setting the session cookie

2016-02-01 Thread monoBOT
Hello django! Im creating a saas with django, due to some project requirements need to manually change the user "on the fly" but have problems with the cookie, since I dont know how to manually (read programatically) set it. Any insights or a good place to start? Thanks! -- *monoBOT* Visite mi