Skip to content

Packaged as a pluggable django app #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 49 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,49 @@
/.idea
*.pyc
*.pyo
*.bd
# preciosa
site_media
datasets
backups
local_settings.py
waliki_data
.nose*
.noseids
*.db
*.sqlite3
*.swp
docs/_build/*

*.py[cod]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox
nosetests.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject
.ropeproject
38 changes: 0 additions & 38 deletions README.md

This file was deleted.

71 changes: 71 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
Django Registration Bootstrap
=============================

Install it
----------

.. code-block:: bash

$ pip install https://github.com/ebertti/django-registration-bootstrap/archive/master.zip

Into the settings file, add the following to ``INSTALLED_APPS``:

.. code-block:: python

INSTALLED_APPS = (
# ... everything else

# Add the templates via INSTALLED_APPS
'registration_bootstrap3',
)





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
Empty file removed app_sample/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion project_sample/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'app_sample',
'registration_bootstrap3',
)

MIDDLEWARE_CLASSES = (
Expand Down
1 change: 1 addition & 0 deletions registration_bootstrap3/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1'
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'index' %}">{{ site.name }}</a>
<a class="navbar-brand" href="/">{{ site.name }}</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="{% url 'index' %}">{% trans "Home" %}</a></li>
<li class="active"><a href="/">{% trans "Home" %}</a></li>
<li><a href="http://www.amazingworks.com.br">{% trans "About" %}</a></li>
<li><a href="https://github.com/ebertti">{% trans "Contact" %}</a></li>
</ul>
Expand Down
43 changes: 43 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import registration_bootstrap3 as app

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

version = app.__version__

readme = open('README.rst').read()


setup(
name='django-registration-bootstrap3',
version=version,
description="""Custom HTML template for django-registration app made using Bootstrap from Twitter""",
long_description=readme,
author=u'Ezequiel Bertti',
author_email='ebertti@gmail.com',
url='https://github.com/ebertti/django-registration-bootstrap',
packages=[
'registration_bootstrap3',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django registration bootstrap auth users',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)