Re: Email List

2016-07-19 Thread James Schneider
> Would then the suggested route be to export my email list via an admin action and use this list via Sendmail? > You can do this via a custom management command. https://docs.djangoproject.com/en/1.9/howto/custom-management-commands/ If you do go this route, though, I would suggest looking at

Re: why am I able to create and save a user via the shell without any username?

2016-07-19 Thread James Schneider
On Jul 19, 2016 5:15 AM, "Jeff Willette" wrote: > > I have a custom user model via AbstractUser and I think the django-app `spirit` (which is a forum) has also modified my user model a bit. I am trying to write some tests and I do not know if this behavior is normal or

Re: Model classes as containers to objects of another model

2016-07-19 Thread James Schneider
On Jul 19, 2016 12:16 PM, "Ajay D" wrote: > > Hi All, > > I am fairly new to Django and find myself in the need to write to the group. > > I have a django model "A", which has an "items" attribute. "items" is a list with objects of another django model "B" (there are no

Running Django tests for postgres_tests

2016-07-19 Thread premdjango
I'm trying to run django tests for a particular module - postgres_tests. The tests runs but it says it skipped=312 tests, I believe none of the test case run. How do I fix this issue? (djangodev) Anands-MBP:tests laks$ ./runtests.py postgres_tests Testing against Django installed in

configuring a custom widget subclass based on user entered data

2016-07-19 Thread David Durkee
Hi, I am trying to create a custom widget that is a subclass of MultiWidget that creates a variable number of widgets based on previous user input. Which means I can’t fully configure the widget in the form class. A simplified description of what I am trying to accomplish is to have one form

Re: django_bootstrap_calendar and admin backend

2016-07-19 Thread Cronos Cto
This happened. Sorry for taking so long, had exams to take care of. -- 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.

Model classes as containers to objects of another model

2016-07-19 Thread Ajay D
Hi All, I am fairly new to Django and find myself in the need to write to the group. I have a django model "A", which has an "items" attribute. "items" is a list with objects of another django model "B" (there are no relationships between A and B). Everytime I create a new instance of "A", I

Re: ManyToManyField('self') not using related_name

2016-07-19 Thread Farhan Khan
The solution was that I needed to set symmetrical=False, per the documentation here: https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ManyToManyField.symmetrical On Tuesday, July 19, 2016 at 2:52:16 PM UTC-4, Farhan Khan wrote: > > I am using a ManyToManyField whose

ManyToManyField('self') not using related_name

2016-07-19 Thread Farhan Khan
I am using a ManyToManyField whose target is a 'self' reference, but it does not create a related_name "reverse" field. Here is my model: class SecurityGroup(models.Model): name = models.CharField(max_length=100) description = models.TextField() subgroups =

Re: Real-Time Data Streaming

2016-07-19 Thread Stefano Probst
Hi, Maybe you can use channels to push data via websockets to your client and plot the new data points via some JS library. Am Montag, 18. Juli 2016 21:49:48 UTC+2 schrieb pvmer...@gmail.com: > > Hello Everyone, > >I am working on a project

Re: Getting an error when I try to make an html page on django

2016-07-19 Thread Sergiy Khohlov
Looks like you have deleted artist with Id#2. 19 лип. 2016 18:21 "Jose" пише: > > > On Tuesday, July 19, 2016 at 8:15:54 AM UTC-4, Jose wrote: >> >> I was watching a Django tutorial video and on the video the guy writes >> the exact same code I have on the picture.

Re: Getting an error when I try to make an html page on django

2016-07-19 Thread Jose
On Tuesday, July 19, 2016 at 8:15:54 AM UTC-4, Jose wrote: > > I was watching a Django tutorial video and on the video the guy writes the > exact same code I have on the picture. In the video whats inside of his > curly brackets turns to purple. Mine does not turn purple and there is >

Django simple Captacha

2016-07-19 Thread Ajay Kumar
hi Guys I tried django-simple-captcha on refering http://django-simple-captcha.readthedocs.io/…/la…/usage.html . Every thing works well and goes fine, I need few suggestion on it. 1. How efficiency is this? 2. How strong is

content type headers from multipart

2016-07-19 Thread Larry Martell
I have a django endpoint that gets a multipart and I want look at the content type headers in each part. When I look at request.META['CONTENT_TYPE'] I get: 'multipart/form-data; boundary="boundary_.oOo._OTEwMTc3NzM5ODMxMjQxNzkyMTI5OTY3NDQwOQ=="' Googling this I found

Re: Getting an error when I try to make an html page on django

2016-07-19 Thread ludovic coues
Also, a copy of the error would help us a lot to help you. 2016-07-19 14:52 GMT+02:00 ludovic coues : > How do you "open the webpage" ? > > 2016-07-19 6:10 GMT+02:00 Jose : >> I was watching a Django tutorial video and on the video the guy writes the

Re: Getting an error when I try to make an html page on django

2016-07-19 Thread ludovic coues
How do you "open the webpage" ? 2016-07-19 6:10 GMT+02:00 Jose : > I was watching a Django tutorial video and on the video the guy writes the > exact same code I have on the picture. In the video whats inside of his > curly brackets turns to purple. Mine does not turn

why am I able to create and save a user via the shell without any username?

2016-07-19 Thread Jeff Willette
I have a custom user model via AbstractUser and I think the django-app `spirit` (which is a forum) has also modified my user model a bit. I am trying to write some tests and I do not know if this behavior is normal or not. Here is my model.py file that defines the user with the extra fields

Re: How to see error in django coding while i am using it through server/web ?

2016-07-19 Thread Asad ur Rehman
Sir i am using python/django in server which is given by my company.server is connected with putty to run commands.I want to get information about how to see errors in django when we are using it in specific server On Monday, July 18, 2016 at 9:47:21 PM UTC+5, Asad ur Rehman wrote: > > Hello !

Re: How to see error in django coding while i am using it through server/web ?

2016-07-19 Thread Asad ur Rehman
@Arindam sarkar i am us On Monday, July 18, 2016 at 9:47:21 PM UTC+5, Asad ur Rehman wrote: > > Hello ! i am using django. when i tested it always gives Urls error > instead of correct error .. How can i get correct error instead of Urls > error. > -- You received this message because you

Django : InlineFomsets with FileField, overwrite forms.ModelForm Function

2016-07-19 Thread Paul
I have a model Product and a model Document. The document has a foreign key to the product. I want the user to upload multiple files in the same form for adding/editing Product. I modified and example from net, it is working, but not with a FileField. I know that I need to add