Re: Django field model for HTML parser?

2017-12-14 Thread Mike Dewhirst
On 15/12/2017 3:19 PM, drone4four wrote: Thank you Mike for the help. I'll look into bleaching my HTML.  Great doc. So it's easy but not recommended to enable all HTML.  I've got alotta custom legacy  code with dividers and elements with classes and such which I intend on trying to port over

Re: django installation

2017-12-14 Thread Egor Smolyakov
Seems like you use python 2. Django 2.0 doesn't support second version of Django, only third. On 15/12/2017, bishalrijal...@gmail.com wrote: > > > how can i fix this > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from t

Re: django installation

2017-12-14 Thread Egor Smolyakov
UPD: Seems like you use python 2. Django 2.0 doesn't support second version of Python, only third. On 15/12/2017, Egor Smolyakov wrote: > Seems like you use python 2. Django 2.0 doesn't support second version > of Django, only third. > > > On 15/12/2017, bishalrijal...@gmail.com wrote: >> >> >>

Re: nginx error in Digital Ocean

2017-12-14 Thread Alexander Joseph
I followed this guide and got everything running smooth https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 Hope that helps On Tuesday, December 12, 2017 at 10:37:26 AM UTC-7, Coqui wrote: > > I am trying to deploy to digital o

Re: Django field model for HTML parser?

2017-12-14 Thread drone4four
Thank you Mike for the help. I'll look into bleaching my HTML. Great doc. So it's easy but not recommended to enable all HTML. I've got alotta custom legacy code with dividers and elements with classes and such which I intend on trying to port over into Django. Would enabling these aspects

django installation

2017-12-14 Thread bishalrijal110
how can i fix this -- 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-user

Re: Using PermissionRequiredMixin

2017-12-14 Thread Alexander Joseph
Actually I figured out I was assigning the permissions wrong in the view. But I really just need a "view" permission along with the default add/update/delete permissions. Is there a good way to add this to each app by default? Thanks On Thursday, December 14, 2017 at 6:02:51 PM UTC-7, Alexand

Re: I can't install easy install

2017-12-14 Thread Mike Dewhirst
On 15/12/2017 8:52 AM, Henry Ogunkomaya wrote: Hello guys! am new to Django. i have been trying to install  downloaded (pack)"easy install" for days now without any result. i try all the methods from video tutorials, but nothing still. Can any one help me with the "easy install" scripts, so i c

Re: I can't install easy install

2017-12-14 Thread Oladipupo Elegbede
Open a command prompt window and navigate to the folder containing get-*pip*.py . Then run python get-*pip*.py . This will *install pip* . Verify a successful *installation* by opening a command prompt window and navigating to your Python *installation's* script directory (default is C:\Python27\Sc

Re: I can't install easy install

2017-12-14 Thread Oladipupo Elegbede
Did you try pip install? On Dec 14, 2017 8:09 PM, "Henry Ogunkomaya" wrote: > Hello guys! am new to Django. i have been trying to install downloaded > (pack)"easy install" for days now without any result. i try all the methods > from video tutorials, but nothing still. Can any one help me with

Custom HTML Template for Django 2.0 Autocomplete Widget

2017-12-14 Thread Da CodeKid
Is it possible to create a custom HTML Template, like Django-Autocomplete-Lite does by passing '*data-html:True*' attribute and overriding it's '*get_default_label*' method? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

I can't install easy install

2017-12-14 Thread Henry Ogunkomaya
Hello guys! am new to Django. i have been trying to install downloaded (pack)"easy install" for days now without any result. i try all the methods from video tutorials, but nothing still. Can any one help me with the "easy install" scripts, so i cud just save it as python file and then run it o

Hi, a little help here.

2017-12-14 Thread Aaron
I wasn't sure where to ask this question and then I found this place. I've got a MacBook running mac OS High Sierra. I've been trying to install Django for a while. Whenever I try, I get an error that says "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8y/

Using PermissionRequiredMixin

2017-12-14 Thread Alexander Joseph
I'm trying to use the PermissionRequiredMixin but I'm a little confused on how to use it. I keep getting an infinite redirect loop when the user tries to visit the page if they dont have the required permissions. Here is my view from django.contrib.auth.mixins import LoginRequiredMixin, Permis

Re: My Polls app question not displaying

2017-12-14 Thread anyi.ll...@gmail.com
Thank u so much. Sent from my HTC - Reply message - From: "Matthew Pava" To: "'django-users@googlegroups.com'" Subject: My Polls app question not displaying Date: Thu, Dec 14, 2017 22:25 You context dictionary key is “latest_question_list”, and this is passed into your template. Your

RE: My Polls app question not displaying

2017-12-14 Thread Matthew Pava
You context dictionary key is “latest_question_list”, and this is passed into your template. Your python variable is named latest_ques, which the template is not aware of. So you need to change your html temple or your context key. Also, watch your case. “question” and “Question” are two diffe

My Polls app question not displaying

2017-12-14 Thread anyi.lloyd
Am new to Django and python. for the past 5 hours i have been battling to make my polls question to display in the index.html, but is not. These are the codes *Model* from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = m

Re: Decrypting Password

2017-12-14 Thread destinjfunk
Actually you can do this. Creating new model with username and password fields (Plain Text) and a custom authentication forms and view and all passwords are absolutely compromised. if you use the Django auth model and you are trying to crack any password. Brute forcing is the only way see https

Re: Django on windows 10 and tomcat

2017-12-14 Thread destinjfunk
I don't think this will work in Python. But you can do it in Jython https://docs.djangoproject.com/en/2.0/howto/jython/. On Thursday, 14 December 2017 02:31:51 UTC+4, Arnap wrote: > > Am new to django and developing champion windows to be deployed in to cat, > but getting error while deploying

Re: Decrypting Password

2017-12-14 Thread Tim Chase
On 2017-12-13 23:08, hardiksara...@gmail.com wrote: > I want to decrypt the encrypted the password formed in django is > there any way please help me It's considered a bad (horrible, really) security practice to store passwords that you can retrieve. I'll grant that some of the Mailman lists to

Re: Scrapy

2017-12-14 Thread Jason
and its helpful to *ask* a question on a forum like this. You'll get many more responses. -- 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

Re: Decrypting Password

2017-12-14 Thread Andréas Kühne
The point of the way the password is stored, is to prevent this. I don't think it is possible to decrypt the password, because it's not encrypted. It's a hash that should be oneway. See: https://docs.djangoproject.com/en/2.0/topics/auth/passwords/ What you can do is try passwords until you find t

Re: Decrypting Password

2017-12-14 Thread Etienne Robillard
And why do you want to do that? Etienne Le 2017-12-14 à 02:08, hardiksara...@gmail.com a écrit : I want to decrypt the encrypted   the password formed in django is there any way please help me -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Decrypting Password

2017-12-14 Thread hardiksaraf21
I want to decrypt the encrypted the password formed in django is there any way please help me -- 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+uns