Additional magic with methods of a classes

2016-07-03 Thread Seti Volkylany
Django`s methods may can only method_name.short_description, method_name.boolean and method_name.admin_order_field an attributes or exists yet? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-07-03 Thread James Schneider
On Jul 2, 2016 6:33 PM, "Farhan Khan" wrote: > > So then, how are password validators used? If its just through the console using the 'createsuperuser' feature, what good is it? > Primarily for use as validators in contrib.auth forms, which should be the common way you and your users interact wit

Re: Additional magic with methods of a classes

2016-07-03 Thread Derek
This is not a clear problem. If English is not easy for you, then perhaps add a code sample or two to show what you mean? On Sunday, 3 July 2016 11:55:34 UTC+2, Seti Volkylany wrote: > > Django`s methods may can only method_name.short_description, > method_name.boolean and method_name.admin_ord

Slow Django dev server reload

2016-07-03 Thread Krishna Bharadwaj
Hi everyone, I am working on a project which is substantially big (~40k lines of python/django code including management commands). Dev server seems to be taking a lot of time to reload after making changes. I was wondering if this is due to any bad programming practice at my end? Or is this ex

Re: def__str__(self) not working properly

2016-07-03 Thread Charlie c
The line is indented 4 spaces yes? On Friday, July 1, 2016 at 10:52:12 AM UTC+1, gary719_list1 wrote: > > Hi all; > > I am working on the official django tutorial > (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/) on the section > that is adding the choices. Specifically: > > > # Cr

How to freeze models without denormalizing them?

2016-07-03 Thread Hermano Cabral
Hello guys and gals, Assuming a simple django project where you have models Author and Book (pseudo code): Author: - Name = char field - Birthdate = date field Book: - Name = char field - Author = foreign key (Author) Is there a way to freeze books in a way that changes to an author are

Re: Slow Django dev server reload

2016-07-03 Thread Fred Stluka
Krishna, How long is "a long time"?  I have a project of ~200K lines of python/django code.  The dev server reloads in a second or so. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bri

Question about model attributes

2016-07-03 Thread Ankush Thakur
I recently was introduced to the concept of descriptors in Python, and it looks like fields like CharField() are descriptors. However, I find the concept of descriptors quite enigmatic, and am trying to piece together the puzzle bu asking related questions. For now my question is: What do we gain

How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Seti Volkylany
The Django`s docs tell next: To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4) is namespaced as django.jQuery. If you want to use jQuery in your own admin JavaScript without including a second copy, you can use the django.jQuery object on changelist a

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Luis Zárate
Replace $ by django.jQuery For example django.jQuery('body') El domingo, 3 de julio de 2016, Seti Volkylany escribió: > > The Django`s docs tell next: > To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4) is namespaced as django.jQuery. If you want to us

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Seti Volkylany
It is not worked even the main admin page django.jQuery('body') Uncaught ReferenceError: django is not defined(…)(anonymous function) @ VM9451:1 $() null $django.jQuery('body') Uncaught ReferenceError: $django is not defined(…) On Sun, Jul 3, 2016 at 9:08 PM, Luis Zárate wrote: > Replace $ by d

Re: def__str__(self) not working properly

2016-07-03 Thread Gary Roach
Yes it is Gary R On 07/03/2016 06:25 AM, Charlie c wrote: The line is indented 4 spaces yes? On Friday, July 1, 2016 at 10:52:12 AM UTC+1, gary719_list1 wrote: Hi all; I am working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

resetting table id

2016-07-03 Thread Gary Roach
Hi all I'm still working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/) on the section that is adding the Question table. I'm using Eclipse Neon with PyDev IDE Django 1.9 Pyathon 3.5 SqLite DBMS OS Debian Stretch Linux KDE Desktop While working wit

Re: resetting table id

2016-07-03 Thread James Schneider
On Jul 3, 2016 4:18 PM, "Gary Roach" wrote: > > Hi all > > > I'm still working on the official django tutorial (https// docs.djangoproject.com/en/1.9/intro/tutorial/02/) on the section that is adding the Question table. > > I'm using Eclipse Neon with PyDev IDE > Django 1.9 > Pyathon 3.5 > SqLite

Re: resetting table id (SOLVED)

2016-07-03 Thread Gary Roach
On 07/03/2016 04:54 PM, James Schneider wrote: On Jul 3, 2016 4:18 PM, "Gary Roach" > wrote: > > Hi all > > > I'm still working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

Installing Django Problem.

2016-07-03 Thread Steve Burrus
well I uyet again am encountering problems with installing the Django server. I managed to get to this point "(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>" but where exactly do I go from here in installing django? Man y thanx to anyone who can help me with this "trying" problem of

Re: Installing Django Problem.

2016-07-03 Thread Mike Dewhirst
On 4/07/2016 12:01 PM, Steve Burrus wrote: well I uyet again am encountering problems with installing the Django server. I managed to get to this point "(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>" It looks as though you have successfully got virtualenv working. Therefore the sho

Re: Installing Django Problem.

2016-07-03 Thread Steve Burrus
Well I did tjhis okay "(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but still the question persists where I go from here? I remember using "django-admin" before. How do I use that? On Sun, Jul 3, 2016 at 9:32 PM, Mike Dewhirst wrote: > On 4/07/2016 12:01 PM, Steve

Re: Installing Django Problem.

2016-07-03 Thread Mike Dewhirst
On 4/07/2016 1:06 PM, Steve Burrus wrote: Well I did tjhis okay "(stevesenv) C:\Users\sbur87\Desktop\steves_dir\stevesenv>pip install django" but still the question persists where I go from here? I remember using "django-admin" before. How do I use that? Here is a good place to start ... https

How manually, in Django 1.9, determinate all urls in a project without the django-extension`s command show_urls?

2016-07-03 Thread Seti Volkylany
I don`t found answer for Django 1.9 there http://stackoverflow.com/questions/1275486/django-how-can-i-see-a-list-of-urlpatterns and there http://stackoverflow.com/questions/1828187/determine-complete-django-url-configuration. -- You received this message because you are subscribed to the Go

Re: Slow Django dev server reload

2016-07-03 Thread Krishna Bharadwaj
Hi Fred, It takes about 3.5 - 5 seconds on my machine (Mac OSX - 2.6 GHz Intel Core i5, 8 GB 1600 MHz DDR3 and SSDs). I was curious to know if I was doing something wrong. Any pointers regarding this will be very helpful. On Sunday, 3 July 2016 20:47:50 UTC+5:30, Fred Stluka wrote: > > Krishna,