Mirco
Share the code 😊
Bunty chhatri wala..
Only views.py or urls.py everything?
Mirco
views and html form
Bunty chhatri wala..
Ok wait
Anonymous
Can anyone please suggest a good book for django
Mirco
Can anyone please suggest a good book for django
Django for professionals by William Vincent is one of the earliest
Doragonsureiyā
Can anyone please suggest a good book for django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Kapil
I have installed apache httpd on my linux (rhel 6) machine. Could anyone let me know where to keep my complete Django code in order to deployment ?
Anonymous
I deployed my website on Heroku server but media files are not serving. What can I do now? Please tell me anyone...
Anonymous
Google about whitenoise
OK... What about AWS S3 bucket ?
Abubakr
Hi guys
Abubakr
Where can i find brand-new django projects?
Abubakr
All i found are not new, not good lookingor have less functionalities
.
Hi, does django support prepared statemtents?
Martín
OK... What about AWS S3 bucket ?
I think is another valid choice
Aswath
hey ppl i have a doubt
Aswath
how to differentiate types of users if we are extending User Model Using a One-To-One Link
Gourav
how to differentiate types of users if we are extending User Model Using a One-To-One Link
Which one are you extending AbstractUser or BaseUser❓❓❓
Aswath
im not extending man...
Aswath
im just using a OneToOne field link between my user profile and the auth.User model
Aswath
how do i differentiate between types of users if i have two models having auth.models in their OneToOne field link ?
Aswath
@GouravSaini125 U got some suggestion ?
Mirco
@GouravSaini125 U got some suggestion ?
https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html
Aswath
Okay man thanks .. Will let you know in case of doubts
Aswath
try: ... print(user.spaceOwner) except: ... print(user.consumer)
Aswath
Can i just do this instead... it seems easier @GouravSaini125
Aswath
Coz i have only two types of users for my application
Aswath
what do you say ?
Gourav
Let's talk, DM me
Mirco
what do you say ?
Read the article I shared with you to learn the best ways
Aswath
Yea i read it and understood the best way . But you know ? i just want to get the work done coz i may have to deal with existing users and migrations which is a pain in the ass..
Mirco
Yea i read it and understood the best way . But you know ? i just want to get the work done coz i may have to deal with existing users and migrations which is a pain in the ass..
If you have read Django docs before writing code you'd know that it's always a better idea to start a project with a custom user instead of the normal one to avoid the issues you have now 😊
Aswath
Huh sorry man. Not that experienced and i don wanna get myself bored out of reading the django docs beyond a certain limit. That's why... moreover u know what im lazy .. hahaha
Anonymous
I have a form with file field to user profile pic. When user create his profile that profile pic should store in media. Now I deployed my project to heroku that user profile pic is not showing. I tried whitenoise but won't work... Plz give me the solution
Gourav
You can't store media files on heroku except for a very small time. You have to other services .
Gourav
And Whitenoise is used for static files.....
Anonymous
Ok
Gourav
https://help.heroku.com/K1PPS2WM/why-are-my-file-uploads-missing-deleted
maroong
How do I create pages automatically for a model ? The model is for a data I scraped I want to generate individual pages for each line
Aswath
Dude seriously? It seems overwhelming man.
Firdaus
Dude seriously? It seems overwhelming man.
It is overwhelming. Don't expect to understand everything in one reading. But to it's credit... nearly everything is in there.
maroong
Okay, I'll try it
Aswath
Yeh dude. I agree.
Gourav
Why is such type controversy is going on here❓
Gourav
Everyone has a different mindset and way of learning.
Gourav
Yup
Anonymous
Can I store Media files in Pythonanywhere server ? Instead of heroku
Muflone
Can I store Media files in Pythonanywhere server ? Instead of heroku
is your whole application hosted in PythonAnywhere ?
Anonymous
is your whole application hosted in PythonAnywhere ?
No I deployed my project in heroku but media files are not showing there. So now I want to deploy my project on Pythonanywhere
Anonymous
it should work
Ok thank you so much😊
Anonymous
Ok sir
Anonymous
Ok sir its enough 😊
Marvin
Hey team , anyone with a great suggestion on a great up to date book to get me through TDD in django or python alike?
Stenly
Please tell me the direction. I have goods and materials (inventory) in different warehouses, warehouses are divided into categories (types). The name of the goods and materials is taken from the nomenclature reference book. I want to calculate the total number of inventory items available in all warehouses of the same type. https://codeshare.io/ayVvEv
Seetharaman
Restrict access for staff users to see their information in django admin page
Nikhil
How can we change a certain attribute of a css selector according to model properties
Nikhil
Model object properties
Nikhil
Inline css
Nikhil
Right
Nikhil
Thanks
Zerihune
Hello guys does anyone hv a clue about object based permission in a model
Aswath
Guys i had trouble while dealing with qr code library in django
Aswath
{% qr_from_text '{{variable_name}}' size="m" %} is not working
Aswath
please help me out here
Gourav
You can't have nested jinja format
Aswath
yeah so what shall i do brother ?
Aswath
@GouravSaini125 im sorry to disturb but... this is important to me bruh
Sweetie
I have a existing django project using postgresql. USE_TZ was set to True and now I guess it was not a good idea. I have set my system to UTC now. What's the best way to remove timezones from all existing records and convert all to utc. In postgresql terms I have to change all datetime fileds from timestampz to timestamp