initial costom field in modelform

2016-06-30 Thread 1351552...@qq.com
hi everyone: i defined tbls customer and salesorder in my db, i want to show the customer name in my form but want not to save it in salesorder tbl, how can i initial it for gui? my code is : #model class Customer(models.Model): name=models.CharField(max_length=40) abbreviation=models.CharField

Re: "canonical" views.py in Django Unleashed book, Chapter 22

2016-06-30 Thread Malik Rumi
p.s. - I did have a couple of other questions, if you don't mind: 1. You end 22.6 by saying In an actual website, you likely won’t interact with the auth in the way we > have. You’ll rely on third-party apps to provide object-level permissions > or else on authentication with other services su

Re: "canonical" views.py in Django Unleashed book, Chapter 22

2016-06-30 Thread Malik Rumi
1. I don't know if it makes any difference, but I don't have the physical book. I am reading it online thru my safarionline subscription. 2. Once I got to your repo, I just clicked around to go to views or urls or whatever. I didn't think of looking for different commits, because I assumed, wron

Re: "canonical" views.py in Django Unleashed book, Chapter 22

2016-06-30 Thread Andrew Pinkham
Hi Malik! Thanks for buying my book! I'm glad to hear you like Django Unleashed, but I'm sorry you're frustrated with the github repo at https://github.com/jambonrose/DjangoUnleashed-1.8 . Page xiv provides a quick explanation of git commits' relationship to the examples in the book. In short:

Re: Help me!!! django

2016-06-30 Thread Mario Gudelj
There's a nice LDAP app for Django at https://pypi.python.org/pypi/django-auth-ldap/1.2.8 but I'm not sure if it's suitable for what you need to do. I think you need a Python LDAP module to create a connection, bind, perform a simple search and then parse the results to get those email addresses.

Re: parallel test running throwing pickleError

2016-06-30 Thread Harry Moreno
Any progress made on this front? I'm seeing this too in a Django 1.9 app using python 2.7 On Monday, February 29, 2016 at 3:24:13 PM UTC-5, girish ramnani wrote: > > Sorry i forgot to mention that, i have installed the tblib. this is my pip > list output > > Django (1.10.dev20160216200705, /home

Help me!!! django

2016-06-30 Thread Цибарт Сергей
urgently need to fasten on the portal, which is on Django, a form https://postimg.org/image/8myn5jqnb/, but I'm new to this. Help, who than can please -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Contribute to Django - Python 3 or Python 2

2016-06-30 Thread Ricardo Daniel Quiroga
the next django releases don't suport python 2.x. if you want to use python 2.x in django use the 1.8 LTS http://stackoverflow.com/questions/28908401/does-django-have-any-plans-to-drop-support-for-python-2-in-the-near-future https://www.djangoproject.com/weblog/2015/jun/25/roadmap/ 2016-06-28 22:

data processing services

2016-06-30 Thread sunitha seo
*DataAngle Technologies *is an ITES and Project Consulting firm providing expertise services in Business Process Outsourcing (BPO), Market Research, B2B Lead Generation , Recruitment and Digital Marketing. We specialize in providing innovative, rel

Re: Real time change color website

2016-06-30 Thread Akhil Lawrence
:) then this is not the proper place to look for answers.. the soul purpose of this group is to help people in django related issues. On Thu, Jun 30, 2016, 5:57 PM Ricardo Daniel Quiroga < l2radamant...@gmail.com> wrote: > Hi > this site use many overlaping layers in a canvas to generate the imag

Re: Real time change color website

2016-06-30 Thread Ricardo Daniel Quiroga
Hi this site use many overlaping layers in a canvas to generate the image. This is a Javascript cambas problem not django. 2016-06-30 5:59 GMT-03:00 Akhil Lawrence : > Hi, > > Your requirement has nothing to do with django. The images should be > combined using JS/CSS. Its a pure front end tweak

Re: error logging in after updating to 1.9

2016-06-30 Thread Larry Martell
It seems like in 1.6 template code like this: {% if error %} ... {% endif %} Was OK. But in 1.9 if error is not defined it throws an exception. So in 1.9 what is the proper way to check to see if a variable is defined or not? On Tue, Jun 28, 2016 at 4:03 PM, Larry Martell wrote: > I had a 1.6 a

Re: pywkhtmltopdf [Was: [mezzanine-users] Re: Images in .pdf Invoice]

2016-06-30 Thread Akhil Lawrence
To answer *how do I change from function based views to class based views,* The simplest way to do that is, create a view file as below: from django.views.generic import View class ViewName(View): def get(self, request, *args, **kwargs): def post(self, request, *args, **k

Re: Real time change color website

2016-06-30 Thread Akhil Lawrence
Hi, Your requirement has nothing to do with django. The images should be combined using JS/CSS. Its a pure front end tweak. If your question is regarding the backend. Definitely django can do the job. What I mean is, you can build API's using django which will server layers of images requeste

Re: What is the full testing toolkit any Python/Djang/JS developer?

2016-06-30 Thread Avraham Serour
> nose, pytest and unittests really? On Thu, Jun 30, 2016 at 9:33 AM, Seti Volkylany wrote: > Now, I am using: factory-boy, selenium, nose, pytest and unittests. > I have a plan use in future QUnit > and Continuous Integration. May be it is enough? > Who using yet tools?

Real time change color website

2016-06-30 Thread Arshpreet Singh
Hey guys, Anyone aware of example/project developed in Django that can make functionality of website like this:https://www.msistone.com/kitchen-visualizer.aspx#?id=main_image5 Where I can change object colors in real time, as I see from this image https://www.msistone.com/VisualizerResponsive/i