Re: help with ManyToMany

2016-01-31 Thread Peter of the Norse
I hope you forgive me skipping all of that getattr nonsense. others = Studio.objects.filter(studio_group__in = choice.studio_group_set.all()).exclude(pk=choice.pk) > On Jan 28, 2016, at 2:16 AM, dave.l wrote: > > Hi, > > I am happy with my models, and I'm fine

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

2016-01-31 Thread Avraham Serour
if a process takes too long to complete it won't be able to process new requests, so you will be limited to the number of workers you told uwsgi to use. http requests should be short lived, if you have some heavy processing to do the http request should return with something like 'accepted' and

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

2016-01-31 Thread Mario R. Osorio
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). IMHO, it is necessary to have a daemon per each media. This

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
What is your app name? are you sure the name is polls??. The solution i mention works. On Mon, Feb 1, 2016 at 9:32 AM, jfragos via Django users < django-users@googlegroups.com> wrote: > I tried your solution and had the same results > > from django.conf.urls import include, url > from

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
I tried your solution and had the same results from django.conf.urls import include, url from django.contrib import admin from polls import views urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] RESULTS Traceback (most recent call last): File

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

2016-01-31 Thread Martín Torre Castro
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 message. But it comes to my attention that, for example, the tooltip for "templates" shows "3 templates

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
The problem is how you import your views form your urls.py you have to import also your poll views from mysite urls.py you should try this: mysite--->mysite--->urls.py from django.conf.urls import patterns, include, url from django.contrib import admin from poll import views urlpatterns =

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
That is something I have tried. When I do it that way and run the program there is no error. However, when I attempt to start the server from the command prompt I am presented with the following meesages which ends with 'Import error: No module named views' c:\djangoprojects\mysite>python

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
please try: from polls import views or import views On Sun, Jan 31, 2016 at 6:59 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Thank you for the response. Since there are 2 of them I have posted > both. I have highlighted in yellow the places where they reside. I have

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
Thank you for the response. Since there are 2 of them I have posted both. I have highlighted in yellow the places where they reside. I have also attached the outer directory structure showing c:\djangoprojects and also a shot of the mysite structure. I set this up as per the tutorial

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
can you post your urls.py On Sun, Jan 31, 2016 at 5:04 PM, jfragos via Django users < django-users@googlegroups.com> wrote: > Hi, > I am very new to Python and Django but not to programming. I have > been programming for 30 years. That said I am trying to work my way thru > the Django tutorial

Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
Hi, I am very new to Python and Django but not to programming. I have been programming for 30 years. That said I am trying to work my way thru the Django tutorial part 1 and I am confronted with the following error I can't get past: Traceback (most recent call last): File "urls.py", line 3,

Re:Re: self.publish.strftime('%m')

2016-01-31 Thread 林攀
it works well .thanks . -- 林攀 在 2016-01-31 02:57:19,"Peter of the Norse" 写道: You could use self.public.strftime(‘%Y’) without any problems here. If fact, it might be a bit safer if the year is ever less then four digits. Since month and day are exactly two