Re: Beginner question regarding virtualenv

2016-06-23 Thread Tiglath Suriol
On Thursday, June 23, 2016 at 2:38:45 PM UTC-4, Leo wrote: > > Hey Everyone, > > > I’m a total newb to using Django and open stack. I am working on creating > a Django development environment in a VMware environment/Ubuntu OS. > Eventually I want to deploy this to production. The site’s

python manage.py runserver error

2016-06-23 Thread Saranyoo Tiaakekalap
Guys - I am new to django, need some advise . I am trying to learn how to use django from official web, while I am running through step by step . Just the beginning of the first step while I try to start server I hit into issue . There is no change in any python after start project . Appreciate

Re: Beginner question regarding virtualenv

2016-06-23 Thread Mike Dewhirst
On 24/06/2016 4:36 AM, Leo wrote: Hey Everyone, I’m a total newb to using Django and open stack. I am working on creating a Django development environment in a VMware environment/Ubuntu OS. Eventually I want to deploy this to production. The site’s purpose is as an intranet site. I

Re: Inconsistent dedent error

2016-06-23 Thread Gary Roach
On 06/23/2016 02:41 PM, Erik Cederstrand wrote: Den 23. jun. 2016 kl. 21.21 skrev Gary Roach : class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes =

Re: Inconsistent dedent error

2016-06-23 Thread Erik Cederstrand
> Den 23. jun. 2016 kl. 21.21 skrev Gary Roach : > > class Choice(models.Model): >question = models.ForeignKey(Question, on_delete=models.CASCADE) >choice_text = models.CharField(max_length=200) >votes = models.IntegerField(default=0) > >

Re: Password hasher for vBulletin?

2016-06-23 Thread ludovic coues
Do you have extra good reason to call hashlib function with a variable called password ? If you simply want to hash user password, django provide a few function for that job [1]. it's used like that: >>> from django.contrib.auth.hashers import make_password, >>> check_password >>> pwd =

Re: Django urls.py reload (not from database)

2016-06-23 Thread Luis Zárate
I put all in urls and check permissions with https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.decorators.user_passes_test so if not config.L7V_INITIALIZATED I raise a 404 exception. No need to reload urls. 2016-06-23 8:02 GMT-06:00 Thomas

Re: Beginner question regarding virtualenv

2016-06-23 Thread Leo
Gary and Daniele, Looks like setting-up virtual environments is the way to go. Thanks for your help. I'm glad I asked before really digging in to serious development. Leo On Thursday, June 23, 2016 at 3:06:16 PM UTC-4, gary719_list1 wrote: > > On 06/23/2016 11:36 AM, Leo wrote: > Hi Leo, > >

Re: IntegrityError for unique_together ?

2016-06-23 Thread Derek
Thanks Simon Those definitions are the closest I can get to the original in terms of type and relationship; what other info is needed? That ticket refers to child models inline - not my situation. Upgrading is on the cards - but still has to be budgeted for Derek On 23 June 2016 at 21:26,

Re: IntegrityError for unique_together ?

2016-06-23 Thread Simon Charette
Hi Derek, It's hard to tell without your exact model admin definitions but I suspect this might be related to #25987[1] which is fixed in Django 1.10. By the way you should at least upgrade to 1.8 as your Django version is not supported anymore and you could be exposed to multiple security

Inconsistent dedent error

2016-06-23 Thread Gary Roach
Hi all, The following code is part of the djangoproject.com/en/1.9/tutorial part 2 in mysite/polls/models.py class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return

Re: Beginner question regarding virtualenv

2016-06-23 Thread Gary Roach
On 06/23/2016 11:36 AM, Leo wrote: Hi Leo, The only problem with not using virtuaenv in your case is if you are still periodically updating your software. Since you are using the OS versions of python and django you are at the mercy of those upgrades. A switch from Django 1.8 to 1.9 could

Re: Beginner question regarding virtualenv

2016-06-23 Thread Daniele Procida
On Thu, Jun 23, 2016, Leo wrote: >I have been following the Django tutorial but recently discovered some >other Django tutorials which led me to posting this question. I didn't >create a Python vitrualenv rather installed everything at the root of the >OS. I am unsure if

IntegrityError for unique_together ?

2016-06-23 Thread Derek
Hi I have a strange situation (with Django 1.6.11 and MySQL 5.5). Attempting to save a new entry (from the admin) with values that violate the duplication restriction imposed by the unique_together constraint - in other words a duplicate of a record already in the database - raises an

Beginner question regarding virtualenv

2016-06-23 Thread Leo
Hey Everyone, I’m a total newb to using Django and open stack. I am working on creating a Django development environment in a VMware environment/Ubuntu OS. Eventually I want to deploy this to production. The site’s purpose is as an intranet site. I have been following the Django tutorial

Re: Please help me with CBV template_name behaviour.

2016-06-23 Thread JoeCodeswell
Dear James, Thanks for all the GREAT info. I'll be sure to look at #template-inheritance. I'd be interested to see what the debug toolbar had to say while the typo > was in place. > The contents of the debug toolbar that i published, in this thread, IN THIS POST

Django urls.py reload (not from database)

2016-06-23 Thread Thomas
Hy django lovers, it's my first post for being helped, sorry if I miss something. I want two list of urls available : - one (limited) before initializing (verify licence, etc...) - one (large) after initializing success Here is my settings.ROOT_URLCONF : from constance import config

Re: Password hasher for vBulletin?

2016-06-23 Thread jorrit787
As a follow-up question to this... this line gives the error "Can't convert 'bytes' object to str implicitly": vB_hash = hashlib.md5(hashlib.md5(force_bytes(password)).hexdigest() + force_bytes(salt)).hexdigest() Do I need to insert a str() somewhere? -- You received this message because

python manage.py runserver error

2016-06-23 Thread Saranyoo Tiaakekalap
Guys - I am new to django , while running through tutorial . I found issue when first start running 'python manage.py runserver' . After I installed 'django' and create my first project using command 'django-admin startproject mysite' , then follow with 'python manage.py runserver' . I

django transaction rollback on deadlock detection

2016-06-23 Thread William Messer
As far as I can see, there's nothing in the django database doco about transaction failure due to deadlock detection in a multi-user environment. Does this mean that django retries transactions itself a number of times e.g., as google appengine does? I'm pretty sure this would have been