Re: UserCreationForm decode str object has not decode attribute

2019-07-18 Thread Aldian Fazrihady
url_safe_base64_encode returns string, and strings don't have decode method. However, bytes objects have decode method. string.encode will change string to bytes. bytes.decode will change bytes to string. On Thu, Jul 18, 2019 at 8:28 PM Ahmet İnal wrote: > > > What's wrong taht code if i try

Re: Using a 2-dimensional array in a template

2019-07-18 Thread Yves de Champlain
That looks just perfect ! I knew but I see I still need to learn more about data structures in Python. Thanks a lot ! yves Le jeudi 18 juillet 2019 15:29:48 UTC-4, Daniel Roseman a écrit : > > On Thursday, 18 July 2019 15:56:59 UTC+1, Yves de Champlain wrote: >> >> Indeed, it feels like I'm

Re: Using a 2-dimensional array in a template

2019-07-18 Thread Daniel Roseman
On Thursday, 18 July 2019 15:56:59 UTC+1, Yves de Champlain wrote: > > Indeed, it feels like I'm taking things the wrong way, maybe I coded too > much PHP to be redeemable ... > > My main problem might be coming from the fact that I need to parse the > data to generate my view and can't simply

Re: how to see the list of created tables in sqlite

2019-07-18 Thread Joe Reitman
A good way to view your tables is to use https://sqlitebrowser.org/ On Thursday, July 18, 2019 at 8:28:31 AM UTC-5, yasar arafath Kajamydeen wrote: > > Hi all, > > After executing the command - python manage.py migrate > the command is successful and then i would like to see the list of

Re: Email not sent via model form

2019-07-18 Thread Kasper Laudrup
On 18/07/2019 16.40, ahadujjaman nur wrote: Error: socket.gaierror: [Errno -2] Name or service not known https://en.wikipedia.org/wiki/Domain_Name_System -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Email not sent via model form

2019-07-18 Thread ahadujjaman nur
Error: socket.gaierror: [Errno -2] Name or service not known -- 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

Re: sqlite update on CentOS 7 for latest django version

2019-07-18 Thread Tal
Got it. For anyone also trying this, on a fresh CentOS 7 minimal install, do this as root: - yum groupinstall "Development Tools" - yum install tcl - curl -O https://www.sqlite.org/src/tarball/sqlite.tar.gz - tar -xvf sqlite.tar.gz - cd sqlite/ - ./configure - make - cp

Re: sqlite update on CentOS 7 for latest django version

2019-07-18 Thread Tal
Yoo - this is a known problem. It has nothing to do with running "migrate", being in a virtual environment, or settings.py. Jani - I tried compiling the latest Python manually - it was actually super easy - but even with the latest Python,

Using a 2-dimensional array in a template

2019-07-18 Thread Daniel Roseman
You haven't really given enough context to answer the question. What are `skills` and `achievements`? How are they related, and how are either of them related to `v_table`? Normally in Django you would iterate directly over a relationship by following foreign keys - why can't you do that? Post

how to see the list of created tables in sqlite

2019-07-18 Thread yasar arafath Kajamydeen
Hi all, After executing the command - python manage.py migrate the command is successful and then i would like to see the list of created tables so i enter command like .schema but it showing error. Please try to help me . Note - Am beginer to python -- You received this message

UserCreationForm decode str object has not decode attribute

2019-07-18 Thread Ahmet İnal
What's wrong taht code if i try register i seeing. AttributeError at /register/ 'str' object has no attribute 'decode' 'uid':urlsafe_base64_encode(force_bytes(user.pk)).decode('utf-8'), whats problem on this line. class MyUserCreationForm(UserCreationForm): class Meta: # Yeni Model model =

Re: sqlite update on CentOS 7 for latest django version

2019-07-18 Thread Jani Tiainen
Hi. I think Python has built in version so you might need to build custom version of python. Pyenv is pretty neat tool to handle custom python builds. ke 17. heinäk. 2019 klo 21.36 Tal kirjoitti: > Or is Python's sqlite built into Python, not depending on /usr/bin/sqlite3 > at all? > Would I