On Github andresfcardenas / Ecommerce-presentation
En app/settings.py
# 'userprofile',
En app/urls.py
# url( # r'^accounts/', # include('userprofile.backends.default.urls') # ), # url( # r'^accounts/', # include('userprofile.urls', namespace='userprofile') # ),
En app/templates/layout/base.html
{% if user.is_authenticated %} {# <a class="btn btn-mini" style="margin:10px 5px 5px 10px;" href="{% url 'userprofile:dashboard' %}">Dashboard</a> #} <a class="btn btn-mini" style="margin:10px 10px 5px 0px;" href="{% url 'auth_logout' %}">Cerrar sesión</a> {% else %} {# <a class="btn btn-mini" style="margin:10px 5px 5px 10px;" href="{% url 'userprofile:user_login' %}">Iniciar sesión</a> #} {# <a class="btn btn-mini" style="margin:10px 10px 5px 0px;" href="{% url 'registration_register' %}">Registrarse</a> #} {% endif %}
En app/settings.py
# 'store',
En app/urls.py
# url( # r'^', # include('store.urls', namespace='store') # ),
En userprofile/templates/userprofile/dashboard.html
{# <p> #} {# <a class="btn btn-general" href="{% url 'store:store-create' %}">Agregar tienda</a> #} {# </p> #} ...... {# <p> #} {# <a href="{% url 'store:store-update' store.slug %}" class="btn btn-primary">Actualizar informacion de tienda</a> #} {# <a href="{% url 'store:product-create' store.slug %}" class="btn btn-primary">Agregar nuevo producto</a> #} {# </p> #}
En app/settings.py
# 'cart',
En app/urls.py
# url( # r'^cart/', # include('cart.urls', namespace='cart') # ),
En app/templates/layout/base.html
{# <a href="{% url 'cart:cart_detail' %}">Items (<span id="cart_count">0</span>) | Carrito: $<span id="cart_cash"></span></a> #}
"3_10_3400%2C1_9_5000%2C10_23_30000"