really great series, if you do something like this again consider showing the app and going through what its capable of at the very beginning of your series
Thank you so much! I know that's a good idea. It's just that I usually build these tutorials in series, and usually I just have an idea in my head where I want to go. So I don't normally have the finished product :P
@@CodeWithStein RUclips has made me a jack of all trades, and im relying on your content and videos like these to get a foundation in development. But question is, why dont developers build companies with their skills, you can easily sell something like this if you tailored it to auto repairshops. Part of the reason why Im starting with a project like this is to build one for my dads auto repair shop. They cant just use any old invoicing software it has to save vehicle information and most if not all of the ones that do are very old or new and several hundred to thousand plus dollars per month. I literally just through the old software in a windows vps and we use it remotely that way until I finish building something worth while that I can host on my ubuntu server in a docker container
@@CodeWithStein something that may help could be to edit the finished app demo into the beginning of the video. I do agree with @zodyking4595 - awesome tutorial, but it's easier to see where we're going when we know what we're going to end up with.
@CodeWithStein thank you for the great course. 00:46:12 Clicking on Log Out button returns an error 'Failed to load resource: the server responded with a status of 401 (Unauthorized), {"detail":"Invalid token."}. All other requests work correctly. I've checked your github and couldn't find any differences with my code. Do you know how to resolve this issue?
Hey, this might be due to some changes in Django 5. not sure how to fix that at the moment for this code base. But, you might not need to do the logout on the server, just in the frontend.
This was happening to me as well, but I fixed it. I think it happened because the server restarted as I was logged in, and when I tried to log out, I encountered this. I had to go to store/index.js, comment out state.isAuthenticated = true in the initializeStore function, refresh the page so I was logged out, then uncomment it again and login normally. Logout also worked fine. I guess the login token that is cached becomes bad if the server restarts in between.
I have a question what if you want to extend the built in model to have fields like phone number and first name because django comes with the default email and password and username fields and when you use djoser to register a user only the username, email and password fields will be filled
When I try to call /token/logout/ I get a 403 error saying that I'm not providing any credentials. When I look at the headers of the request the token is there, though.
I am having an issue with the auth token, everytime i reload the page, the authorization disappears and i have to manually go to the the /log-in url. is this normal or is there a way to fix this?
Do you cover Djoser's send_activation_email and password/username reset email in any of your Django + Vue content? I've searched your Github and I'm not seeing that.
God job , that's awesome tranning! the div :class="notification is-danger" v-if="errors.length"> is repeated , if I double click a buttom. How can I clear the repeated error meassage and only keep one error meassage? thanks!
Hey ☺️ add a new variable called loading or similar. As soon as you click, you set it to true. And if it’s already true, you will have to block the click 👍🏻
Hello Stein. Why did you use "django-rest-framework 0.1.0" that was released on 2017 and not the most popular one "djangorestframework" which is currently in version 3.13.1 (Dec 2021)? In another tutorial you are using "django-restframework 0.0.1". I am new in django and I would appreciate your advice
stein i love your tutorials, but today i am getting some errors, getting an error 404 not found while trying to signup it says authentication cred. not provided, i guess it's because of updated versions can your please suggest an alternative solution to the problem.... 🙂
Hmm, i dont think there is any changes that I'm aware of that should cause this. The error is most likely in a typo somewhere (i guess) in your code. Try going over the tutorial again and make sure that everything is exactly as my code :-)
@@CodeWithStein yup i found it just few minutes ago, i was not getting expected results with djoser, so i simply switched to rest framework and simplejwt authentication similar you taught in social media class, And i was not adding the session authentication class in settings that's why it was showing an error, i fixed it, it works flawlessly, Thanks stein you are the best🙂🙂
Hi! Because I like Vue much better and it’s easier to learn 😉 there is a program called Quasar you can use to build mobile and desktop apps using Vue 👍🏻
@@CodeWithStein Thank you Stein. Is it efficient as much as React Native or popular? I like Vue too but scaring of using it due to React's popularity in the sector.
Hi thanks for the video. I was wondering because I have tried everything I can and nothing seems to work. How can I get the information of the current logged in user, like the username.
Hey, are you getting any errors? I thought I showed in the video how to do this? You have to load information from the backend, and store it using Vue. Just like I do with the token and similar.
@@CodeWithStein That's unfortunate. I'll try to see what is breaking it. I'm new to Vue.js... I was more interested in the Django side of the tutorial.
I have same code as you: router.beforeEach((to, from, next) => { if (to.matched.some(record => record.meta.requireLogin) && !store.state.isAuthenticated) { next('/log-in') } else { next() } })
1: 03: 04 i get an 401 response from api if i try to get the Clients data : detail: "Authentication credentials were not provided." mounted() { this.getClients(); }, methods: { getClients(){ axios .get('/api/v1/clients/') .then(response => { for (let i = 0; i < response.data.length; i++) { this.clients.push(response.data[i]); } }) .catch((error) => { console.log(JSON.stringify(error)); }) } }
Hi Stein, I'm sorry, in this course you created an invoice, but for some reason it was not created for me, it gives an error, that is, Bad Request: /api/v1/invoices/
@@CodeWithStein Hello Stein, I have one problem, I created a button to delete the client, I also did the axios.delete method, I also wrote the code to delete this id, but for some reason it doesn't work, I also wrote the backend part, can you help me? Please)
really great series, if you do something like this again consider showing the app and going through what its capable of at the very beginning of your series
Thank you so much!
I know that's a good idea. It's just that I usually build these tutorials in series, and usually I just have an idea in my head where I want to go. So I don't normally have the finished product :P
@@CodeWithStein RUclips has made me a jack of all trades, and im relying on your content and videos like these to get a foundation in development. But question is, why dont developers build companies with their skills, you can easily sell something like this if you tailored it to auto repairshops. Part of the reason why Im starting with a project like this is to build one for my dads auto repair shop. They cant just use any old invoicing software it has to save vehicle information and most if not all of the ones that do are very old or new and several hundred to thousand plus dollars per month.
I literally just through the old software in a windows vps and we use it remotely that way until I finish building something worth while that I can host on my ubuntu server in a docker container
@@CodeWithStein something that may help could be to edit the finished app demo into the beginning of the video. I do agree with @zodyking4595 - awesome tutorial, but it's easier to see where we're going when we know what we're going to end up with.
Yes I agree 👍🏻
Both of my favorite technologies vue and django. I like the tutorial it's very appreciated
Thanks 😁
Thanks Stein, and keep up the good work Stein, it's great stuff here.
Thank you :-D
Marvellous tutorial 💚💙. Thank you so much!
Thanks :-D :-D
God job, Stein! The things are explained really very good! Thanks for the tutorial!
Thank you :-D
Exactly what av been looking for
That sounds great :-D
thank you stein
You’re welcome Thomas 😁
I love your videos
Keep making on these languages
Thanks 😁 I will not stop doing Django! ☺️ If I make for other languages, it will only be an extra for the channel 👍🏻
Congratulations 🎉 for 10k subscribers
Thank you so much 😁😁😁
@CodeWithStein thank you for the great course.
00:46:12 Clicking on Log Out button returns an error 'Failed to load resource: the server responded with a status of 401 (Unauthorized), {"detail":"Invalid token."}.
All other requests work correctly. I've checked your github and couldn't find any differences with my code.
Do you know how to resolve this issue?
Hey, this might be due to some changes in Django 5. not sure how to fix that at the moment for this code base. But, you might not need to do the logout on the server, just in the frontend.
This was happening to me as well, but I fixed it. I think it happened because the server restarted as I was logged in, and when I tried to log out, I encountered this. I had to go to store/index.js, comment out state.isAuthenticated = true in the initializeStore function, refresh the page so I was logged out, then uncomment it again and login normally. Logout also worked fine. I guess the login token that is cached becomes bad if the server restarts in between.
WOW great !! thanks
You're welcome :-D
I have a question what if you want to extend the built in model to have fields like phone number and first name because django comes with the default email and password and username fields and when you use djoser to register a user only the username, email and password fields will be filled
I have a separate video on this. Just search for custom user model 👍🏻
When I try to call /token/logout/ I get a 403 error saying that I'm not providing any credentials. When I look at the headers of the request the token is there, though.
Hmm, weird. Are you sure you orovide the credentials and tokens correctly?
You did nice job bro.
Thank you 👍🏻❤️
I am having an issue with the auth token, everytime i reload the page, the authorization disappears and i have to manually go to the the /log-in url. is this normal or is there a way to fix this?
Hey, were you able to solve this your self? :-)
32:00 will the password be sent to the backend unencrypted? Is it safe?
Locally yes, but in production you're always using https/ssl and then you will automatically get encryption :-)
Do you cover Djoser's send_activation_email and password/username reset email in any of your Django + Vue content? I've searched your Github and I'm not seeing that.
No I dont. But I will hopefully do it one day 😁
excellent tutorial. Thanks
Thanks 😁😁
God job , that's awesome tranning! the div :class="notification is-danger" v-if="errors.length"> is repeated , if I double click a buttom. How can I clear the repeated error meassage and only keep one error meassage? thanks!
Hey ☺️ add a new variable called loading or similar. As soon as you click, you set it to true. And if it’s already true, you will have to block the click 👍🏻
@@CodeWithStein 👍I will try it, thanks again!
Love your tutorials - please do one exactly like this with Pinia, the Composition API, Typescript Vite Vue 3 frontend and JWT backend
Thanks :-D Good tip! I'll add it to my list of ideas :-)
thank you
You’re welcome 😁
Hello Stein. Why did you use "django-rest-framework 0.1.0" that was released on 2017 and not the most popular one "djangorestframework" which is currently in version 3.13.1 (Dec 2021)? In another tutorial you are using "django-restframework 0.0.1". I am new in django and I would appreciate your advice
Hey, not a good choice from my side. Definitely stick with «djangorestframework» ☺️ Thanks for letting me know 👍🏻
Great! Sir please make a Nuxt 3 E-Commerce Web App
Maybe one day 😁
Hi, I can't get my sign-up and login to work
Hey, do you Get any errors?
stein i love your tutorials, but today i am getting some errors,
getting an error 404 not found while trying to signup it says authentication cred. not provided,
i guess it's because of updated versions can your please suggest an alternative solution to the problem....
🙂
Hmm, i dont think there is any changes that I'm aware of that should cause this. The error is most likely in a typo somewhere (i guess) in your code. Try going over the tutorial again and make sure that everything is exactly as my code :-)
@@CodeWithStein yup i found it just few minutes ago, i was not getting expected results with djoser, so i simply switched to rest framework and simplejwt authentication similar you taught in social media class,
And i was not adding the session authentication class in settings that's why it was showing an error, i fixed it, it works flawlessly,
Thanks stein you are the best🙂🙂
As a newbie question, why did you choose vue over react? and how can you create apps like React Native? Is there any way to create apps using Vue js?
Hi! Because I like Vue much better and it’s easier to learn 😉 there is a program called Quasar you can use to build mobile and desktop apps using Vue 👍🏻
@@CodeWithStein Thank you Stein. Is it efficient as much as React Native or popular? I like Vue too but scaring of using it due to React's popularity in the sector.
Yes its just as good as React ☺️ I know React is more popular, but I think Vue will become even more popular soon ☺️
And setAsPaid(), createCreditNote() don't working bro. How i can do this problem?
Hey, are you getting any errors?
감사합니다 :)
You're welcome :-D
Thanks very much ❤️
You’re welcome 😁😁
can you please make a video like django vue email verification and reset password ?
Hi, I have this in my list of ideas already. Not sure when I will make it though :s
@@CodeWithStein There is no such video on RUclips.
Hi thanks for the video. I was wondering because I have tried everything I can and nothing seems to work. How can I get the information of the current logged in user, like the username.
Hey, are you getting any errors? I thought I showed in the video how to do this? You have to load information from the backend, and store it using Vue. Just like I do with the token and similar.
@@CodeWithStein no you didn't
I downloaded your invoicely_vue and it isn't working either. So not sure if the new version of Vue.js broke it?
Hmm that might be the reason yes. Maybe i used version 2 in the tutorials :/ its a bit old now
@@CodeWithStein That's unfortunate. I'll try to see what is breaking it. I'm new to Vue.js... I was more interested in the Django side of the tutorial.
@@CodeWithStein Says version 3. The tutorial is only a year and a few months old.
Weird, are there any specific errors?
Are you interested in doing this again since it's not working?
Hey, you probably just need to either use an older version of Django ☺️ or you can update the urls.py files, it requires very little code changes 👍🏻
#request Make course on Angular!
Nah, I really don’t like that framework :/
great tutorial, but after a few initial compilements, my app started to show just a blank page, no matter what i do.
Hey, thanks. Hmm, that sounds weird :-s Are there any errors in the browser or the console?
💪
😁
When I click sign up button nothing happens
Not being redirected to login page
I have same code as you:
router.beforeEach((to, from, next) => {
if (to.matched.some(record => record.meta.requireLogin) && !store.state.isAuthenticated) {
next('/log-in')
} else {
next()
}
})
No errors in console
I copied and pasted your SignUp.vue and isn't working either
Hmm weird :/ are you sure you haven’t forgotten anything?
👍
😁
1: 03: 04 i get an 401 response from api if i try to get the Clients data :
detail:
"Authentication credentials were not provided."
mounted() {
this.getClients();
},
methods: {
getClients(){
axios
.get('/api/v1/clients/')
.then(response => {
for (let i = 0; i < response.data.length; i++) {
this.clients.push(response.data[i]);
}
})
.catch((error) => {
console.log(JSON.stringify(error));
})
}
}
Hey, does any of the other requests work? It can look like your token isn’t included correctly in your app.vue
@@CodeWithStein got some typos in the initializer and in the serializer file. Now everythink is Working again thank you 🙏
Hi Stein, I'm sorry, in this course you created an invoice, but for some reason it was not created for me, it gives an error, that is, Bad Request: /api/v1/invoices/
Hey, check your email now ☺️
@@CodeWithStein Thank you bro, all working, i found the problem)
@@CodeWithStein I wrote to your email, can you look at it like this?
I will do that when i Get time 👍🏻
@@CodeWithStein Hello Stein, I have one problem, I created a button to delete the client, I also did the axios.delete method, I also wrote the code to delete this id, but for some reason it doesn't work, I also wrote the backend part, can you help me? Please)