NewStats: 3,263,941 , 8,181,986 topics. Date: Sunday, 08 June 2025 at 09:29 PM e5oi6z3e3g |
For Django Developer (14567 Views)
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.. |
Taofeekdboy(m): 7:50pm On Apr 30, 2020 |
Jummate:Thanks bro. |
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: |
Taofeekdboy(m): 10:58am On Jun 19, 2020 |
countyl:send me a mail on [email protected] |
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 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
|
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 |
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.
|
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. |
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. |
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. |
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 %}
|
fortifiedng: 2:36am On Jun 20, 2020 |
Extending the Model from Abstract or AbstractBase, which is preferable and which is actually recommended?
|
Taofeekdboy(m): 7:11am On Jun 20, 2020 |
fortifiedng:It totally depends on you and what you wanna customize with the model but if you don't know what you are doing or you just want to add little details to your custom , you can use Abstract, using AbstractBase will override the 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 to have gender, location or profile, you can extend from Abstract to customize your model. If you need to write permissions and authentication for your , then I will suggest AbstractBase. Personally for me, I do extend from Abstract because I do write my permissions and authentication without extending from AbstractBase |
EngtTemmy(m): 7:22am On Jun 20, 2020 |
Can Django be used on Android phone?
|
Toppytek(m): 8:22am On Jun 20, 2020 |
DrLevi: Thanks, I’ve crossed checked yet am still getting an error
|
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. |
EngtTemmy(m): 9:34am On Jun 20, 2020 |
Taofeekdboy:Alright, i was referring to coding. |
EngtTemmy(m): 9:39am On Jun 20, 2020 |
Toppytek:Remove the "with page=posts", then check what's happening. |
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 |
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 |
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. |
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. |
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 |
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 single dot com, there are so many books there. 1 Like 1 Share |
EngtTemmy(m): 10:09am On Jun 20, 2020 |
Toppytek: Good idea 1 Like |
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 will be much appreciated. 2 Likes |
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 |
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: [email protected] : You can request for voter's testing too coz it requires valid email address due to OTP for 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 |
fortifiedng: 3:26am On Jun 21, 2020 |
Taofeekdboy: Bruh, thanks for this. I really appreciate. But you could also Extend the Model by creating a "Profile Model" and using a OneToOne relationship with the Model. And also using SIGNALS. Thanks a lot for the explanation. |
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 |
Creating A Group Chat With Html/javascript/php/mysql For Beginners
(Go Up)
Sections: How To . 71 Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland. |