Re: Django-registration tutorial + code
Hello, i think the major issue is with your db query, this issue is happened while entering data to db. So try to check with your registration module. -- Dhilip S On Tue, Jul 10, 2012 at 5:01 AM, Jeff Silverman wrote: > I'm new as well, but I have run into similar issues when I don't have the > environment settings assigned properly. > > > On Mon, Jul 9, 2012 at 12:03 AM, scoop wrote: > >> i installed registration, added registration to installed apps and used >> your >> templates. >> >> i nav to accounts/register , enter the info and as i continue it breaks >> with >> the following: >> >> DoesNotExist at /accounts/register/ >> Site matching query does not exist. >> Request Method: POST >> Request URL:http://spenv.local/accounts/register/ >> Django Version: 1.4 >> Exception Type: DoesNotExist >> Exception Value: >> Site matching query does not exist. >> Exception Location: >> /usr/lib/python2.7/site-packages/django/db/models/query.py in get, line >> 366 >> >> I'm pretty new to django so I'm slightly confused. I looked at the >> documentation and there doesn't seem to be anything that I understand to >> fix >> this. >> >> -- >> View this message in context: >> http://python.6.n6.nabble.com/Django-registration-tutorial-code-tp4974793p4981365.html >> Sent from the django-users mailing list archive at Nabble.com. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
I'm new as well, but I have run into similar issues when I don't have the environment settings assigned properly. On Mon, Jul 9, 2012 at 12:03 AM, scoop wrote: > i installed registration, added registration to installed apps and used > your > templates. > > i nav to accounts/register , enter the info and as i continue it breaks > with > the following: > > DoesNotExist at /accounts/register/ > Site matching query does not exist. > Request Method: POST > Request URL:http://spenv.local/accounts/register/ > Django Version: 1.4 > Exception Type: DoesNotExist > Exception Value: > Site matching query does not exist. > Exception Location: > /usr/lib/python2.7/site-packages/django/db/models/query.py in get, line 366 > > I'm pretty new to django so I'm slightly confused. I looked at the > documentation and there doesn't seem to be anything that I understand to > fix > this. > > -- > View this message in context: > http://python.6.n6.nabble.com/Django-registration-tutorial-code-tp4974793p4981365.html > Sent from the django-users mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
i installed registration, added registration to installed apps and used your templates. i nav to accounts/register , enter the info and as i continue it breaks with the following: DoesNotExist at /accounts/register/ Site matching query does not exist. Request Method: POST Request URL:http://spenv.local/accounts/register/ Django Version: 1.4 Exception Type: DoesNotExist Exception Value: Site matching query does not exist. Exception Location: /usr/lib/python2.7/site-packages/django/db/models/query.py in get, line 366 I'm pretty new to django so I'm slightly confused. I looked at the documentation and there doesn't seem to be anything that I understand to fix this. -- View this message in context: http://python.6.n6.nabble.com/Django-registration-tutorial-code-tp4974793p4981365.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
R: Re: R: Re: Django-registration tutorial + code
Thanks, it works perfectly.:) Francesco >Messaggio originale >Da: mail2nishad...@gmail.com >Data: 16/05/2012 19.57 >A: "Django users" >Ogg: Re: R: Re: Django-registration tutorial + code > >Hi ! >Please try following steps , it would definitely work for you... > >Step1: Enable/Add >'django.contrib.auth.middleware.AuthenticationMiddleware', in your >MIDDLEWARE_CLASSES section of 'settings.py' >Step2:- Include/Modify following URL pattern in your 'urls.py' > urlpatterns = patterns(' ', >url(r'^login/$', >'django.contrib.auth.views.login', name='login'), >url(r'^logout/ >$','django.contrib.auth.views.logout', name='logout') > ) >Step3:- Put your 'templates' folder inside the 'mysite' and then put a >folder namely 'registration' in your 'templates' folder, so that your >folder structure looks like as follows > -> mysite/templates/registration >Step4:- Note your login,logout files inside 'registration' folder >should posses following names respectively >('login.html','logged_out.html') >Step5:- Now you can design your login/logout templates as you like, >the above settings is enough to sort out the issue you have reported. >- > > >On May 16, 8:05 pm, "francescobocca...@libero.it" > wrote: >> hi, i have a question:i downloaded the templates folder but where i put it? i create a project called "mysite". I changed settings.py and urls.py files as you suggested.My question is: how i have to put the templates folder? i put it inside mysite folder but when i try tohttp://localhost:8000/accounts/logout/ >> i received >> Request Method: >> GET >> >> Request URL: >> http://localhost:8000/accounts/logout/ >> >> Django Version: >> 1.3.1 >> >> Exception Type: >> TemplateDoesNotExist >> >> Exception Value: >> registration/logout.html >> >> Exception Location: >> /usr/local/lib/python2.7/dist-packages/django/template/loader.py in find_template, line 138 >> >> /usr/local/lib/python2.7/dist- packages/django/contrib/auth/templates/registration/logout.html (File does not exist) >> Can you help me to understand it? >> Thanks >> Francesco >> >> Messaggio originale >> >> Da: scoobygalle...@gmail.com >> >> Data: 16/05/2012 15.34 >> >> A: >> >> Cc: "francescobocca...@libero.it" >> >> Ogg: Re: Django-registration tutorial + code >> >> Hi! >> You can go this way: >> install the right version of django-registrationthis command will do the trick:pip installhttps://bitbucket.org/ubernostrum/django- registration/downloads/djang... >> Add "registration" to installed apps, in your settings.py file:Something like this:INSTALLED_APPS = ( 'registration', )Add the urls in your urls.py file.something like this:urlpatterns = patterns('', >> # django-registration url(r'^accounts/', include ('registration.backends.default.urls')), )Add the templates.I created the template set and uploaded it for sharing here:https://github. com/matiasherranz/scoobygalletas/tree/master/django-re... >> That's it! >> Let me know if you get stuck with something. >> M.- >> >> -- >> >> You received this message because you are subscribed to the Google Groups "Django users" group. >> >> To view this discussion on the web visithttps://groups.google. com/d/msg/django-users/-/qNiVJV-uWV4J. >> >> To post to this group, send email to django-users@googlegroups.com. >> >> To unsubscribe from this group, send email to django- users+unsubscr...@googlegroups.com. >> >> For more options, visit this group athttp://groups.google.com/group/django- users?hl=en. > >-- >You received this message because you are subscribed to the Google Groups "Django users" group. >To post to this group, send email to django-users@googlegroups.com. >To unsubscribe from this group, send email to django- users+unsubscr...@googlegroups.com. >For more options, visit this group at http://groups.google.com/group/django- users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: R: Re: Django-registration tutorial + code
Hi ! Please try following steps , it would definitely work for you... Step1: Enable/Add 'django.contrib.auth.middleware.AuthenticationMiddleware', in your MIDDLEWARE_CLASSES section of 'settings.py' Step2:- Include/Modify following URL pattern in your 'urls.py' urlpatterns = patterns(' ', url(r'^login/$', 'django.contrib.auth.views.login', name='login'), url(r'^logout/ $','django.contrib.auth.views.logout', name='logout') ) Step3:- Put your 'templates' folder inside the 'mysite' and then put a folder namely 'registration' in your 'templates' folder, so that your folder structure looks like as follows -> mysite/templates/registration Step4:- Note your login,logout files inside 'registration' folder should posses following names respectively ('login.html','logged_out.html') Step5:- Now you can design your login/logout templates as you like, the above settings is enough to sort out the issue you have reported. - On May 16, 8:05 pm, "francescobocca...@libero.it" wrote: > hi, i have a question:i downloaded the templates folder but where i put it?i > create a project called "mysite". I changed settings.py and urls.py files as > you suggested.My question is: how i have to put the templates folder? i put > it inside mysite folder but when i try > tohttp://localhost:8000/accounts/logout/ > i received > Request Method: > GET > > Request URL: > http://localhost:8000/accounts/logout/ > > Django Version: > 1.3.1 > > Exception Type: > TemplateDoesNotExist > > Exception Value: > registration/logout.html > > Exception Location: > /usr/local/lib/python2.7/dist-packages/django/template/loader.py in > find_template, line 138 > > /usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/registration/logout.html > (File does not exist) > Can you help me to understand it? > Thanks > Francesco > > Messaggio originale > > Da: scoobygalle...@gmail.com > > Data: 16/05/2012 15.34 > > A: > > Cc: "francescobocca...@libero.it" > > Ogg: Re: Django-registration tutorial + code > > Hi! > You can go this way: > install the right version of django-registrationthis command will do the > trick:pip > installhttps://bitbucket.org/ubernostrum/django-registration/downloads/djang... > Add "registration" to installed apps, in your settings.py file:Something like > this:INSTALLED_APPS = ( 'registration', )Add the urls in > your urls.py file.something like this:urlpatterns = patterns('', > # django-registration url(r'^accounts/', > include('registration.backends.default.urls')), )Add the templates.I > created the template set and uploaded it for sharing > here:https://github.com/matiasherranz/scoobygalletas/tree/master/django-re... > That's it! > Let me know if you get stuck with something. > M.- > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To view this discussion on the web > visithttps://groups.google.com/d/msg/django-users/-/qNiVJV-uWV4J. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
R: Re: Django-registration tutorial + code
hi, i have a question:i downloaded the templates folder but where i put it?i create a project called "mysite". I changed settings.py and urls.py files as you suggested.My question is: how i have to put the templates folder? i put it inside mysite folder but when i try to http://localhost:8000/accounts/logout/ i received Request Method: GET Request URL: http://localhost:8000/accounts/logout/ Django Version: 1.3.1 Exception Type: TemplateDoesNotExist Exception Value: registration/logout.html Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/loader.py in find_template, line 138 /usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/registration/logout.html (File does not exist) Can you help me to understand it? Thanks Francesco Messaggio originale Da: scoobygalle...@gmail.com Data: 16/05/2012 15.34 A: Cc: "francescobocca...@libero.it" Ogg: Re: Django-registration tutorial + code Hi! You can go this way: install the right version of django-registrationthis command will do the trick:pip install https://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz Add "registration" to installed apps, in your settings.py file:Something like this:INSTALLED_APPS = ('registration',)Add the urls in your urls.py file.something like this:urlpatterns = patterns('', # django-registrationurl(r'^accounts/', include('registration.backends.default.urls')),)Add the templates.I created the template set and uploaded it for sharing here:https://github.com/matiasherranz/scoobygalletas/tree/master/django-registration-templates That's it! Let me know if you get stuck with something. M.- -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/qNiVJV-uWV4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
R: Re: Django-registration tutorial + code
Thanks to all for answers, i'll try all solutions and i let you know.Thanks you again Francesco Messaggio originale Da: scoobygalle...@gmail.com Data: 16/05/2012 15.34 A: Cc: "francescobocca...@libero.it" Ogg: Re: Django-registration tutorial + code Hi! You can go this way: install the right version of django-registrationthis command will do the trick:pip install https://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz Add "registration" to installed apps, in your settings.py file:Something like this:INSTALLED_APPS = ('registration',)Add the urls in your urls.py file.something like this:urlpatterns = patterns('', # django-registrationurl(r'^accounts/', include('registration.backends.default.urls')),)Add the templates.I created the template set and uploaded it for sharing here:https://github.com/matiasherranz/scoobygalletas/tree/master/django-registration-templates That's it! Let me know if you get stuck with something. M.- -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/qNiVJV-uWV4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
Hi! You can go this way: 1. install the right version of django-registration 1. this command will do the trick: 2. pip install https://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz 2. Add "registration" to installed apps, in your settings.py file: 1. Something like this: 2. 3. INSTALLED_APPS = ( 4. 5. 'registration', 6. 7. ) 3. Add the urls in your urls.py file. 1. something like this: 2. urlpatterns = patterns('', 3. 4. 5. # django-registration 6. url(r'^accounts/', include('registration.backends.default.urls')), 7. 8. ) 4. Add the templates. 1. I created the template set and uploaded it for sharing here: 2. https://github.com/matiasherranz/scoobygalletas/tree/master/django-registration-templates That's it! Let me know if you get stuck with something. M.- -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/qNiVJV-uWV4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
I always used the native authentication API and it's sufficient for me, well documented: https://docs.djangoproject.com/en/1.4/topics/auth/ 2012/5/16 francescobocca...@libero.it > Hi all, > i'n new of Django and i like to create an registration user form my web > site > (login, logout, profile user, password etc..) > I read a lot of documentation but i didn't found a code that i can download > with all right things (templates, urls etc). > Anyone can help me to suggest any tutorial about that? i installed django- > registration but i can't understand how can use it. > > Thanks > > Francesco > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
I always used the native authentication API and it's sufficient for me, well documented: https://docs.djangoproject.com/en/1.4/topics/auth/ 2012/5/16 francescobocca...@libero.it > Hi all, > i'n new of Django and i like to create an registration user form my web > site > (login, logout, profile user, password etc..) > I read a lot of documentation but i didn't found a code that i can download > with all right things (templates, urls etc). > Anyone can help me to suggest any tutorial about that? i installed django- > registration but i can't understand how can use it. > > Thanks > > Francesco > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django-registration tutorial + code
This link should provide a few pointers, though a bit old. http://www.djangobook.com/en/beta/chapter12/ F.O.O -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django-registration tutorial + code
Hi all, i'n new of Django and i like to create an registration user form my web site (login, logout, profile user, password etc..) I read a lot of documentation but i didn't found a code that i can download with all right things (templates, urls etc). Anyone can help me to suggest any tutorial about that? i installed django- registration but i can't understand how can use it. Thanks Francesco -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.