From 307cf8ce27a579bbc51b6e46f4a55a3bbd941a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gait=C3=A1n?= Date: Mon, 22 Sep 2014 00:11:08 -0300 Subject: [PATCH 1/6] moved templates inside the app --- README.md | 38 -------------- README.rst | 49 ++++++++++++++++++ .../__init__.py | 0 .../context_processor.py | 0 .../models.py | 0 .../static/bootstrap/css/bootstrap-theme.css | 0 .../bootstrap/css/bootstrap-theme.min.css | 0 .../static/bootstrap/css/bootstrap.css | 0 .../static/bootstrap/css/bootstrap.min.css | 0 .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../static/bootstrap/js/bootstrap.js | 0 .../static/bootstrap/js/bootstrap.min.js | 0 .../templates}/base.html | 0 .../templates}/registration/form_field.html | 0 .../templates}/registration/logged_out.html | 0 .../templates}/registration/login.html | 0 .../registration/password_change_done.html | 0 .../registration/password_change_form.html | 0 .../registration/password_reset_complete.html | 0 .../registration/password_reset_confirm.html | 0 .../registration/password_reset_done.html | 0 .../registration/password_reset_form.html | 0 .../templatetags/__init__.py | 0 .../templatetags/registration_bootstrap.py | 0 27 files changed, 49 insertions(+), 38 deletions(-) delete mode 100644 README.md create mode 100644 README.rst rename {app_sample => registration_bootstrap3}/__init__.py (100%) rename {app_sample => registration_bootstrap3}/context_processor.py (100%) rename {app_sample => registration_bootstrap3}/models.py (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/css/bootstrap-theme.css (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/css/bootstrap-theme.min.css (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/css/bootstrap.css (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/css/bootstrap.min.css (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/fonts/glyphicons-halflings-regular.eot (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/fonts/glyphicons-halflings-regular.svg (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/fonts/glyphicons-halflings-regular.ttf (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/fonts/glyphicons-halflings-regular.woff (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/js/bootstrap.js (100%) rename {app_sample => registration_bootstrap3}/static/bootstrap/js/bootstrap.min.js (100%) rename {templates => registration_bootstrap3/templates}/base.html (100%) rename {templates => registration_bootstrap3/templates}/registration/form_field.html (100%) rename {templates => registration_bootstrap3/templates}/registration/logged_out.html (100%) rename {templates => registration_bootstrap3/templates}/registration/login.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_change_done.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_change_form.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_reset_complete.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_reset_confirm.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_reset_done.html (100%) rename {templates => registration_bootstrap3/templates}/registration/password_reset_form.html (100%) rename {app_sample => registration_bootstrap3}/templatetags/__init__.py (100%) rename {app_sample => registration_bootstrap3}/templatetags/registration_bootstrap.py (100%) diff --git a/README.md b/README.md deleted file mode 100644 index 3f0c0ca..0000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# Django Registration Bootstrap - -##Simple sample using bootstrap from twitter in forms of Django - -Using Bootstrap from Twitter version 3.0.3 - -And Django version 1.6.1 - -http://twitter.github.com/bootstrap - -To run, just download and do runserver: -``` shell - python manage.py runserver 8000 -``` - -username: demo -password: demo - -# Screenshots - -![home](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/home_pt.png) - -![login](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/loggin_pt.png) -![login error](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/loggin_error_pt.png) - -![password change](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_change_pt.png) -![password change error](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_change_error_pt.png) - -![password reset](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_reset_pt.png) -![password reset error](https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_reset_error_pt.png) - - - -## Changelog - -2014-01-16 by EBertti - -- Update Bootstrat to 3.0.3 and Django to 1.6.1 diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..9f2f2db --- /dev/null +++ b/README.rst @@ -0,0 +1,49 @@ +Django Registration Bootstrap +============================= + +Simple sample using bootstrap from twitter in forms of Django +------------------------------------------------------------- + +Using Bootstrap from Twitter version 3.0.3 + +And Django version 1.6.1 + +http://twitter.github.com/bootstrap + +To run, just download and do runserver: +``shell python manage.py runserver 8000`` + +username: demo password: demo + +Screenshots +=========== + +.. figure:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/home_pt.png + :align: center + :alt: home + + home +|login| |login error| + +|password change| |password change error| + +|password reset| |password reset error| + +Changelog +--------- + +2014-01-16 by EBertti + +- Update Bootstrat to 3.0.3 and Django to 1.6.1 + +.. |login| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/loggin_pt.png +.. |login +error| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/loggin_error_pt.png +.. |password +change| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_change_pt.png +.. |password change +error| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_change_error_pt.png +.. |password +reset| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_reset_pt.png +.. |password reset +error| image:: https://raw.github.com/ebertti/django-registration-bootstrap/master/screenshot/password_reset_error_pt.png diff --git a/app_sample/__init__.py b/registration_bootstrap3/__init__.py similarity index 100% rename from app_sample/__init__.py rename to registration_bootstrap3/__init__.py diff --git a/app_sample/context_processor.py b/registration_bootstrap3/context_processor.py similarity index 100% rename from app_sample/context_processor.py rename to registration_bootstrap3/context_processor.py diff --git a/app_sample/models.py b/registration_bootstrap3/models.py similarity index 100% rename from app_sample/models.py rename to registration_bootstrap3/models.py diff --git a/app_sample/static/bootstrap/css/bootstrap-theme.css b/registration_bootstrap3/static/bootstrap/css/bootstrap-theme.css similarity index 100% rename from app_sample/static/bootstrap/css/bootstrap-theme.css rename to registration_bootstrap3/static/bootstrap/css/bootstrap-theme.css diff --git a/app_sample/static/bootstrap/css/bootstrap-theme.min.css b/registration_bootstrap3/static/bootstrap/css/bootstrap-theme.min.css similarity index 100% rename from app_sample/static/bootstrap/css/bootstrap-theme.min.css rename to registration_bootstrap3/static/bootstrap/css/bootstrap-theme.min.css diff --git a/app_sample/static/bootstrap/css/bootstrap.css b/registration_bootstrap3/static/bootstrap/css/bootstrap.css similarity index 100% rename from app_sample/static/bootstrap/css/bootstrap.css rename to registration_bootstrap3/static/bootstrap/css/bootstrap.css diff --git a/app_sample/static/bootstrap/css/bootstrap.min.css b/registration_bootstrap3/static/bootstrap/css/bootstrap.min.css similarity index 100% rename from app_sample/static/bootstrap/css/bootstrap.min.css rename to registration_bootstrap3/static/bootstrap/css/bootstrap.min.css diff --git a/app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.eot b/registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.eot rename to registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.eot diff --git a/app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.svg b/registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.svg rename to registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.svg diff --git a/app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.ttf b/registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.ttf rename to registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.ttf diff --git a/app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.woff b/registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from app_sample/static/bootstrap/fonts/glyphicons-halflings-regular.woff rename to registration_bootstrap3/static/bootstrap/fonts/glyphicons-halflings-regular.woff diff --git a/app_sample/static/bootstrap/js/bootstrap.js b/registration_bootstrap3/static/bootstrap/js/bootstrap.js similarity index 100% rename from app_sample/static/bootstrap/js/bootstrap.js rename to registration_bootstrap3/static/bootstrap/js/bootstrap.js diff --git a/app_sample/static/bootstrap/js/bootstrap.min.js b/registration_bootstrap3/static/bootstrap/js/bootstrap.min.js similarity index 100% rename from app_sample/static/bootstrap/js/bootstrap.min.js rename to registration_bootstrap3/static/bootstrap/js/bootstrap.min.js diff --git a/templates/base.html b/registration_bootstrap3/templates/base.html similarity index 100% rename from templates/base.html rename to registration_bootstrap3/templates/base.html diff --git a/templates/registration/form_field.html b/registration_bootstrap3/templates/registration/form_field.html similarity index 100% rename from templates/registration/form_field.html rename to registration_bootstrap3/templates/registration/form_field.html diff --git a/templates/registration/logged_out.html b/registration_bootstrap3/templates/registration/logged_out.html similarity index 100% rename from templates/registration/logged_out.html rename to registration_bootstrap3/templates/registration/logged_out.html diff --git a/templates/registration/login.html b/registration_bootstrap3/templates/registration/login.html similarity index 100% rename from templates/registration/login.html rename to registration_bootstrap3/templates/registration/login.html diff --git a/templates/registration/password_change_done.html b/registration_bootstrap3/templates/registration/password_change_done.html similarity index 100% rename from templates/registration/password_change_done.html rename to registration_bootstrap3/templates/registration/password_change_done.html diff --git a/templates/registration/password_change_form.html b/registration_bootstrap3/templates/registration/password_change_form.html similarity index 100% rename from templates/registration/password_change_form.html rename to registration_bootstrap3/templates/registration/password_change_form.html diff --git a/templates/registration/password_reset_complete.html b/registration_bootstrap3/templates/registration/password_reset_complete.html similarity index 100% rename from templates/registration/password_reset_complete.html rename to registration_bootstrap3/templates/registration/password_reset_complete.html diff --git a/templates/registration/password_reset_confirm.html b/registration_bootstrap3/templates/registration/password_reset_confirm.html similarity index 100% rename from templates/registration/password_reset_confirm.html rename to registration_bootstrap3/templates/registration/password_reset_confirm.html diff --git a/templates/registration/password_reset_done.html b/registration_bootstrap3/templates/registration/password_reset_done.html similarity index 100% rename from templates/registration/password_reset_done.html rename to registration_bootstrap3/templates/registration/password_reset_done.html diff --git a/templates/registration/password_reset_form.html b/registration_bootstrap3/templates/registration/password_reset_form.html similarity index 100% rename from templates/registration/password_reset_form.html rename to registration_bootstrap3/templates/registration/password_reset_form.html diff --git a/app_sample/templatetags/__init__.py b/registration_bootstrap3/templatetags/__init__.py similarity index 100% rename from app_sample/templatetags/__init__.py rename to registration_bootstrap3/templatetags/__init__.py diff --git a/app_sample/templatetags/registration_bootstrap.py b/registration_bootstrap3/templatetags/registration_bootstrap.py similarity index 100% rename from app_sample/templatetags/registration_bootstrap.py rename to registration_bootstrap3/templatetags/registration_bootstrap.py From 965c205c4068e15973c42d96c8c4e2381a99d124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gait=C3=A1n?= Date: Mon, 22 Sep 2014 00:11:54 -0300 Subject: [PATCH 2/6] renamed app in the example project --- project_sample/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_sample/settings.py b/project_sample/settings.py index e54742a..17f698e 100644 --- a/project_sample/settings.py +++ b/project_sample/settings.py @@ -37,7 +37,7 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', - 'app_sample', + 'registration_bootstrap3', ) MIDDLEWARE_CLASSES = ( From c6bacf31ffaffc04782d7d838831639d81d30398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gait=C3=A1n?= Date: Mon, 22 Sep 2014 00:13:16 -0300 Subject: [PATCH 3/6] index url is declared in the project, not in the app --- registration_bootstrap3/templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registration_bootstrap3/templates/base.html b/registration_bootstrap3/templates/base.html index 4ea8fa8..bc7b965 100644 --- a/registration_bootstrap3/templates/base.html +++ b/registration_bootstrap3/templates/base.html @@ -29,11 +29,11 @@ - {{ site.name }} + {{ site.name }}