User Tools

Site Tools


informatica:linux:django

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatica:linux:django [2017/11/07 09:42] javiinformatica:linux:django [2019/05/19 16:41] – [The password is too similar to the username.] javi
Line 857: Line 857:
 https://stackoverflow.com/a/35330167 https://stackoverflow.com/a/35330167
  
-1. Iniciar shell+1. Crear el usuario desde el admin:
  
-  cd /path/django && pythom manage.py shell+http://localhost:8000/admin/auth/user/add/ 
 + 
 +2. Iniciar shell 
 + 
 +  cd /path/django && python manage.py shell
      
-2Crear los usuarios a mano, interactuando con la shell:+3Cambiar la contraseña de ese usuario, en este ejemplo "your_user":
  
 <code> <code>
Line 868: Line 872:
 user.set_password('simple') user.set_password('simple')
 user.save() user.save()
 +</code>
 +
 +====  Error al crear app ====
 +
 +Comando:
 +
 +<code>
 +python manage.py startapp app1
 +</code>
 +
 +Error:
 +
 +<code>
 +  File "manage.py", line 16
 +    ) from exc
 +         ^
 +SyntaxError: invalid syntax
 +</code>
 +
 +Solución:
 +
 +<code>
 +python3 manage.py startapp app1
 </code> </code>
informatica/linux/django.txt · Last modified: 2019/05/19 16:55 by javi