Espectacular Ernesto... Yo tambien me pegué unos frentazos bárbaros cuando
empecé a quere hacer mi propio sistema de administración :P


Saludos


El 16 de julio de 2013 17:38, Ernesto Pulgaron
<jokercrazy05...@gmail.com>escribió:

> bueno vicherot  ho pretendo empezar a documentarme, muchas gracias, te
> avisare en cto termine
>
> El lunes, 15 de julio de 2013 16:39:08 UTC-4, vicherot escribió:
>>
>> Fijate aca https://docs.djangoproject.**com/en/1.5/topics/auth/**
>> default/#module-django.**contrib.auth.views<https://docs.djangoproject.com/en/1.5/topics/auth/default/#module-django.contrib.auth.views>que
>>  tenes herramientas para usar en las vistas para cambiar las passwords,
>> etc... entiendo que pretendés darle un aspecto personalizado al formulario
>> de cambiar claves, login, etc... yo crearía mis propios forms con mis
>> propios templates y usaría una vista propia que haga uso de esas funciones
>> para hacer la tarea de administracion de usuarios.
>>
>> hay algo más aca https://docs.djangoproject.**com/en/1.5/topics/auth/**
>> customizing/<https://docs.djangoproject.com/en/1.5/topics/auth/customizing/>
>>
>> Saludos, espero te sirva.
>>
>>
>> El 15 de julio de 2013 11:38, Ernesto Pulgaron 
>> <jokercr...@gmail.com>escribió:
>>
>> alguna recomendacion para mi " lio de Templates" con respecto a lo otro,
>>> yo ya utilice el syncdb y me creo las tablas de usuarios sin problema, pero
>>> a la hora de utilizar change_password_form es el lio yo utilizo la del
>>> login sin problema alguno, incluso la de aditar usuario, pero las demas no
>>> hay forma, no se si la mejor forma es utilizarlas directo en el url.py ,o
>>> sea, sin definar nada en la vista, funcionará??
>>>
>>> El jueves, 11 de julio de 2013 14:31:29 UTC-4, vicherot escribió:
>>>>
>>>> Evidentemente tenes un lio de Templates ... no te encuentra el
>>>> "registration/password_
>>>> change_done.html"
>>>>
>>>> Por la segunda pregunta... con forms hechos a mano supongo? fijate
>>>> cuando haces el syncdb y habilitaste el middleware de usuarios te crea las
>>>> tablas...
>>>> Fijate por acá:
>>>> https://docs.djangoproject.**com**/en/1.5/topics/auth/**default/#**
>>>> user-objects<https://docs.djangoproject.com/en/1.5/topics/auth/default/#user-objects>
>>>>
>>>>
>>>> 2013/7/11 Ernesto Pulgaron <jokercr...@gmail.com>
>>>>
>>>>>  hola, estoy introduciendome en django por lo que tengo algunas dudas,
>>>>> quisiera sabes como es que se usa UserChangeForm ya que cdo trato de
>>>>> accecer al link de
>>>>>  password = ReadOnlyPasswordHashField(**labe**l=_("Password"),
>>>>>         help_text=_("Raw passwords are not stored, so there is no way
>>>>> to see "
>>>>>                     "this user's password, but you can change the
>>>>> password "
>>>>>                     "using <a href=\"password/\">this form</a>."))
>>>>>
>>>>> me muestra el sgte error :Exception Type: TemplateDoesNotExist
>>>>>                               ****        Exception
>>>>> Value:registration/password_**ch**ange_done.html
>>>>>                               ****        Exception Location:
>>>>> C:\Python27\lib\site-packages\****django\template\loader.py in
>>>>> find_template, line 139
>>>>>
>>>>> esta es mi view.py:
>>>>> #Editar usuarios
>>>>> @login_required(login_url='/**in**gresar')
>>>>> def editar_usuario(request):
>>>>>     if request.method == 'POST':
>>>>>         formulario = UserChangeForm(request.POST)
>>>>>         if formulario.is_valid():
>>>>>             formulario.save()
>>>>>             return HttpResponseRedirect('/')
>>>>>     else:
>>>>>         formulario = UserChangeForm()
>>>>>     return render_to_response('**nuevousuar**io.html',{'**formulario':
>>>>> **formulario},**context_instance=**R**equestContext(request))
>>>>>
>>>>> el html:
>>>>> {% extends 'baseAdmin.html' %}
>>>>>
>>>>> {% block content %}
>>>>> <form id="formulario" method="POST" action="/usuario/editar">
>>>>>     <div align="center">{% csrf_token %}
>>>>>         <table>
>>>>>             {{ formulario }}
>>>>>         </table>
>>>>>     </div>
>>>>>     <p align="center"><input type="submit" value="Editar"/></p>
>>>>> </form>
>>>>> {% endblock %}
>>>>>
>>>>> el url:
>>>>> urlpatterns = patterns('',
>>>>>                        url(r'^usuario/nuevo$','**Admini**
>>>>> stracion.views.nuevo_**usuario')**,
>>>>>                        url(r'^usuario/editar$','**Admin**
>>>>> istracion.views.editar_**usuario**'),
>>>>>                        url(r'^ingresar/$','**Administra**
>>>>> cion.views.ingresar'**),
>>>>>                        url(r'^privado/$','**Administrac**
>>>>> ion.views.privado')**,
>>>>>                        url(r'^cerrar/$', 'Administracion.views.cerrar')
>>>>> ****,
>>>>>                        url(r'^password/$', 'django.contrib.auth.views.
>>>>> **pas**sword_change_done'),
>>>>>
>>>>> Tambien me surge la duda sobre PasswordChangeForm da el mismo error y
>>>>> por ultimo pero no menos importante quisiera saber si existe una forma de
>>>>> gestionar los usuarios (eliminar, insertar y modificar) qu no sea
>>>>> habilitando el modulo de administracion, lo mismo para los grupos
>>>>> gracias
>>>>>
>>>>>  --
>>>>> 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...@**googlegroups.**com.
>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>>
>>>>> Visit this group at 
>>>>> http://groups.google.com/**group**/django-users<http://groups.google.com/group/django-users>
>>>>> .
>>>>> For more options, visit 
>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Rafael E. Ferrero
>>>> Claro: (03562) 15514856
>>>>
>>>  --
>>> 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...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users<http://groups.google.com/group/django-users>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Rafael E. Ferrero
>> Claro: (03562) 15514856
>>
>  --
> 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-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Rafael E. Ferrero
Claro: (03562) 15514856

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to