Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,208,140 members, 8,001,674 topics. Date: Wednesday, 13 November 2024 at 02:06 PM |
Nairaland Forum / Science/Technology / Programming / For Django Developer (13235 Views)
Python/django Developer / CI/CD Pipeline For Django Application / Django Developer Plz Help (2) (3) (4)
(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply) (Go Down)
Re: For Django Developer by Taofeekdboy(m): 7:49pm On Apr 30, 2020 |
Badilstical:Thanks bro. I used whitenoise via heroku because heroku can only store static files, you will have to host your media files elsewhere such as AWS, and the likes.. |
Re: For Django Developer by Taofeekdboy(m): 7:50pm On Apr 30, 2020 |
Jummate:Thanks bro. |
Re: For Django Developer by countyl: 10:17am On Jun 19, 2020 |
Hello Taofeekboy. I like your project. I am working on something similar. I need your input. How can I get in touch with you. Thank you Collinsanele: |
Re: For Django Developer by Taofeekdboy(m): 10:58am On Jun 19, 2020 |
countyl:send me a mail on taofeekdboy@yahoo.com |
Re: For Django Developer by Toppytek(m): 11:52am On Jun 19, 2020 |
Hi everyone, I’m a newbie to Django, the whole Concept has been quite terrible to understand, but am following a book “Django 3 by Example”.. hopefully I’ll download Dennis Ivy’s Django crash course maybe that’ll give more help, any other suggestions would be highly welcome. |
Re: For Django Developer by Nobody: 12:47pm On Jun 19, 2020 |
Nice one |
Re: For Django Developer by Taofeekdboy(m): 12:57pm On Jun 19, 2020 |
Toppytek:That's very good, if you have any questions or any issues regarding that, you can leave it here, I will try my possible best to answer it to my knowledge |
Re: For Django Developer by Toppytek(m): 1:11pm On Jun 19, 2020 |
Taofeekdboy: Thanks, I’ve been finding it difficult using “taggit” on Django 3.0, seems it doesn’t work with Django 3 yet, I might be wrong tho, but am following a book “Django 3 by example” I’m building a blog.
|
Re: For Django Developer by Toppytek(m): 1:12pm On Jun 19, 2020 |
Toppytek: I’ve checked the author’s GitHub, the code is the same, don’t know what’s wrong. |
Re: For Django Developer by Taofeekdboy(m): 3:01pm On Jun 19, 2020 |
Toppytek:I don't think so, it doesn't work in django 3.0, it was made for django 1.11. You can also create a custom tags in your model without the use of taggit. |
Re: For Django Developer by Toppytek(m): 3:58pm On Jun 19, 2020 |
Taofeekdboy: I’m a Django newbie, I don’t know how to go about that and I think the whole tag thing is affecting the project as a whole. Sad and angry right now. |
Re: For Django Developer by Taofeekdboy(m): 4:08pm On Jun 19, 2020 |
Toppytek:If you don't mind, you can send me a mail, then we can figure it together |
Re: For Django Developer by Nobody: 1:24am On Jun 20, 2020 |
Toppytek:I'm following the same book. seems you error is from the page=page_obj that was added when he used class view. according to the GitHub repo, it was removed it paginator code should be this {% include "pagination.html" with page=posts %}
|
Re: For Django Developer by fortifiedng: 2:36am On Jun 20, 2020 |
Extending the User Model from AbstractUser or AbstractBaseUser, which is preferable and which is actually recommended? |
Re: For Django Developer by Taofeekdboy(m): 7:11am On Jun 20, 2020 |
fortifiedng:It totally depends on you and what you wanna customize with the user model but if you don't know what you are doing or you just want to add little details to your custom user, you can use AbstractUser, using AbstractBaseUser will override the User model and it requires you to know what you are doing ie being experienced because one foul play will cause inconsistency in your project Let me give some instances; If you want to extend a user to have gender, location or profile, you can extend from AbstractUser to customize your user model. If you need to write permissions and authentication for your user, then I will suggest AbstractBaseUser. Personally for me, I do extend from AbstractUser because I do write my permissions and authentication without extending from AbstractBaseUser |
Re: For Django Developer by EngtTemmy(m): 7:22am On Jun 20, 2020 |
Can Django be used on Android phone? |
Re: For Django Developer by Toppytek(m): 8:22am On Jun 20, 2020 |
DrLevi: Thanks, I’ve crossed checked yet am still getting an error
|
Re: For Django Developer by Taofeekdboy(m): 9:31am On Jun 20, 2020 |
EngtTemmy:In what context are you talking about, coding or the finished project. If you are talking about coding, then django is a framework not a language, it is written in Python but you can code Python on Android with pydroid. You can't code django on an android phone. |
Re: For Django Developer by EngtTemmy(m): 9:34am On Jun 20, 2020 |
Taofeekdboy:Alright, i was referring to coding. |
Re: For Django Developer by EngtTemmy(m): 9:39am On Jun 20, 2020 |
Toppytek:Remove the "with page=posts", then check what's happening. |
Re: For Django Developer by EngtTemmy(m): 9:41am On Jun 20, 2020 |
Toppytek:If it doesn't work still, just go paginator.html, copy the html code into list.html, you won't need to use the include paginator.html in list.html again |
Re: For Django Developer by EngtTemmy(m): 9:43am On Jun 20, 2020 |
If you want to know more about hosting on heroku, i will recommend Corey Schafer tutorial on YouTube. 1 Like |
Re: For Django Developer by Taofeekdboy(m): 9:46am On Jun 20, 2020 |
Toppytek:Create a new model called Tag, add name of tags you wanna add to it, maybe News, educations, sports and so on. Then on your Post model add a ManytoMany field name tags to it. Then you can add tags to a particular post and you can customize it to your own taste, I don't use taggits as at times third party libraries give more problems and headache. Try the above method and let me know, it is more suitable and you will be in control. |
Re: For Django Developer by Taofeekdboy(m): 9:48am On Jun 20, 2020 |
EngtTemmy:Heroku is good but only issue I have with them is not been able to host my media files with them, I do use aws and they do charge me for that but on pythonanywhere, it is free to host your media files. |
Re: For Django Developer by EngtTemmy(m): 9:54am On Jun 20, 2020 |
Taofeekdboy:I will try that out too, where can i get a reference material for it or probably videos, i prefer video |
Re: For Django Developer by Toppytek(m): 10:03am On Jun 20, 2020 |
EngtTemmy: It worked! Thanks, I think I’d have to pause the book for now and watch some Django crash courses first, maybe with that I can easily understand the basics of Django before coming back to the book, I might as well delete the whole project and start again because most of the codes are just copy and paste, I’d prefer doing the typing instead copy and paste. Once again thanks everyone. And for those that might need one or two books, you can visit singlelogin dot com, there are so many books there. 1 Like 1 Share |
Re: For Django Developer by EngtTemmy(m): 10:09am On Jun 20, 2020 |
Toppytek: Good idea 1 Like |
Re: For Django Developer by Taofeekdboy(m): 5:41pm On Jun 20, 2020 |
Here is another project I just finished, an ecommerce project, as lockdown continues and my company never resume. Anyone in need of the source code should signify. Stack used: Django for backend React for frontend Not much validation on the input data as I was distracted and doing it for fun just to add more functionalities. The project is hosted on pythonanywhere as heroku will make shell a dollar for my media files. http://taadesina.pythonanywhere.com Your feedback will be much appreciated. 2 Likes |
Re: For Django Developer by rastaxarm(m): 2:45am On Jun 21, 2020 |
I prefer Flask over Django due to total control and flexibility. Currently using it to develop a voting system for universities/polytechnics elections Test - Still under development https://digitavote.pythonanywhere.com/ No regret so far and the plugins/extensions are good too. Be good with Python and everything will be ok. Though flexibility comes with great responsibilities 1 Like
|
Re: For Django Developer by rastaxarm(m): 2:53am On Jun 21, 2020 |
I prefer Flask over Django due to total control and flexibility. Currently using it to develop a voting system for universities/polytechnics elections Test - Still under development https://digitavote.pythonanywhere.com/ Dashboard Test ID: Email: t1@email.com Password: pass You can request for voter's testing account too coz it requires valid email address due to OTP for login No regret so far and the plugins/extensions are good too. Be good with Python and everything will be ok. Though flexibility comes with great responsibilities 4 Likes
|
Re: For Django Developer by fortifiedng: 3:26am On Jun 21, 2020 |
Taofeekdboy: Bruh, thanks for this. I really appreciate. But you could also Extend the User Model by creating a "Profile Model" and using a OneToOne relationship with the User Model. And also using SIGNALS. Thanks a lot for the explanation. |
Re: For Django Developer by Taofeekdboy(m): 10:09am On Jun 21, 2020 |
rastaxarm:Sure, it all depends on you and what makes you comfortable, I was learning flask before but switched to django because of its complexity and its documentation. About flexibility, when you are comfortable using django, you can be flexible and be in control as well thou everything has been written for you but you can choose to customize it for your own use. Nice project BTW. Good job 2 Likes |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply)
Bash Shell Vulnerability Affects Linux, Unix And Mac OS X / You Would Better Start Programming With Java Or C# / Most Used Mysql Database Functions
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 43 |