Code Monkey home page Code Monkey logo

gestao_clientes's Introduction

gestao_clientes's People

Contributors

gpzim98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gestao_clientes's Issues

Não consigo chamar a função auth_views.login

Estou criando a página de validação de logins descrita no seu curso. Já "decorei" as minhas views com @login_required e agora preciso setar as urls para que funcionem de acordo. No entanto esta versão do django não reconhece o objeto auth_views.login e auth_views.logout que deveria ser importado da seguinte maneira from django.contrib.auth import views as auth_views.

Obs.: Pelo não reconhecimento dos objetos citados, o servidor local nem carrega. Abaixo segue o código do arquivo urls.py da app:

from django.contrib import admin
from django.urls import path, include
from clientes import urls as urls_clientes
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views


urlpatterns = [
    path('admin/', admin.site.urls),
    path('clientes/', include(urls_clientes)),
    path('login/', auth_views.login, name='login'),
    path('logout/', auth_views.logout, name='logout')

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Assinatura

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.