Django test command fail after changing models.py to a directory structure

2019-01-10 Thread Gonzalo Amadio
This is in Django 2.0 , python 3.6.5 I have an app called posts, and I changed models.py to a folder structure, i.e., create a directory models and move the file models.py insid. Also config __ init__.py file, as explained next. The project runs ok, but my test suite fails. In my settings, i

How can I launch a page from a model method

2019-01-10 Thread Mike Dewhirst
Depending on field content before or after saving, it may - or may not - be necessary (in the Admin) to launch a non-Admin page. In the Admin one particular model can have a combination of properties which require a payment. I want to launch a payment page if that combo is detected. How can

Re: Django template translation not working as expected

2019-01-10 Thread shiva kumar
Can you explain what are django translation On Thu 10 Jan, 2019 11:59 pm Ashutosh Das I am using django 2.1 , here is all the settings related to translation: > > > MIDDLEWARE = [ > 'corsheaders.middleware.CorsMiddleware', > 'django.middleware.security.SecurityMiddleware', > 'django.c

SPAM sent via this list?

2019-01-10 Thread rbrown107074
Helen, you got that shit right!! -- 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 this group, send email to

Django template translation not working as expected

2019-01-10 Thread Ashutosh Das
I am using django 2.1 , here is all the settings related to translation: MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware',

Re: How & Where are Django View Functions Called?

2019-01-10 Thread Vivek Jha
you have to call in urls.py from django.urls import path projectname.appname.views import home url patterns=[ path('home/',home), On Thu, Jan 10, 2019 at 10:11 PM abel otugeme wrote: > Ones your view matches your use patterns it gets called and run anytime > you try access t

Re: How & Where are Django View Functions Called?

2019-01-10 Thread abel otugeme
Ones your view matches your use patterns it gets called and run anytime you try access the site -- 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+unsu

Re: How & Where are Django View Functions Called?

2019-01-10 Thread Jason
Check out https://www.youtube.com/watch?v=Lwp73bSaplo for a nice explaination of how the request response cycle works -- 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 emai

Re: Django Channels and multi-tenant will this be a world of hurt?

2019-01-10 Thread N Muchai
@Filbert, Am in the same exact spot using Django Channels with django-tenants. Did you find a way to identify the tenant? Thanks. On Tuesday, November 28, 2017 at 4:22:10 AM UTC+3, Filbert wrote: > > Sorry, yeah dig before I post :-| Can create a class-based consumer and > use the message->he

How to add a new record in django admin list_view, in a way similar to what extra forms do in inlines

2019-01-10 Thread Ivan Molineris
Hi, I asked a question on stackoverflow but I will ask also on this group just in case. Using ModelAdmin.list_editable I can edit the fields

Re: SPAM sent via this list?

2019-01-10 Thread Joel Mathew
I've got multiple emails of similiar sort from aphiso...@gmail.com and blocked this account. Didnt find any other option. Sincerely yours, Joel G Mathew On Thu, 10 Jan 2019 at 13:56, Markus Holtermann wrote: > Hi, if the response you got is related to https://bitbounce.com/ , we're > in touc

Re: SPAM sent via this list?

2019-01-10 Thread Markus Holtermann
Hi, if the response you got is related to https://bitbounce.com/ , we're in touch with them so that they can fix their system. Unfortunately, Google Groups makes it really hard to find individual members and kick them, for lists of the size of django-developers and django-users. Cheers, Markus